Template:Langtable: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
mNo edit summary
(Added documentation)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| {| align="left" style="background: #{{{color|{{green color}}}}}; {{roundy|1em}} border: 3px solid #{{{bordercolor|{{green color light}}}}};"
{| style="background: #{{{color|{{green color}}}}}; {{roundy|1em}} border: 3px solid #{{{bordercolor|{{green color light}}}}};"
|-
|-
|
|
{| border=1 width="100%" align="center" style="background: #FFFFFF; border:1px solid #{{{color|{{green color}}}}}; border-collapse:collapse;"
{| border=1 width="100%" style="background: #FFF; border:1px solid #{{{color|{{green color}}}}}; border-collapse:collapse"
|- style="background: #{{{color|{{green color}}}}};"
|- style="background: #{{{color|{{green color}}}}}"
! colspan=2 | {{color|{{{textcolor|000}}}|Language}}
! colspan=2 | {{color|{{{textcolor|000}}}|Language}}
! {{color|{{{textcolor|000}}}|Title}}
! {{color|{{{textcolor|000}}}|Title}}
Line 14: Line 14:
{{#if: {{{en|}}}|
{{#if: {{{en|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:England Flag.png|20px]] English
{{!}} colspan=2 {{!}} [[File:England Flag.png|20px]] {{pmin|English}}
{{!}} {{{en}}}|
{{!}} {{{en}}}|
{{!}}-
}}
{{#if: {{{sq|}}}|
{{!}}-
{{!}} colspan=2 {{!}} [[File:Albania Flag.png|20px]] {{pmin|Albania}}n
{{!}} {{{sq}}}|
{{!}}-
{{!}}-
}}
}}
Line 22: Line 28:
{{!}} colspan=2 {{!}} [[File:The Arab world Flag.png|20px]] {{pmin|the Arab world|Arabic}}
{{!}} colspan=2 {{!}} [[File:The Arab world Flag.png|20px]] {{pmin|the Arab world|Arabic}}
{{!}} {{{ar}}}|
{{!}} {{{ar}}}|
{{!}}-
}}
{{#if: {{{az|}}}|
{{!}}-
{{!}} colspan=2 {{!}} [[File:Azerbaijan Flag.png|20px]] Azerbaijani
{{!}} {{{az}}}|
{{!}}-
{{!}}-
}}
}}
Line 42: Line 54:
{{!}}-
{{!}}-
}}
}}
{{#if: {{{ca_ct|}}}|
{{#if: {{{ca_vc|}}}|
{{!}}-
{{!}} rowspan=2 {{!}} {{pmin|Spain|Catalan}}
{{!}} [[File:Catalonia Flag.png|20px]] Catalonia
{{!}} {{{ca_ct}}}
{{!}}-
{{!}} [[File:Valencia Flag.png|20px]] Valencia
{{!}} {{{ca_vc}}}|
{{!}}-
{{!}} colspan=2 {{!}} [[File:Catalonia Flag.png|20px]] {{pmin|Spain|Catalan}}
{{!}} {{{ca_ct}}}}}|
{{#if: {{{ca_vc|}}}|
{{!}}-
{{!}} colspan=2 {{!}} [[File:Valencia Flag.png|20px]] {{pmin|Spain|Valencian}}
{{!}} {{{ca_vc}}}|
{{!}}-
}}}}
{{#if: {{{zh_yue|}}}|
{{#if: {{{zh_yue|}}}|
{{#if: {{{zh_cmn|}}}|
{{#if: {{{zh_cmn|}}}|
Line 62: Line 92:
{{#if: {{{hr|}}}|
{{#if: {{{hr|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Croatia Flag.png|20px]] Croatian
{{!}} colspan=2 {{!}} [[File:Croatia Flag.png|20px]] {{pmin|Croatia}}n
{{!}} {{{hr}}}|
{{!}} {{{hr}}}|
{{!}}-
{{!}}-
Line 84: Line 114:
{{!}}-
{{!}}-
}}
}}
{{#if: {{{nl_nl|}}}|
{{#if: {{{nl_be|}}}|
{{!}}-
{{!}} rowspan=2 {{!}} Dutch
{{!}} [[File:The Netherlands Flag.png|20px]] {{pmin|the Netherlands|Netherlands}}
{{!}} {{{nl_nl}}}
{{!}}-
{{!}} [[File:Belgium Flag.png|20px]] {{pmin|Belgium}}
{{!}} {{{nl_be}}}|
{{!}}-
{{!}} colspan=2 {{!}} [[File:The Netherlands Flag.png|20px]] {{pmin|the Netherlands|Dutch}}
{{!}} {{{nl_nl}}}}}|
{{#if: {{{nl_be|}}}|
{{!}}-
{{!}} colspan=2 {{!}} [[File:Belgium Flag.png|20px]] {{pmin|Belgium|Flemish}}
{{!}} {{{nl_be}}}|
{{!}}-
}}}}
{{#if: {{{et|}}}|
{{#if: {{{et|}}}|
{{!}}-
{{!}}-
Line 152: Line 200:
{{#if: {{{hu|}}}|
{{#if: {{{hu|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Hungary Flag.png|20px]] Hungarian
{{!}} colspan=2 {{!}} [[File:Hungary Flag.png|20px]] {{pmin|Hungary|Hungarian}}
{{!}} {{{hu}}}|
{{!}} {{{hu}}}|
{{!}}-
{{!}}-
Line 158: Line 206:
{{#if: {{{is|}}}|
{{#if: {{{is|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Iceland Flag.png|20px]] Icelandic
{{!}} colspan=2 {{!}} [[File:Iceland Flag.png|20px]] {{pmin|Iceland}}ic
{{!}} {{{is}}}|
{{!}} {{{is}}}|
{{!}}-
{{!}}-
Line 178: Line 226:
{{!}} colspan=2 {{!}} [[File:South Korea Flag.png|20px]] {{pmin|South Korea|Korean}}
{{!}} colspan=2 {{!}} [[File:South Korea Flag.png|20px]] {{pmin|South Korea|Korean}}
{{!}} {{{ko}}}|
{{!}} {{{ko}}}|
{{!}}-
}}
{{#if: {{{lv|}}}|
{{!}}-
{{!}} colspan=2 {{!}} [[File:Latvia Flag.png|20px]] Latvian
{{!}} {{{lv}}}|
{{!}}-
}}
{{#if: {{{lt|}}}|
{{!}}-
{{!}} colspan=2 {{!}} [[File:Lithuania Flag.png|20px]] {{pmin|Lithuania}}n
{{!}} {{{lt}}}|
{{!}}-
}}
{{#if: {{{mk|}}}|
{{!}}-
{{!}} colspan=2 {{!}} [[File:Macedonia Flag.png|20px]] Macedonian
{{!}} {{{mk}}}|
{{!}}-
}}
{{#if: {{{ms|}}}|
{{!}}-
{{!}} colspan=2 {{!}} [[File:Malaysia Flag.png|20px]] {{pmin|Malaysia}}n
{{!}} {{{ms}}}|
{{!}}-
}}
{{#if: {{{mn|}}}|
{{!}}-
{{!}} colspan=2 {{!}} [[File:Mongolia Flag.png|20px]] Mongolian
{{!}} {{{mn}}}|
{{!}}-
{{!}}-
}}
}}
Line 218: Line 296:
{{#if: {{{ro|}}}|
{{#if: {{{ro|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Romania Flag.png|20px]] Romanian
{{!}} colspan=2 {{!}} [[File:Romania Flag.png|20px]] {{pmin|Romania}}n
{{!}} {{{ro}}}|
{{!}} {{{ro}}}|
{{!}}-
{{!}}-
Line 236: Line 314:
{{#if: {{{sk|}}}|
{{#if: {{{sk|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Slovakia Flag.png|20px]] Slovak
{{!}} colspan=2 {{!}} [[File:Slovakia Flag.png|20px]] {{pmin|Slovakia|Slovak}}
{{!}} {{{sk}}}|
{{!}} {{{sk}}}|
{{!}}-
{{!}}-
Line 296: Line 374:
{{#if: {{{tr|}}}|
{{#if: {{{tr|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Turkey Flag.png|20px]] Turkish
{{!}} colspan=2 {{!}} [[File:Turkey Flag.png|20px]] {{pmin|Turkey|Turkish}}
{{!}} {{{tr}}}|
{{!}} {{{tr}}}|
{{!}}-
{{!}}-
Line 304: Line 382:
{{!}} colspan=2 {{!}} [[File:Ukraine Flag.png|20px]] Ukrainian
{{!}} colspan=2 {{!}} [[File:Ukraine Flag.png|20px]] Ukrainian
{{!}} {{{uk}}}|
{{!}} {{{uk}}}|
{{!}}-
}}
{{#if: {{{ur|}}}|
{{!}}-
{{!}} colspan=2 {{!}} [[File:Pakistan Flag.png|20px]] {{pmin|South Asia|Urdu}}
{{!}} {{{ur}}}|
{{!}}-
{{!}}-
}}
}}
{{#if: {{{vi|}}}|
{{#if: {{{vi|}}}|
{{!}}-
{{!}}-
{{!}} colspan=2 {{!}} [[File:Vietnam Flag.png|20px]] Vietnamese
{{!}} colspan=2 {{!}} [[File:Vietnam Flag.png|20px]] {{pmin|Vietnam}}ese
{{!}} {{{vi}}}|
{{!}} {{{vi}}}|
{{!}}-
{{!}}-
}}
}}
|-
|-
| colspan=3 style="background: #{{{color|{{green color}}}}};" | {{#if: {{{footnote|}}} | <small>{{{footnote}}}</small> | }}
| colspan=3 style="background: #{{{color|{{green color}}}}}" | {{#if: {{{footnote|}}} | <small>{{{footnote}}}</small> | }}
|}
|}
|}<noinclude>
|}<noinclude>
{{-}}
{{Documentation}}
 
==List of language codes==
This template uses ISO codes. The parameters used are:
{{Langtable
|ja=ja
|en=en
|ar=ar
|eu=eu
|bg=bg
|ca=ca
|zh_yue=zh_yue
|zh_cmn=zh_cmn
|hr=hr
|cs=cs
|da=da
|nl=nl
|et=et
|fil=fil
|fi=fi
|fr={{tt|fr|When there's no language differences}}
|fr_ca=fr_ca
|fr_eu=fr_eu
|de=de
|el=el
|he=he
|hi=hi
|hu=hu
|is=is
|id=id
|it=it
|ko=ko
|no=no
|pl=pl
|pt={{tt|pt|When there's no language differences}}
|pt_br=pt_br
|pt_eu=pt_eu
|ro=ro
|ru=ru
|sr=sr
|sk=sk
|sl=sl
|es={{tt|es|When there's no language differences}}
|es_la=es_la
|es_eu=es_eu
|sv=sv
|ta=ta
|te=te
|th=th
|tr=tr
|uk=uk
|vi=vi}}


[[Category:Table templates]]</noinclude><br clear="left">
[[Category:Table templates]]</noinclude>

Latest revision as of 01:20, 2 October 2023

Language Title



Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)

{{Langtable}} displays the name of an entity in multiple languages. A similar template, {{Other languages}}, allows the inclusion of definitions.

How to use

This template is most often used in a section titled ==In other languages==, towards the bottom of an article.

Parameters

All parameters are case sensitive.

Parameter Allowed values Notes
bordercolor Hex codeColor template Sets the template border color. Don't include #. If using a color template, include the full name including the {{ }}. Defaults to {{green color light}}.
color Hex codeColor template Sets the template background color. Don't include #. If using a color template, include the full name including the {{ }}. Defaults to {{green color}}.
textcolor Hex codeColor template Sets the template text color. Don't include #. If using a color template, include the full name including the {{ }}. Defaults to 000.
xx String The name of the entity in the language denoted, where xx is replaced by one of the codes shown below.

Language codes

This template uses the following ISO 639-1 language codes:

Language Code
Japan Flag.png Japanese ja
England Flag.png English en
Albania Flag.png Albanian sq
The Arab world Flag.png Arabic ar
Azerbaijan Flag.png Azerbaijani az
Basque Flag.png Basque eu
Bulgaria Flag.png Bulgarian bg
Catalan Catalonia Flag.png Catalan (when no language difference) ca
Catalonia Flag.png Catalonia ca_ct
Valencia Flag.png Valencia ca_vc
Chinese Cantonese zh_yue
Mandarin zh_cmn
Croatia Flag.png Croatian hr
The Czech Republic Flag.png Czech cs
Denmark Flag.png Danish da
Dutch The Netherlands Flag.png Dutch (when no language difference) nl
The Netherlands Flag.png Netherlands nl_nl
Belgium Flag.png Belgium nl_be
Estonia Flag.png Estonian et
The Philippines Flag.png Filipino fil
Finland Flag.png Finnish fi
French France Flag.png French (when no language difference) fr
Canada Flag.png Canada fr_ca
France Flag.png Europe fr_eu
Germany Flag.png German de
Greece Flag.png Greek el
Israel Flag.png Hebrew he
India Flag.png Hindi hi
Iceland Flag.png Icelandic is
Indonesia Flag.png Indonesian id
Italy Flag.png Italian it
South Korea Flag.png Korean ko
Latvia Flag.png Latvian lv
Lithuania Flag.png Lithuanian lt
Macedonia Flag.png Macedonian mk
Malaysia Flag.png Malaysian ms
Mongolia Flag.png Mongolian mn
Norway Flag.png Norwegian no
Poland Flag.png Polish pl
Portuguese Portugal Flag.png Portuguese (when no language difference) pt
Brazil Flag.png Brazil pt_br
Portugal Flag.png Portugal pt_eu
Romania Flag.png Romanian ro
Russia Flag.png Russian ru
Serbia Flag.png Serbian sr
Slovakia Flag.png Slovak sk
Slovenia Flag.png Slovene sl
Spanish Spain Flag.png Spanish (when no language difference) es
CELAC Flag.png Latin America es_la
Spain Flag.png Spain es_eu
Sweden Flag.png Swedish sv
Tamil Flag.png Tamil ta
India Flag.png Telugu te
Thailand Flag.png Thai th
Turkey Flag.png Turkish tr
Ukraine Flag.png Ukrainian uk
Pakistan Flag.png Urdu ur
Vietnam Flag.png Vietnamese vi

Example

{{Langtable
| color = {{Pokémon color}}
| bordercolor = {{Pokémon color dark}}
| zh_yue = 寵物小精靈電影版 ''Pocket Monsters the Movie''
| zh_cmn = 神奇寶貝 電影版 ''Pocket Monsters the Movie''
| da = Pokémon Filmen
| fr_eu = Film Pokémon
| fi = Pokémon-elokuva
| de = Pokémon-Film
| it = Film Pokémon
| nl = Pokémon Film
| no = Pokémon Filmen
| pl = Film Pokémon
| pt = Filme Pokémon
| ru = Покемон-фильм ''Pokémon-fil'm''
| es_eu = Película Pokémon
| sv = Pokémon Filmen
| tr = Pokémon Filmi
}}
Language Title
Chinese Cantonese 寵物小精靈電影版 Pocket Monsters the Movie
Mandarin 神奇寶貝 電影版 Pocket Monsters the Movie
Denmark Flag.png Danish Pokémon Filmen
The Netherlands Flag.png Dutch Pokémon Film
Finland Flag.png Finnish Pokémon-elokuva
France Flag.png European French Film Pokémon
Germany Flag.png German Pokémon-Film
Italy Flag.png Italian Film Pokémon
Norway Flag.png Norwegian Pokémon Filmen
Poland Flag.png Polish Film Pokémon
Portugal Flag.png Portuguese Filme Pokémon
Russia Flag.png Russian Покемон-фильм Pokémon-fil'm
Spain Flag.png European Spanish Película Pokémon
Sweden Flag.png Swedish Pokémon Filmen
Turkey Flag.png Turkish Pokémon Filmi