Template:Langlist: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
mNo edit summary |
mNo edit summary |
||
(9 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{|</noinclude> | <noinclude>{| | ||
|- | </noinclude>|- style="background:#{{#if:{{{color|}}}|{{{{{color|}}} color}}|FFF}}; color:#{{#ifeq:{{{color|}}}|Dark|FFF|000}}" | ||
{{#switch:{{{1|}}}| | {{#switch:{{{1|}}}|item|move|ability|pokemon|category={{!}} {{#ifeq: {{{1|}}}|item|{{bag|{{{bagsprite|{{{3|Unknown}}}}}}}}|{{{2|000}}}}}}} | ||
{{#ifeq:{{{1|}}}| | {{#switch:{{{1|}}}|pokemon|category={{!}} {{MSP|{{{2|000}}}|{{{3|Missingno.}}}}}}} {{#ifeq:{{{1|}}}|category|{{!}}{{!}} {{pcolor|{{{3|Missingno.}}}|{{#ifeq:{{{color|}}}|Dark|FFF|000}}}}}} | ||
| {{#switch:{{{1|}}}|pokemon|ability|move={{{{#switch:{{{1|move}}}|pokemon=pcolor|ability=acolor|move=mcolor}}|{{{3|English}}}|{{#ifeq:{{{color|}}}|Dark|FFF|000}}}}|item|character|location={{color2|{{#ifeq:{{{color|}}}|Dark|FFF|000}}|{{{link|{{{3|English}}}}}}|{{{3|English}}}}}|{{{3|English}}}}}{{#ifeq: {{{engnote|}}}|||{{tt|*|{{{engnote}}}}}}} | |||
| lang="ja" | {{{4|日本語}}} | |||
| {{ | | {{{5|Nihongo}}} | ||
| {{ | | lang="fr" | {{{6|Français}}} | ||
| lang="de" | {{{7|Deutsch}}} | |||
| | | lang="it" | {{{8|Italiano}}} | ||
| | | lang="es" | {{{9|Español}}} | ||
{{#if:{{{10|}}}|{{!}} {{ | {{#if:{{{10|}}}|{{!}} lang="ko" {{!}} {{{10|한국어}}} | ||
{{!}} {{ | {{!}} {{{11|Hangugeo}}} | ||
|} | {{#if:{{{12|}}}|{{!}} lang="zh" {{!}} {{{12|中文}}} | ||
{{!}} {{{13|Zhōngwén / Jūngmàhn}}} | |||
[[Category:Table templates]] | {{#if:{{{14|}}}|{{!}} lang="pt-br" {{!}} {{{14|Português}}} | ||
|{{!}}-}}}}}}<noinclude> | |||
|}{{documentation}}[[Category:Table templates]]</noinclude> | |||
Latest revision as of 17:56, 31 March 2022
English | 日本語 | Nihongo | Français | Deutsch | Italiano | Español |
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
The templates {{Langlist/h}}
and {{Langlist}}
are used together to create a table that displays the names of multiple entities in different languages. To display the translated names of just one entity, use {{Langtable}}
.
How to use
{{Langlist/h}}
is the header of the table, and should be used first and only once. {{Langlist}}
makes up the rows of the table, and can be used multiple times. The table must be ended with a |}
, or it will break.
{{Langlist/h}}
and {{Langlist}}
primarily use numbered parameters. These should be entered in order, and named parameters should be entered last.
{{langlist/h|1|2|3}} {{langlist|1|2|3|4|5|6|7|8|9|10|11|12|13|14|bagsprite=|engnote=|color=}} {{langlist|1|2|3|4|5|6|7|8|9|10|11|12|13|14|bagsprite=|engnote=|color=}} {{langlist|1|2|3|4|5|6|7|8|9|10|11|12|13|14|bagsprite=|engnote=|color=}} |}
Parameters
All parameters are case sensitive.
Parameter | Allowed values | Notes |
---|---|---|
{{Langlist/h}}
| ||
1
|
item • move • ability • pokemon • category
|
Optional. The type of information being translated. For other types of information, this paramater can be left blank. |
2
|
List of colors » | Sets the background and border colors of the table. Don't include color , color light or color dark . Defaults to unknown .
|
3
|
NoKo • NoZh • PtBr
|
Optional. Adds or removes columns from the table. NoKo removes the Korean and the Chinese columns. NoZh removes just the Chinese columns. PtBr adds a Brazilian Portuguese column.
|
{{Langlist}}
| ||
1
|
item • move • ability • pokemon • category
|
Optional. The type of information being translated. For other types of information, this paramater can be left blank. |
2
|
Number | Optional. If move or ability is selected for 1 , use the index number. If pokemon is selected for 1 , the National Pokédex number. For other types of information, this paramater can be left blank.
|
3
|
String | The name in English. |
4
|
String | The name in Japanese kana. |
5
|
String | The name in Japanese rōmaji. This is not a translation. |
6
|
String | The name in French. |
7
|
String | The name in German. |
8
|
String | The name in Italian. |
9
|
String | The name in Spanish. |
10
|
String | Optional. The name in Korean hangul. |
11
|
String | Optional. The name in romanized Korean. This is not a translation. |
12
|
String | Optional. The name in Chinese hànzì. |
13
|
String | Optional. The name in romanized Chinese. This is not a translation. |
14
|
String | Optional. The name in Brazilian Portuguese. |
bagsprite
|
String | Optional. If 1 is set to item , the bag sprite image can be changed using this paramater, by entering File:Bag <<THIS TEXT>> Sprite.png from the file name.
|
engnote
|
String | Optional. Adds a tooltip to the English name to allow for name change details. |
color
|
List of colors » | Optional. Allows for a background color to be applied to the table row. Don't include color , color light or color dark .
|
|}
|
Examples
{{langlist/h|item|Medicine}} {{langlist|item||Potion|キズぐすり|Kizu Gusuri|Potion|Trank|Pozione|Poción|상처약|Sangcheo Yak|傷藥 / 伤药|Shāngyào / Sēungyeuhk}} {{langlist|item||Antidote|どくけし|Dokukeshi|Antidote|Gegengift|Antidoto|Antídoto|해독제|Haedokje|解毒藥 / 解毒药|Jiědúyào / Gáaiduhkyeuhk}} {{langlist|item||Antidote|どくけし|Dokukeshi|Antidote|Gegengift|Antidoto|Antídoto|해독제|Haedokje|解毒藥 / 解毒药|Jiědúyào / Gáaiduhkyeuhk|bagsprite=Antidote SV}} |}
Bag | English | Kana | Rōmaji | French | German | Italian | Spanish | Hangul | Romanized | Hànzì | Romanized |
---|---|---|---|---|---|---|---|---|---|---|---|
Potion | キズぐすり | Kizu Gusuri | Potion | Trank | Pozione | Poción | 상처약 | Sangcheo Yak | 傷藥 / 伤药 | Shāngyào / Sēungyeuhk | |
Antidote | どくけし | Dokukeshi | Antidote | Gegengift | Antidoto | Antídoto | 해독제 | Haedokje | 解毒藥 / 解毒药 | Jiědúyào / Gáaiduhkyeuhk | |
Antidote | どくけし | Dokukeshi | Antidote | Gegengift | Antidoto | Antídoto | 해독제 | Haedokje | 解毒藥 / 解毒药 | Jiědúyào / Gáaiduhkyeuhk |
{{Langlist/h|move|violet|NoKo}} {{Langlist|move|1|Pay Day|ネコにこばん|Neko ni Koban|Jackpot|Zahltag|Giornopaga|Día de Pago|color=Normal}} {{Langlist|move|2|Fire Punch|ほのおのパンチ|Honō no Panchi|Poing Feu|Feuerschlag|Fuocopugno|Puño Fuego|color=Fire}} {{Langlist|move|3|Ice Punch|れいとうパンチ|Reitō Panchi|Poing Glace|Eishieb|Gelopugno|Puño Hielo|color=Ice}} {{Langlist|move|4|Thunder Punch|かみなりパンチ|Kaminari Panchi|Poing Éclair|Donnerschlag|Tuonopugno|Puño Trueno|color=Electric}} {{Langlist|move|5|Scratch|ひっかく|Hikkaku|Griffe|Kratzer|Graffio|Arañazo|color=Normal}} |}
Index | English | Kana | Rōmaji | French | German | Italian | Spanish |
---|---|---|---|---|---|---|---|
1 | Pay Day | ネコにこばん | Neko ni Koban | Jackpot | Zahltag | Giornopaga | Día de Pago |
2 | Fire Punch | ほのおのパンチ | Honō no Panchi | Poing Feu | Feuerschlag | Fuocopugno | Puño Fuego |
3 | Ice Punch | れいとうパンチ | Reitō Panchi | Poing Glace | Eishieb | Gelopugno | Puño Hielo |
4 | Thunder Punch | かみなりパンチ | Kaminari Panchi | Poing Éclair | Donnerschlag | Tuonopugno | Puño Trueno |
5 | Scratch | ひっかく | Hikkaku | Griffe | Kratzer | Graffio | Arañazo |
{{langlist/h|3=PtBr}} {{langlist|||Adamant|いじっぱり|Ijippari|Rigide|Hart|Decisa|Firme|고집|Gojip|固執 / 固执|Gùzhí / Gujāp|Firme|engnote=An example note}} {{langlist|||Bashful|てれや|Tereya|Pudique|Zaghaft|Ritrosa|Tímida|수줍음|Sujup-eum|害羞|Hàixiū / Hoihsāu|Tímida}} {{langlist|||Bold|ずぶとい|Zubutoi|Assuré|Kühn|Sicura|Osada|대담|Daedam|大膽 / 大胆|Dàdǎn / Daaihdáam|Audaciosa}} |}