Jump to content

Template:Portal

From translatewiki.net
The documentation of this template is included from its /doc subpage.


Usage:
Generates a portal page for a language (and its variants) for describing the localization performed on Translatewiki.net of MediaWiki and other softwares.
Syntax:
{{Portal
| article name = Sample language
| 639-1 = qq <!--optional-->
| 639-2 = qq <!--optional, or the following two:-->
| 639-2b = qq <!--optional-->
| 639-2t = qq <!--optional-->
| 639-3 = qqq <!--optional-->
| 639-5 = qqq <!--optional, for some legacy ISO 639-1/2 collective codes only, not mapped in ISO 639-3-->
| 15924 = Qqqq <!-- or: -->
| 15924-1 = Qqqq    | no-15924-1 = <!--optional-->
| 15924-2 = Qqqq    | no-15924-2 = <!--optional-->
| 15924-3 = Qqqq    | no-15924-3 = <!--optional-->
| 15924-4 = Qqqq    | no-15924-4 = <!--optional-->
| 15924-5 = Qqqq    | no-15924-5 = <!--optional-->
| 15924-6 = Qqqq    | no-15924-6 = <!--optional-->
| 15924-7 = Qqqq    | no-15924-7 = <!--optional-->
| variant1 = qq-QQ  | no-variant1 = <!--optional-->
| variant2 = qq-QQ  | no-variant2 = <!--optional-->
| variant3 = qq-QQ  | no-variant3 = <!--optional-->
| variant4 = qq-QQ  | no-variant4 = <!--optional-->
| variant5 = qq-QQ  | no-variant5 = <!--optional-->
| variant6 = qq-QQ  | no-variant6 = <!--optional-->
| variant7 = qq-QQ  | no-variant7 = <!--optional-->
| variant8 = qq-QQ  | no-variant8 = <!--optional-->
| variant9 = qq-QQ  | no-variant9 = <!--optional-->
| variant10 = qq-QQ | no-variant10 = <!--optional-->
| variant11 = qq-QQ | no-variant11 = <!--optional-->
| variant12 = qq-QQ | no-variant12 = <!--optional-->
| variant13 = qq-QQ | no-variant13 = <!--optional-->
| variant14 = qq-QQ | no-variant14 = <!--optional-->
| variant15 = qq-QQ | no-variant15 = <!--optional-->
| variant16 = qq-QQ | no-variant16 = <!--optional-->
| variant17 = qq-QQ | no-variant17 = <!--optional-->
| disabled = <!--optional-->
}}
Parameters for information about the language:
ns= (optional) The local namespace name of the language portal (if not specified, uses {{NAMESPACE}}, i.e. the namespace name of the current page).
page name= (optional) The local page name of the portal, without its "Portal:" namespace, should be a language code (if not specified, uses {{PAGENAME}}, i.e. the current page name).
article name= Name of an article in Wikipedia about the language (use an interwiki prefix if needed to select another target wiki).
639-1= A 2-letter code from ISO 639-1 (used for technical purpose), for a unique language or a macrolanguage or some legacy non-inclusive language family.
639-2= A 3-letter code from ISO 639-2 (used for both technical and bibliographic purposes), for a unique language, or a 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 3-letter code from ISO 639-2 (used for bibliographic purpose only, not for use in BCP 47), for a unique language, or a macrolanguage or some legacy code for a non-inclusive language family.
639-2t= A 3-letter code from ISO 639-2 (used for technical purpose), for a unique language or a 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 3-letter code from ISO 639-3 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 3-letter code from ISO 639-5 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, not all of them have a ISO 639-5 code assigned.
Optional parameters for supported language variants:
15924= A 4 letters code from ISO 15924 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=1 to specify that the script indicated by 15924 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
15924-1= Similar to 15924= but the script code is normally required after the language code to perform translations).
no-15924-1=1 to specify that the script indicated by 15924-1 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
15924-2= Another possible script code for a script variant...
no-15924-2=1 to specify that the script indicated by 15924-2 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
15924-3= Another possible script code for a script variant...
no-15924-3=1 to specify that the script indicated by 15924-3 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
15924-4= Another possible script code for a script variant...
no-15924-4=1 to specify that the script indicated by 15924-4 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
15924-5= Another possible script code for a script variant...
no-15924-5=1 to specify that the script indicated by 15924-5 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
15924-6= Another possible script code for a script variant...
no-15924-6=1 to specify that the script indicated by 15924-6 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
15924-7= Another possible script code for a script variant (up to 7 script variant codes may be specified).
no-15924-7=1 to specify that the script indicated by 15924-7 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
variant1= or wmvariant1= A language variant code supported by MediaWiki localization (should be a conforming BCP47 language tag made with a valid ISO 639 code followed by a country/region subtag and/or script code, but a few legacy non-conforming variant codes used by Wikimedia wikis may also be indicated using wmvariant1= instead of variant1=).
no-variant1=1 to specify that the variant indicated by variant1 or wmvariant1 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
variant2= or wmvariant2= A language variant code supported by MediaWiki localization (should be a conforming BCP47 language tag made with a valid ISO 639 code followed by a country/region subtag and/or script code, but a few legacy non-conforming variant codes used by Wikimedia wikis may also be indicated using wmvariant2= instead of variant2=).
no-variant2=1 to specify that the variant indicated by variant2 or wmvariant2 is disabled (not supported). This disables links to start translating in that variant, and contributions/reviews graphs for it.
variant3= A language variant code supported by MediaWiki localization...
no-variant3=1 to specify that the variant indicated by variant3 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
variant4= A language variant code supported by MediaWiki localization...
no-variant4=1 to specify that the variant indicated by variant4 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
variant5= A language variant code supported by MediaWiki localization...
no-variant5=1 to specify that the variant indicated by variant5 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
variant6= A language variant code supported by MediaWiki localization...
no-variant6=1 to specify that the variant indicated by variant6 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
variant7= A language variant code supported by MediaWiki localization...
no-variant7=1 to specify that the variant indicated by variant7 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
variant8= A language variant code supported by MediaWiki localization...
no-variant8=1 to specify that the variant indicated by variant8 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
variant9= A language variant code supported by MediaWiki localization...
no-variant9=1 to specify that the variant indicated by variant9 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
variant10= A language variant code supported by MediaWiki localization...
no-variant10=1 to specify that the variant indicated by variant10 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
variant11= A language variant code supported by MediaWiki localization...
no-variant11=1 to specify that the variant indicated by variant11 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
variant12= A language variant code supported by MediaWiki localization...
no-variant12=1 to specify that the variant indicated by variant12 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
variant13= A language variant code supported by MediaWiki localization...
no-variant13=1 to specify that the variant indicated by variant13 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
variant14= A language variant code supported by MediaWiki localization...
no-variant14=1 to specify that the variant indicated by variant14 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
variant15= A language variant code supported by MediaWiki localization...
no-variant15=1 to specify that the variant indicated by variant15 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
variant16= A language variant code supported by MediaWiki localization...
no-variant16=1 to specify that the variant indicated by variant16 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
variant17= A language variant code supported by MediaWiki localization (up to 17 language variant codes may be specified, only the 2 first can be marked as being used non-conformingly by Wikimedia).
no-variant17=1 to specify that the variant indicated by variant17 is disabled (not supported). This disables links to start translating in that variant, and recent contributions/reviews graphs for it.
disabled= set to a non-empty value to mark the translations as being disabled. This will display a warning banner for this absence of support.
Optional parameters for linking to Wikimedia wikis:
wikipedia= yes if there's a Wikipedia edition for that language.
incubator= yes if there's a test Wikipedia portal on Wikimedia Incubator for that language. You may also specify a wikilink (valid from Wikipedia), to any other Wikimedia project:namespace:pagename.
wiktionary= yes if there's a Wiktionary edition for that language.
wiktionary incubator= yes if there's a test Wiktionary portal on Wikimedia Incubator for that language. You may also specify a wikilink (valid from Wikipedia), to any other Wikimedia project:namespace:pagename.
wikiquotes= yes if there's a Wikiquotes edition for that language.
wikiquotes incubator= yes if there's a test Wikiquotes portal on Wikimedia Incubator for that language. You may also specify a wikilink (valid from Wikipedia), to any other Wikimedia project:namespace:pagename.
wikinews= yes if there's a Wikinews edition for that language.
wikinews incubator= yes if there's a test Wikinews portal on Wikimedia Incubator for that language. You may also specify a wikilink (valid from Wikipedia), to any other Wikimedia project:namespace:pagename.
wikivoyage= yes if there's a Wikivoyage edition for that language.
wikivoyage incubator= yes if there's a test Wikivoyage portal on Wikimedia Incubator for that language. You may also specify a wikilink (valid from Wikipedia), to any other Wikimedia project:namespace:pagename.
wikisource= yes if there's a Wikisource edition for that language.
wikisource incubator= pagename (not "yes") if there's a test Wikisource portal on Multilingual Wikisource for that language. You may also specify a wikilink (valid from Multilingual Wikisource), to any other Wikimedia project:namespace:pagename.
wikibooks= yes if there's a Wikibooks edition for that language.
wikibooks incubator= yes if there's a test Wikibooks portal on Wikimedia Incubator for that language. You may also specify a wikilink (valid from Wikipedia), to any other Wikimedia project:namespace:pagename.
wikiversity= yes if there's a Wikiversity edition for that language.
wikiversity incubator= pagename (not "yes") if there's a test Wikiversity portal on Beta Wikiversity for that language. You may also specify a wikilink (valid from Beta Wikiversity), to any other Wikimedia project:namespace:pagename.
commons= pagename (not "yes") if there's a home portal on Wikimedia Commons for that language.
wikidata= pagename (not "yes") if there's a home portal on Wikidata for that language.
wikispecies= pagename (not "yes") if there's a home portal on Wikispecies for that language.
meta= pagename (not "yes") if there's a home portal on Wikimedia Meta for that language.
mediawiki= pagename (not "yes") if there's a home portal on the MediaWiki wiki for that 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
Example for Alemannic:
{{Portal
|article name=Alemannic German
|639-2=gsw
|639-3=gsw
|15924=Latn
|wikipedia=yes
|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
|wikispecies=Houptsyte
|commons=Houptsyte
|wikidata=Wikidata:Main Page
|meta=Main Page/gsw
|mediawiki=no
}}

generates:

Example for Chinese:
{{Portal
|article name=Chinese language
|639-1=zh
|639-2b=chi
|639-2t=zho
|639-3=zho
|15924-1=Hans
|15924-2=Hant
|variant1=zh |no-variant1=1
|variant2=zh-HK
|variant3=zh-CN |no-variant3=1
|variant4=zh-MO |no-variant4=1
|variant5=zh-MY |no-variant5=1
|variant6=zh-SG |no-variant6=1
|variant7=zh-TW |no-variant7=1
|wikipedia=yes
|wiktionary=yes
|wikibooks=yes
|wikiquote=yes
|wikisource=yes
|wikinews=yes
|wikivoyage=yes
|wikiversity=yes
}}

generates:

See also: