Template:Portal

From translatewiki.net
Jump to navigation Jump to search
Test Template Info-Icon - Version (2).svg
The documentation of Portal/doc this template is included from its /doc subpage (Edit)


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
| 639-2 = qq
| 639-2b = qq
| 639-2t = qq
| 639-3 = qqq
| 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-->
| 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-->
}}
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.
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.
15924-1= Similar to 15924= but the script code is normally required after the language code to perform translations).
15924-2= Another possible script code for a script variant...
15924-3= Another possible script code for a script variant...
15924-4= Another possible script code for a script variant...
15924-5= Another possible script code for a script variant (up to 5 script variant codes may be specified).
variant1= 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=).
variant2= 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=).
variant3= A language variant code supported by MediaWiki localization...
variant4= A language variant code supported by MediaWiki localization...
variant5= A language variant code supported by MediaWiki localization...
variant6= A language variant code supported by MediaWiki localization...
variant7= A language variant code supported by MediaWiki localization...
variant8= A language variant code supported by MediaWiki localization...
variant9= A language variant code supported by MediaWiki localization (up to 9 language variant codes may be specified, only the 2 first can be marked as being used non-conformingly by Wikimedia).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
no-variant8=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.
no-variant9=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.
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.
wiktionnary= yes if there's a Wiktionary edition for that language.
wiktionnary 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: