Template:Portal

From translatewiki.net
Jump to navigation Jump to search

Test Template Info-Icon - Version (2).svg

The documentation of 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
| 15924-2 = Qqqq
| 15924-3 = Qqqq
| 15924-4 = Qqqq
| 15924-5 = Qqqq
| variant1 = qq-QQ
| variant2 = qq-QQ
| variant3 = qq-QQ
| variant4 = qq-QQ
| variant5 = qq-QQ
| variant6 = qq-QQ
| variant7 = qq-QQ
}}
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-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).
variant7= A language variant code supported by MediaWiki localization (up to 7 language variant codes may be specified).
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.
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.
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.
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.
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.
wikisource= yes if there's a Wikisource edition for that language.
wikisource incubator= yes if there's a test Wikisource portal on Old Wikisource for that language.
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.
wikiversity= yes if there's a Wikiversity edition for that language.
wikiversity incubator= yes if there's a test Wikiversity portal on Beta Wikiversity for that language.
Example:
{{Portal
|article name=Chinese language
|639-1=zh
|639-2b=chi
|639-2t=zho
|639-3=zho
|15924-1=Hans
|15924-2=Hant
|variant2=zh-hk
|wikipedia=yes
|wiktionary=yes
|wikibooks=yes
|wikiquote=yes
|wikisource=yes
|wikinews=yes
|wikivoyage=yes
|wikiversity incubator=yes
}}

generates:

See also: