Template:Langtable: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(Made Japanese optional.) |
(Added documentation) |
||
(51 intermediate revisions by 17 users not shown) | |||
Line 1: | Line 1: | ||
{| | {| style="background: #{{{color|{{green color}}}}}; {{roundy|1em}} border: 3px solid #{{{bordercolor|{{green color light}}}}};" | ||
|- | |- | ||
| | | | ||
{| | {| 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 | Language | ! colspan=2 | {{color|{{{textcolor|000}}}|Language}} | ||
! | ! {{color|{{{textcolor|000}}}|Title}} | ||
| | |||
{{#if: {{{ja|}}}| | {{#if: {{{ja|}}}| | ||
{{!}}- | {{!}}- | ||
{{!}} colspan=2 {{!}} Japanese | {{!}} colspan=2 {{!}} [[File:Japan Flag.png|20px]] Japanese | ||
{{!}} {{{ja}}}| | {{!}} {{{ja}}}| | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
| colspan=2 | French | {{#if: {{{en|}}}| | ||
| {{{ | {{!}}- | ||
|- | {{!}} colspan=2 {{!}} [[File:England Flag.png|20px]] {{pmin|English}} | ||
| colspan=2 | German | {{!}} {{{en}}}| | ||
| {{{ | {{!}}- | ||
|- | }} | ||
| colspan=2 | | {{#if: {{{sq|}}}| | ||
| {{{it|}}} | {{!}}- | ||
|- | {{!}} colspan=2 {{!}} [[File:Albania Flag.png|20px]] {{pmin|Albania}}n | ||
{{!}} {{{sq}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{ar|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:The Arab world Flag.png|20px]] {{pmin|the Arab world|Arabic}} | |||
{{!}} {{{ar}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{az|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Azerbaijan Flag.png|20px]] Azerbaijani | |||
{{!}} {{{az}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{eu|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Basque Flag.png|20px]] {{pmin|Spain|Basque}} | |||
{{!}} {{{eu}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{bg|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Bulgaria Flag.png|20px]] {{pmin|Bulgaria|Bulgarian}} | |||
{{!}} {{{bg}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{ca|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Catalonia Flag.png|20px]] {{pmin|Spain|Catalan}} | |||
{{!}} {{{ca}}}| | |||
{{!}}- | |||
}} | |||
{{#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_cmn|}}}| | |||
{{!}}- | |||
{{!}} rowspan=2 {{!}} {{pmin|Greater China|Chinese}} | |||
{{!}} {{tt|Cantonese|Hong Kong}} | |||
{{!}} {{{zh_yue}}} | |||
{{!}}- | |||
{{!}} {{tt|Mandarin|Taiwan and mainland China}} | |||
{{!}} {{{zh_cmn}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} {{pmin|Greater China|{{tt|Cantonese Chinese|Hong Kong}}}} | |||
{{!}} {{{zh_yue}}}}}| | |||
{{#if: {{{zh_cmn|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} {{pmin|Greater China|{{tt|Mandarin Chinese|Taiwan and mainland China}}}} | |||
{{!}} {{{zh_cmn}}}| | |||
{{!}}- | |||
}}}} | |||
{{#if: {{{hr|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Croatia Flag.png|20px]] {{pmin|Croatia}}n | |||
{{!}} {{{hr}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{cs|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:The Czech Republic Flag.png|20px]] {{pmin|the Czech Republic|Czech}} | |||
{{!}} {{{cs}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{da|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Denmark Flag.png|20px]] {{pmin|Denmark|Danish}} | |||
{{!}} {{{da}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{nl|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:The Netherlands Flag.png|20px]] {{pmin|the Netherlands|Dutch}} | |||
{{!}} {{{nl}}}| | |||
{{!}}- | |||
}} | |||
{{#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|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Estonia Flag.png|20px]] Estonian | |||
{{!}} {{{et}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{fil|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:The Philippines Flag.png|20px]] {{pmin|the Philippines|Filipino}} | |||
{{!}} {{{fil}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{fi|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Finland Flag.png|20px]] {{pmin|Finland|Finnish}} | |||
{{!}} {{{fi}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{fr|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:France Flag.png|20px]] {{pmin|French}} | |||
{{!}} {{{fr}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{fr_ca|}}}| | |||
{{#if: {{{fr_eu|}}}| | |||
{{!}}- | |||
{{!}} rowspan=2 {{!}} French | |||
{{!}} [[File:Canada Flag.png|20px]] {{pmin|Canada}} | |||
{{!}} {{{fr_ca}}} | |||
{{!}}- | |||
{{!}} [[File:France Flag.png|20px]] {{pmin|France|Europe}} | |||
{{!}} {{{fr_eu}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Canada Flag.png|20px]] {{pmin|Canada|Canadian French}} | |||
{{!}} {{{fr_ca}}}}}| | |||
{{#if: {{{fr_eu|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:France Flag.png|20px]] {{pmin|France|European French}} | |||
{{!}} {{{fr_eu}}}| | |||
{{!}}- | |||
}}}} | |||
{{#if: {{{de|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Germany Flag.png|20px]] {{pmin|Germany|German}} | |||
{{!}} {{{de}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{el|{{{gr|}}}}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Greece Flag.png|20px]] {{pmin|Greece|Greek}} | |||
{{!}} {{{el|{{{gr}}}}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{he|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Israel Flag.png|20px]] {{pmin|Israel|Hebrew}} | |||
{{!}} {{{he}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{hi|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:India Flag.png|20px]] {{pmin|South Asia|Hindi}} | |||
{{!}} {{{hi}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{hu|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Hungary Flag.png|20px]] {{pmin|Hungary|Hungarian}} | |||
{{!}} {{{hu}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{is|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Iceland Flag.png|20px]] {{pmin|Iceland}}ic | |||
{{!}} {{{is}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{id|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Indonesia Flag.png|20px]] {{pmin|Indonesia}}n | |||
{{!}} {{{id}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{it|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Italy Flag.png|20px]] {{pmin|Italy|Italian}} | |||
{{!}} {{{it}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{ko|}}}| | {{#if: {{{ko|}}}| | ||
{{!}}- | {{!}}- | ||
{{!}} colspan=2 {{!}} Korean | {{!}} colspan=2 {{!}} [[File:South Korea Flag.png|20px]] {{pmin|South Korea|Korean}} | ||
{{!}} {{{ko}}}| | {{!}} {{{ko}}}| | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
| colspan=2 | Spanish | {{#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}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{no|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Norway Flag.png|20px]] {{pmin|Norway|Norwegian}} | |||
{{!}} {{{no}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{pl|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Poland Flag.png|20px]] {{pmin|Poland|Polish}} | |||
{{!}} {{{pl}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{pt|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Portugal Flag.png|20px]] {{pmin|Portuguese}} | |||
{{!}} {{{pt}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{pt_br|}}}| | |||
{{#if: {{{pt_eu|}}}| | |||
{{!}}- | |||
{{!}} rowspan=2 {{!}} Portuguese | |||
{{!}} [[File:Brazil Flag.png|20px]] {{pmin|Brazil}} | |||
{{!}} {{{pt_br}}} | |||
{{!}}- | |||
{{!}} [[File:Portugal Flag.png|20px]] {{pmin|Portugal}} | |||
{{!}} {{{pt_eu}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Brazil Flag.png|20px]] {{pmin|Brazil|Brazilian Portuguese}} | |||
{{!}} {{{pt_br}}}}}| | |||
{{#if: {{{pt_eu|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Portugal Flag.png|20px]] {{pmin|Portugal|European Portuguese}} | |||
{{!}} {{{pt_eu}}}| | |||
{{!}}- | |||
}}}} | |||
{{#if: {{{ro|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Romania Flag.png|20px]] {{pmin|Romania}}n | |||
{{!}} {{{ro}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{ru|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Russia Flag.png|20px]] {{pmin|Russia|Russian}} | |||
{{!}} {{{ru}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{sr|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Serbia Flag.png|20px]] {{pmin|Serbia}}n | |||
{{!}} {{{sr}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{sk|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Slovakia Flag.png|20px]] {{pmin|Slovakia|Slovak}} | |||
{{!}} {{{sk}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{sl|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Slovenia Flag.png|20px]] Slovene | |||
{{!}} {{{sl}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{es|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Spain Flag.png|20px]] {{pmin|Spanish}} | |||
{{!}} {{{es}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{es_la|}}}| | |||
{{#if: {{{es_eu|}}}| | |||
{{!}}- | |||
{{!}} rowspan=2 {{!}} Spanish | |||
{{!}} [[File:CELAC Flag.png|20px]] {{pmin|Latin America}} | |||
{{!}} {{{es_la}}} | |||
{{!}}- | |||
{{!}} [[File:Spain Flag.png|20px]] {{pmin|Spain}} | |||
{{!}} {{{es_eu}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:CELAC Flag.png|20px]] {{pmin|Latin America|Latin American Spanish}} | |||
{{!}} {{{es_la}}}}}| | |||
{{#if: {{{es_eu|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Spain Flag.png|20px]] {{pmin|Spain|European Spanish}} | |||
{{!}} {{{es_eu}}}| | |||
{{!}}- | |||
}}}} | |||
{{#if: {{{sv|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Sweden Flag.png|20px]] {{pmin|Sweden|Swedish}} | |||
{{!}} {{{sv}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{ta|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Tamil Flag.png|20px]] {{pmin|South Asia|Tamil}} | |||
{{!}} {{{ta}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{te|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:India Flag.png|20px]] {{pmin|South Asia|Telugu}} | |||
{{!}} {{{te}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{th|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Thailand Flag.png|20px]] {{pmin|Thailand|Thai}} | |||
{{!}} {{{th}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{tr|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Turkey Flag.png|20px]] {{pmin|Turkey|Turkish}} | |||
{{!}} {{{tr}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{uk|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Ukraine Flag.png|20px]] Ukrainian | |||
{{!}} {{{uk}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{ur|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Pakistan Flag.png|20px]] {{pmin|South Asia|Urdu}} | |||
{{!}} {{{ur}}}| | |||
{{!}}- | |||
}} | |||
{{#if: {{{vi|}}}| | |||
{{!}}- | |||
{{!}} colspan=2 {{!}} [[File:Vietnam Flag.png|20px]] {{pmin|Vietnam}}ese | |||
{{!}} {{{vi}}}| | |||
{{!}}- | |||
}} | |||
|- | |- | ||
| colspan=3 style="background: #{{{color|{{green color}}}}} | | colspan=3 style="background: #{{{color|{{green color}}}}}" | {{#if: {{{footnote|}}} | <small>{{{footnote}}}</small> | }} | ||
|} | |} | ||
|}<noinclude> | |}<noinclude> | ||
{{ | {{Documentation}} | ||
[[Category:Table templates]]</noinclude> |
Latest revision as of 01:20, 2 October 2023
|
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 code • Color 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 code • Color 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 code • Color 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 | |
---|---|---|
Japanese | ja
| |
English | en
| |
Albanian | sq
| |
Arabic | ar
| |
Azerbaijani | az
| |
Basque | eu
| |
Bulgarian | bg
| |
Catalan | Catalan (when no language difference) | ca
|
Catalonia | ca_ct
| |
Valencia | ca_vc
| |
Chinese | Cantonese | zh_yue
|
Mandarin | zh_cmn
| |
Croatian | hr
| |
Czech | cs
| |
Danish | da
| |
Dutch | Dutch (when no language difference) | nl
|
Netherlands | nl_nl
| |
Belgium | nl_be
| |
Estonian | et
| |
Filipino | fil
| |
Finnish | fi
| |
French | French (when no language difference) | fr
|
Canada | fr_ca
| |
Europe | fr_eu
| |
German | de
| |
Greek | el
| |
Hebrew | he
| |
Hindi | hi
| |
Icelandic | is
| |
Indonesian | id
| |
Italian | it
| |
Korean | ko
| |
Latvian | lv
| |
Lithuanian | lt
| |
Macedonian | mk
| |
Malaysian | ms
| |
Mongolian | mn
| |
Norwegian | no
| |
Polish | pl
| |
Portuguese | Portuguese (when no language difference) | pt
|
Brazil | pt_br
| |
Portugal | pt_eu
| |
Romanian | ro
| |
Russian | ru
| |
Serbian | sr
| |
Slovak | sk
| |
Slovene | sl
| |
Spanish | Spanish (when no language difference) | es
|
Latin America | es_la
| |
Spain | es_eu
| |
Swedish | sv
| |
Tamil | ta
| |
Telugu | te
| |
Thai | th
| |
Turkish | tr
| |
Ukrainian | uk
| |
Urdu | ur
| |
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 }}
|