Jump to content

Template:Portal/sandbox

From translatewiki.net
The documentation of this template is included from the "Template:Portal/doc" page.

This template generates a translation team portal page for a language and its variants, describing the localization performed on Translatewiki.net of MediaWiki and other softwares with their norms and workflows therein.

Usage

Syntax

{{Portal
 | ns            = Portal                     <!-- Only needed "in the wild" for non-Portal: namespaces -->
 | pagename      = Pt                         <!-- Base page name of portal page, without namespace -->
 | disabled      =                            <!-- optional -->
 | article name  = Portuguese language        <!-- Language article name on Wikipedia -->
 | 639-1         = pt                         <!-- optional -->
 | 639-2         = por                        <!-- optional, omit if using the following two -->
 | 639-2b        =       | 639-2t       =     <!-- both optional -->
 | 639-3         = por                        <!-- optional -->
 | 639-5         =                            <!-- only for legacy ISO 639-1/2 codes not mapped in ISO 639-3 -->
 | 15924         = Latn
 | 15924-1       =                            | no-15924-1   =     <!-- optional -->
 | 15924-2       =                            | no-15924-2   =     <!-- optional -->
 | 15924-3       =                            | no-15924-3   =     <!-- optional -->
 | 15924-4       =                            | no-15924-4   =     <!-- optional -->
 | 15924-5       =                            | no-15924-5   =     <!-- optional -->
 | 15924-6       =                            | no-15924-6   =     <!-- optional -->
 | 15924-7       =                            | no-15924-7   =     <!-- optional -->
 | variant1      = pt-AO | mwvariant1   =     | no-variant1  = yes <!-- optional -->
 | variant2      = pt-BR | mwvariant2   =     | no-variant2  =     <!-- optional -->
 | variant3      = pt-CV | mwvariant3   =     | no-variant3  = yes <!-- optional -->
 | variant4      = pt-MZ | mwvariant4   =     | no-variant4  = yes <!-- optional -->
 | variant5      = pt-PT | mwvariant5   =     | no-variant5  = yes <!-- optional -->
 | variant6      = pt-TL | mwvariant6   =     | no-variant6  = yes <!-- optional -->
 | variant7      =       | mwvariant7   =     | no-variant7  =     <!-- optional -->
 | variant8      =       | mwvariant8   =     | no-variant8  =     <!-- optional -->
 | variant9      =       | mwvariant9   =     | no-variant9  =     <!-- optional -->
 | variant10     =       | mwvariant10  =     | no-variant10 =     <!-- optional -->
 | variant11     =       | mwvariant11  =     | no-variant11 =     <!-- optional -->
 | variant12     =       | mwvariant12  =     | no-variant12 =     <!-- optional -->
 | variant13     =       | mwvariant13  =     | no-variant13 =     <!-- optional -->
 | variant14     =       | mwvariant14  =     | no-variant14 =     <!-- optional -->
 | variant15     =       | mwvariant15  =     | no-variant15 =     <!-- optional -->
 | variant16     =       | mwvariant16  =     | no-variant16 =     <!-- optional -->
 | variant17     =       | mwvariant17  =     | no-variant17 =     <!-- optional -->
 | commons       = yes   | wikidata     = yes
 | mediawiki     =       | meta         =
 | alternate url =       | nocolon      = :                        <!-- default value -->
 | wikipedia     = yes   | incubator                         =
 | wikibooks     = yes   | wikibooks incubator               =
 | wikinews      = yes   | wikinews incubator                =
 | wikiquote     = yes   | wikiquote incubator               =
 | wikisource    = yes   | wikisource incubator              =
 | wikiversity   = yes   | wikiversity incubator             =
 | wikivoyage    = yes   | wikivoyage incubator              =
 | wiktionary    = yes   | wiktionary incubator              =
 | wikispecies   =
 | notes         =
}}

Parameters

  • |ns= – The local namespace name of the language portal. If not specified, uses {{NAMESPACE}}, i.e. the namespace name of the current page. (optional)
  • |page name= – The local page name of the portal, without the Portal: namespace; should be a language code. If not specified, uses {{BASEPAGENAME}}, i.e. the current page name. (optional)
  • |disabled= – Set to any non-null value to mark the translations as being disabled. This will display a warning banner for this absence of support.

Standardized identifiers

  • |article name= – Name of the Wikipedia article about the language; use an interwiki prefix if needed to select another target wiki.
  • |639-1= – A two-letter ISO 639-1 code (used for technical purpose) for a unique language, macrolanguage or some legacy non-inclusive language family.
  • |639-2= – A three-letter ISO 639-2 code (used for both technical and bibliographic purposes) for a unique language, macrolanguage or some legacy non-inclusive language family; preferred for use in BCP 47 if there's no ISO 639-1 code.
  • |639-2b= – A three-letter ISO 639-2 code (used for bibliographic purpose only, not for use in BCP 47) for a unique language, macrolanguage or some legacy code for a non-inclusive language family.
  • |639-2t= – A three-letter ISO 639-2 code (used for technical purpose) for a unique language, macrolanguage or some legacy non-inclusive language family; preferred for use in BCP 47 if there's no ISO 639-1 code.
  • |639-3= – A three-letter ISO 639-3 code for a unique language; for use in BCP 47 only if there's no ISO 639-1 or ISO 639-2 technical codes.
  • |639-5= – A three-letter ISO 639-5 code for a language family; for use in BCP 47 only if there are legacy ISO 639-1 or ISO 639-2 codes for broad bibliographic classification purposes. All such language codes should be disabled for translations in Translatewiki.net. There are many language families or subfamilies, but not all of them have a ISO 639-5 code assigned.

Written scripts/alphabets

  • |15924= – A four-letter ISO 15924 code for a script; may be used as a trailing subtag in BCP 47. This should be the main script used in that language.
    • |no-15924= – Specifies that the script indicated by the |15924= parameter is disabled/unsupported. This disables links to start translating in that variant, statistics gathering/data visualization for recent contributions, translation reviews, etc.
  • |15924-1= … |15924-7= – Similar to |15924=, but the script code is normally required after the language code to perform translations.
    • |no-15924-1= … |no-15924-7= – Specifies that the scripts indicated by |15924-1= … |15924-7= are disabled/unsupported.

Dialects/regional variants

  • |variant1= … |variant17= – A language variant code supported by MediaWiki localization (should be a conforming BCP47 language tag made from a valid ISO 639 code followed by a country/region subtag and/or script code).
    • |wmvariant1= … |wmvariant17= – A few non-conforming, legacy variant codes used by Wikimedia wikis may also be indicated using this parameter instead of |variantN=.
    • |no-variant1= … |no-variant17= – to specify that the variant indicated by variant1 or wmvariant1 is disabled (not supported). This disables links to start translating in that variant, statistics gathering/data visualization for recent contributions, translation reviews, etc.
  • |wikipedia= – Assign any non-null value if there is a Wikipedia edition for the language.
    • |incubator= – Assign any non-null value if there is a test Wikipedia portal on Wikimedia Incubator for the language; you may also assign a wikilink target (valid from Wikipedia) to any other Wikimedia Project: namespace page as a value.
  • |wiktionary= – Assign any non-null value if there is a Wiktionary edition for the language.
    • |wiktionary incubator= – Assign any non-null value if there is a test Wiktionary portal on Wikimedia Incubator for the language; you may also assign a wikilink target (valid from Wikipedia) to any other Wikimedia Project: namespace page as a value.
  • |wikiquote= – Assign any non-null value if there is a Wikiquote edition for the language.
    • |wikiquote incubator= – Assign any non-null value if there is a test Wikiquote portal on Wikimedia Incubator for the language; you may also assign a wikilink target (valid from Wikipedia) to any other Wikimedia Project: namespace page as a value.
  • |wikinews= – Assign any non-null value if there is a Wikinews edition for the language.
    • |wikinews incubator= – Assign any non-null value if there is a test Wikinews portal on Wikimedia Incubator for the language; you may also assign a wikilink target (valid from Wikipedia) to any other Wikimedia Project: namespace page as a value.
  • |wikivoyage= – Assign any non-null value if there is a Wikivoyage edition for the language.
    • |wikivoyage incubator= – Assign any non-null value if there is a test Wikivoyage portal on Wikimedia Incubator for the language; you may also specify a wikilink target (valid from Wikipedia) to any other Wikimedia Project: namespace page as a value.
  • |wikisource= – Assign any non-null value if there is a Wikisource edition for the language.
    • |wikisource incubator= – pagename (not "yes") if there's a test Wikisource portal on Multilingual Wikisource for the language. You may also specify a wikilink (valid from Multilingual Wikisource), to any other Wikimedia project:namespace:pagename.
  • |wikibooks= – Assign any non-null value if there is a Wikibooks edition for the language.
    • |wikibooks incubator= – Assign any non-null value if there is a test Wikibooks portal on Wikimedia Incubator for the language; you may also specify a wikilink target (valid from Wikipedia) to any other Wikimedia Project: namespace page as a value.
  • |wikiversity= – Assign any non-null value if there is a Wikiversity edition for the language.
    • |wikiversity incubator= – pagename (not "yes") if there is a test Wikiversity portal on Beta Wikiversity for the language; you may also specify a wikilink target (valid from Beta Wikiversity) to any other Wikimedia Project: namespace page as a value.
  • |commons= – pagename (not "yes") if there is a home portal on Wikimedia Commons for the language.
  • |wikidata= – pagename (not "yes") if there is a home portal on Wikidata for the language.
  • |wikispecies= – pagename (not "yes") if there is a home portal on Wikispecies for the language.
  • |meta= – pagename (not "yes") if there is a home portal on Wikimedia Meta for the language.
  • |mediawiki= – pagename (not "yes") if there is a home portal on the MediaWiki wiki for the language.
Advanced parameters for linking to Wikimedia wikis
  • |alternate url= – legacy code used in Wikimedia interwikis when it does not match the standard IETF language tag, optionally followed by ":" and an actual page localized name for the "Main Page".
  • |nocolon=: – set this value to an empty string (instead of the default : value) if you provide it in a complete "alternate url" parameter, in order to avoid the ":" to be appended.

Examples

For Alemannic:

{{Portal
 | ns                    = Portal
 | pagename              = Gsw
 | article name          = Alemannic German
 | 639-2                 = gsw
 | 639-3                 = gsw
 | 15924                 = Latn
 | wikipedia             = yes
 | commons               = Houptsyte
 | wikidata              = Wikidata:Main Page
 | meta                  = Main Page/gsw
 | wikispecies           = Houptsyte
 | wiktionary incubator  = gsw:Wort:Houptsyte
 | wikibooks incubator   = gsw:Buech:Houptsyte
 | wikiquote incubator   = gsw:Spruch:Houptsyte
 | wikinews incubator    = gsw:Nochricht:Dialäkt-Neuigkeite
 | wikivoyage incubator  = gsw:Buech:Raisefierer
 | wikisource incubator  = w:gsw:Text:Houptsyte
 | wikiversity incubator = Houptsyte
 | mediawiki             = no
}}
generates…

Other notable examples of this template in use can be found at:

See also