Module:Names
Purpose
Template used to document the names or titles of pieces of media and subjects found in other languages or regions, as well as the name's meaning or translation, by specifying the language's ISO 639-1 code. This template is to be placed in Nomenclature sections.
Usage
Parameters for using Template:Exp, Template:Exp App, and ref tags are labeled with E. Parameters for romanizations (for languages with a non-Latin script) are labeled with R. Parameters for name meanings are labeled with M. If a language parameter is left blank or omitted, it will be skipped in the table.
This template also supports regional dialects. For English and French, these should only be used if a name or title differs between regions, e.g. if a media only has one regional localization, or if a subject's name or title is identical between regions, use the neutral language parameter. However, Spanish and Portuguese should always use the regional versions.
This template also supports an arbitrary amount of names by putting numbers after the language code and, if applicable, after E, R, or M. These names will get their own rows. For the first row, the number 1 is optional; that is to say, both ja and ja1 work, for example. If both are specified, the unnumbered one takes priority.
{{Names
|en=English
|enM=
|enBr=British English
|enBrM=
|enAu=Australian English
|enAuM=
|ja=Japanese
|jaR=
|jaM=
|zhS=Simplified Chinese
|zhSR=
|zhSM=
|zhT=Traditional Chinese
|zhTR=
|zhTM=
|fr=French
|frM=
|frF=Metropolitan French
|frFM=
|frC=Canadian French
|frCM=
|de=German
|deM=
|it=Italian
|itM=
|ko=Korean
|koR=
|koM=
|pl=Polish
|plM=
|ptB=Brazilian Portuguese
|ptBM=
|ptP=European Portuguese
|ptPM=
|ru=Russian
|ruM=
|esS=Peninsular Spanish
|esSM=
|esL=Latin American Spanish
|esLM=
|tl=Tagalog
|tlM=
|tr=Turkish
|trM=
}}
Code
Minimal code
{{Names
|en=
|ja=
|jaR=
|jaM=
|zhS=
|zhSR=
|zhSM=
|zhT=
|zhTR=
|zhTM=
|fr=
|frM=
|de=
|deM=
|it=
|itM=
|ko=
|koR=
|koM=
|esS=
|esSM=
}}
All supported languages
{{Names
|en=
|enM=
|enBr=
|enBrM=
|enAu=
|enAuM=
|ja=
|jaR=
|jaM=
|zhS=
|zhSM=
|zhT=
|zhTM=
|fr=
|frM=
|frC=
|frCM=
|frF=
|frFM=
|de=
|deM=
|it=
|itM=
|ko=
|koR=
|koM=
|pl=
|plM=
|ptB=
|ptBM=
|ptP=
|ptPM=
|ru=
|ruR=
|ruM=
|esS=
|esSM=
|esL=
|esLM=
|tl=
|tlM=
|th=
|thR=
|thM=
|tr=
|trM=
}}
All supported languages with all fields
{{Names
|en=
|enE=
|enM=
|enBr=
|enBrE=
|enBrM=
|enAu=
|enAuE=
|enAuM=
|ja=
|jaE=
|jaR=
|jaM=
|zhS=
|zhSE=
|zhSR=
|zhSM=
|zhT=
|zhTE=
|zhTR=
|zhTM=
|fr=
|frE=
|frM=
|frC=
|frCE=
|frCM=
|frF=
|frFE=
|frFM=
|de=
|deE=
|deM=
|it=
|itE=
|itM=
|ko=
|koE=
|koR=
|koM=
|pl=
|plE=
|plM=
|ptB=
|ptBE=
|ptBM=
|ptP=
|ptPE=
|ptPM=
|ru=
|ruE=
|ruR=
|ruM=
|esS=
|esSE=
|esSM=
|esL=
|esLE=
|esLM=
|tl=
|tlE=
|tlM=
|th=
|thE=
|thR=
|thM=
|tr=
|trE=
|trM=
}}
All supported languages with all fields and two names for each
{{Names
|en=
|enE=
|enM=
|en2=
|enE2=
|enM2=
|enBr=
|enBrE=
|enBrM=
|enBr2=
|enBrE2=
|enBrM2=
|enAu=
|enAuE=
|enAuM=
|enAu2=
|enAuE2=
|enAuM2=
|ja=
|jaE=
|jaR=
|jaM=
|ja2=
|jaE2=
|jaR2=
|jaM2=
|zhS=
|zhSE=
|zhSR=
|zhSM=
|zhS2=
|zhSE2=
|zhSR2=
|zhSM2=
|zhT=
|zhTE=
|zhTR=
|zhTM=
|zhT2=
|zhTE2=
|zhTR2=
|zhTM2=
|fr=
|frE=
|frM=
|fr2=
|frE2=
|frM2=
|frC=
|frCE=
|frCM=
|frC2=
|frCE2=
|frCM2=
|frF=
|frFE=
|frFM=
|frF2=
|frFE2=
|frFM2=
|de=
|deE=
|deM=
|de2=
|deE2=
|deM2=
|it=
|itE=
|itM=
|it2=
|itE2=
|itM2=
|ko=
|koE=
|koR=
|koM=
|ko2=
|koE2=
|koR2=
|koM2=
|pl=
|plE=
|plM=
|pl2=
|plE2=
|plM2=
|ptB=
|ptBE=
|ptBM=
|ptB2=
|ptBE2=
|ptBM2=
|ptP=
|ptPE=
|ptPM=
|ptP2=
|ptPE2=
|ptPM2=
|ru=
|ruE=
|ruR=
|ruM=
|ru2=
|ruE2=
|ruR2=
|ruM2=
|esS=
|esSE=
|esSM=
|esS2=
|esSE2=
|esSM2=
|esL=
|esLE=
|esLM=
|esL2=
|esLE2=
|esLM2=
|tl=
|tlE=
|tlM=
|tl2=
|tlE2=
|tlM2=
|th=
|thE=
|thR=
|thM=
|th2=
|thE2=
|thR2=
|thM2=
|tr=
|trE=
|trM=
|tr2=
|trE2=
|trM2=
}}
Examples
Names in Japanese and other regions
{{Names
|en=Shin Megami Tensei: Nocturne
|enM=
|enBr=Shin Megami Tensei: Lucifer's Call
|enBrM=
|ja=真・女神転生III-NOCTURNE マニアクス
|jaR=Shin Megami Tensei Surī Nokutān Maniakusu
|jaM=Shin Megami Tensei III: Nocturne Maniax
}}
| Language | Name | Meaning |
|---|---|---|
| Shin Megami Tensei: Nocturne | ||
| Shin Megami Tensei: Lucifer's Call | ||
| 真・女神転生III-NOCTURNE マニアクス Shin Megami Tensei Surī Nokutān Maniakusu | Shin Megami Tensei III: Nocturne Maniax | |
Multiple names for the same language, with explanatory notes
{{Names
|en=Jack Frost
|en2=J. Frost
|enE2={{Exp App|DKLD}}
|ja=ジャクフロスト
|jaE={{Exp App|MT2}}
|jaR=Jaku furosuto
|jaM=Jack Frost
|ja2=ジャックフロスト
|jaR2=Jakku furosuto
|jaM2=Jack Frost
|ja3=ジャック・オ・フロスト
|jaE3={{Exp App|GMT}}
|jaR3=Jakku o furosuto
|jaM3=Jack-o'-Frost
}}
| Language | Name | Meaning |
|---|---|---|
| Jack Frost | ||
| J. Frost | ||
| ジャクフロスト Jaku furosuto |
Jack Frost | |
| ジャックフロスト Jakku furosuto | Jack Frost | |
| ジャック・オ・フロスト Jakku o furosuto |
Jack-o'-Frost | |
Visual editor template data
Template used to document the names or titles of pieces of media and subjects found in other languages or regions, as well as the name's meaning or translation.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| en | en | English | Line | suggested |
| enE | enE | no description | Content | optional |
| enM | enM | no description | Line | optional |
| en2 | en2 | no description | Line | optional |
| enE2 | enE2 | no description | Content | optional |
| enM2 | enM2 | no description | Line | optional |
| en3 | en3 | no description | Line | optional |
| enE3 | enE3 | no description | Content | optional |
| enM3 | enM3 | no description | Line | optional |
| en4 | en4 | no description | Line | optional |
| enE4 | enE4 | no description | Content | optional |
| enM4 | enM4 | no description | Line | optional |
| en5 | en5 | no description | Line | optional |
| enE5 | enE5 | no description | Content | optional |
| enM5 | enM5 | no description | Line | optional |
| enBr | enBr | British English | Line | optional |
| enBrE | enBrE | no description | Content | optional |
| enBrM | enBrM | no description | Line | optional |
| enBr2 | enBr2 | no description | Line | optional |
| enBrE2 | enBrE2 | no description | Content | optional |
| enBrM2 | enBrM2 | no description | Line | optional |
| enAu | enAu | Australian English | Line | optional |
| enAuE | enAuE | no description | Content | optional |
| enAuM | enAuM | no description | Line | optional |
| enAu2 | enAu2 | no description | Line | optional |
| enAuE2 | enAuE2 | no description | Content | optional |
| enAuM2 | enAuM2 | no description | Line | optional |
| ja | ja | Japanese | Line | suggested |
| jaE | jaE | no description | Content | optional |
| jaR | jaR | no description | Line | suggested |
| jaM | jaM | no description | Line | suggested |
| ja2 | ja2 | no description | Line | optional |
| jaE2 | jaE2 | no description | Content | optional |
| jaR2 | jaR2 | no description | Line | optional |
| jaM2 | jaM2 | no description | Line | optional |
| ja3 | ja3 | no description | Line | optional |
| jaE3 | jaE3 | no description | Content | optional |
| jaR3 | jaR3 | no description | Line | optional |
| jaM3 | jaM3 | no description | Line | optional |
| ja4 | ja4 | no description | Line | optional |
| jaE4 | jaE4 | no description | Content | optional |
| jaR4 | jaR4 | no description | Line | optional |
| jaM4 | jaM4 | no description | Line | optional |
| ja5 | ja5 | no description | Line | optional |
| jaE5 | jaE5 | no description | Content | optional |
| jaR5 | jaR5 | no description | Line | optional |
| jaM5 | jaM5 | no description | Line | optional |
| zhS | zhS | Simplified Chinese | Line | suggested |
| zhSE | zhSE | no description | Content | optional |
| zhSR | zhSR | no description | Line | suggested |
| zhSM | zhSM | no description | Line | suggested |
| zhS2 | zhS2 | no description | Line | optional |
| zhSE2 | zhSE2 | no description | Content | optional |
| zhSR2 | zhSR2 | no description | Line | optional |
| zhSM2 | zhSM2 | no description | Line | optional |
| zhS3 | zhS3 | no description | Line | optional |
| zhSE3 | zhSE3 | no description | Content | optional |
| zhSR3 | zhSR3 | no description | Line | optional |
| zhSM3 | zhSM3 | no description | Line | optional |
| zhS4 | zhS4 | no description | Line | optional |
| zhSE4 | zhSE4 | no description | Content | optional |
| zhSR4 | zhSR4 | no description | Line | optional |
| zhSM4 | zhSM4 | no description | Line | optional |
| zhS5 | zhS5 | no description | Line | optional |
| zhSE5 | zhSE5 | no description | Content | optional |
| zhSR5 | zhSR5 | no description | Line | optional |
| zhSM5 | zhSM5 | no description | Line | optional |
| zhT | zhT | Traditional Chinese | Line | suggested |
| zhTE | zhTE | no description | Content | optional |
| zhTR | zhTR | no description | Line | suggested |
| zhTM | zhTM | no description | Line | suggested |
| zhT2 | zhT2 | no description | Line | optional |
| zhTE2 | zhTE2 | no description | Content | optional |
| zhTR2 | zhTR2 | no description | Line | optional |
| zhTM2 | zhTM2 | no description | Line | optional |
| zhT3 | zhT3 | no description | Line | optional |
| zhTE3 | zhTE3 | no description | Content | optional |
| zhTR3 | zhTR3 | no description | Line | optional |
| zhTM3 | zhTM3 | no description | Line | optional |
| zhT4 | zhT4 | no description | Line | optional |
| zhTE4 | zhTE4 | no description | Content | optional |
| zhTR4 | zhTR4 | no description | Line | optional |
| zhTM4 | zhTM4 | no description | Line | optional |
| zhT5 | zhT5 | no description | Line | optional |
| zhTE5 | zhTE5 | no description | Content | optional |
| zhTR5 | zhTR5 | no description | Line | optional |
| zhTM5 | zhTM5 | no description | Line | optional |
| fr | fr | French | Line | suggested |
| frE | frE | no description | Content | optional |
| frM | frM | no description | Line | suggested |
| fr2 | fr2 | no description | Line | optional |
| frE2 | frE2 | no description | Content | optional |
| frM2 | frM2 | no description | Line | optional |
| fr3 | fr3 | no description | Line | optional |
| frE3 | frE3 | no description | Content | optional |
| frM3 | frM3 | no description | Line | optional |
| fr4 | fr4 | no description | Line | optional |
| frE4 | frE4 | no description | Content | optional |
| frM4 | frM4 | no description | Line | optional |
| fr5 | fr5 | no description | Line | optional |
| frE5 | frE5 | no description | Content | optional |
| frM5 | frM5 | no description | Line | optional |
| frF | frF | Metropolitan French | Line | optional |
| frFE | frFE | no description | Content | optional |
| frFM | frFM | no description | Line | optional |
| frF2 | frF2 | no description | Line | optional |
| frFE2 | frFE2 | no description | Content | optional |
| frFM2 | frFM2 | no description | Line | optional |
| frF3 | frF3 | no description | Line | optional |
| frFE3 | frFE3 | no description | Content | optional |
| frFM3 | frFM3 | no description | Line | optional |
| frF4 | frF4 | no description | Line | optional |
| frFE4 | frFE4 | no description | Content | optional |
| frFM4 | frFM4 | no description | Line | optional |
| frF5 | frF5 | no description | Line | optional |
| frFE5 | frFE5 | no description | Content | optional |
| frFM5 | frFM5 | no description | Line | optional |
| frC | frC | Canadian French | Line | optional |
| frCE | frCE | no description | Content | optional |
| frCM | frCM | no description | Line | optional |
| frC2 | frC2 | no description | Line | optional |
| frCE2 | frCE2 | no description | Content | optional |
| frCM2 | frCM2 | no description | Line | optional |
| frC3 | frC3 | no description | Line | optional |
| frCE3 | frCE3 | no description | Content | optional |
| frCM3 | frCM3 | no description | Line | optional |
| frC4 | frC4 | no description | Line | optional |
| frCE4 | frCE4 | no description | Content | optional |
| frCM4 | frCM4 | no description | Line | optional |
| frC5 | frC5 | no description | Line | optional |
| frCE5 | frCE5 | no description | Content | optional |
| frCM5 | frCM5 | no description | Line | optional |
| de | de | German | Line | suggested |
| deE | deE | no description | Content | optional |
| deM | deM | no description | Line | suggested |
| de2 | de2 | no description | Line | optional |
| deE2 | deE2 | no description | Content | optional |
| deM2 | deM2 | no description | Line | optional |
| de3 | de3 | no description | Line | optional |
| deE3 | deE3 | no description | Content | optional |
| deM3 | deM3 | no description | Line | optional |
| de4 | de4 | no description | Line | optional |
| deE4 | deE4 | no description | Content | optional |
| deM4 | deM4 | no description | Line | optional |
| de5 | de5 | no description | Line | optional |
| deE5 | deE5 | no description | Content | optional |
| deM5 | deM5 | no description | Line | optional |
| it | it | Italian | Line | suggested |
| itE | itE | no description | Content | optional |
| itM | itM | no description | Line | suggested |
| it2 | it2 | no description | Line | optional |
| itE2 | itE2 | no description | Content | optional |
| itM2 | itM2 | no description | Line | optional |
| it3 | it3 | no description | Line | optional |
| itE3 | itE3 | no description | Content | optional |
| itM3 | itM3 | no description | Line | optional |
| it4 | it4 | no description | Line | optional |
| itE4 | itE4 | no description | Content | optional |
| itM4 | itM4 | no description | Line | optional |
| it5 | it5 | no description | Line | optional |
| itE5 | itE5 | no description | Content | optional |
| itM5 | itM5 | no description | Line | optional |
| ko | ko | Korean | Line | suggested |
| koE | koE | no description | Content | optional |
| koR | koR | no description | Line | suggested |
| koM | koM | no description | Line | suggested |
| ko2 | ko2 | no description | Line | optional |
| koE2 | koE2 | no description | Content | optional |
| koR2 | koR2 | no description | Line | optional |
| koM2 | koM2 | no description | Line | optional |
| ko3 | ko3 | no description | Line | optional |
| koE3 | koE3 | no description | Content | optional |
| koR3 | koR3 | no description | Line | optional |
| koM3 | koM3 | no description | Line | optional |
| ko4 | ko4 | no description | Line | optional |
| koE4 | koE4 | no description | Content | optional |
| koR4 | koR4 | no description | Line | optional |
| koM4 | koM4 | no description | Line | optional |
| ko5 | ko5 | no description | Line | optional |
| koE5 | koE5 | no description | Content | optional |
| koR5 | koR5 | no description | Line | optional |
| koM5 | koM5 | no description | Line | optional |
| pl | pl | Polish | Line | suggested |
| plE | plE | no description | Content | optional |
| plM | plM | no description | Line | suggested |
| pl2 | pl2 | no description | Line | optional |
| plE2 | plE2 | no description | Content | optional |
| plM2 | plM2 | no description | Line | optional |
| pl3 | pl3 | no description | Line | optional |
| plE3 | plE3 | no description | Content | optional |
| plM3 | plM3 | no description | Line | optional |
| pl4 | pl4 | no description | Line | optional |
| plE4 | plE4 | no description | Content | optional |
| plM4 | plM4 | no description | Line | optional |
| pl5 | pl5 | no description | Line | optional |
| plE5 | plE5 | no description | Content | optional |
| plM5 | plM5 | no description | Line | optional |
| pt | pt | Portuguese | Line | deprecated |
| ptE | ptE | no description | Content | deprecated |
| ptM | ptM | no description | Line | deprecated |
| pt2 | pt2 | no description | Line | deprecated |
| ptE2 | ptE2 | no description | Content | deprecated |
| ptM2 | ptM2 | no description | Line | deprecated |
| pt3 | pt3 | no description | Line | deprecated |
| ptE3 | ptE3 | no description | Content | deprecated |
| ptM3 | ptM3 | no description | Line | deprecated |
| pt4 | pt4 | no description | Line | deprecated |
| ptE4 | ptE4 | no description | Content | deprecated |
| ptM4 | ptM4 | no description | Line | deprecated |
| pt5 | pt5 | no description | Line | deprecated |
| ptE5 | ptE5 | no description | Content | deprecated |
| ptM5 | ptM5 | no description | Line | deprecated |
| ptB | ptB | Brazilian Portuguese | Line | suggested |
| ptBE | ptBE | no description | Content | optional |
| ptBM | ptBM | no description | Line | suggested |
| ptB2 | ptB2 | no description | Line | optional |
| ptBE2 | ptBE2 | no description | Content | optional |
| ptBM2 | ptBM2 | no description | Line | optional |
| ptB3 | ptB3 | no description | Line | optional |
| ptBE3 | ptBE3 | no description | Content | optional |
| ptBM3 | ptBM3 | no description | Line | optional |
| ptB4 | ptB4 | no description | Line | optional |
| ptBE4 | ptBE4 | no description | Content | optional |
| ptBM4 | ptBM4 | no description | Line | optional |
| ptB5 | ptB5 | no description | Line | optional |
| ptBE5 | ptBE5 | no description | Content | optional |
| ptBM5 | ptBM5 | no description | Line | optional |
| ptP | ptP | European Portuguese | Line | optional |
| ptPE | ptPE | no description | Content | optional |
| ptPM | ptPM | no description | Line | optional |
| ptP2 | ptP2 | no description | Line | optional |
| ptPE2 | ptPE2 | no description | Content | optional |
| ptPM2 | ptPM2 | no description | Line | optional |
| ptP3 | ptP3 | no description | Line | optional |
| ptPE3 | ptPE3 | no description | Content | optional |
| ptPM3 | ptPM3 | no description | Line | optional |
| ptP4 | ptP4 | no description | Line | optional |
| ptPE4 | ptPE4 | no description | Content | optional |
| ptPM4 | ptPM4 | no description | Line | optional |
| ptP5 | ptP5 | no description | Line | optional |
| ptPE5 | ptPE5 | no description | Content | optional |
| ptPM5 | ptPM5 | no description | Line | optional |
| ru | ru | Russian | Line | suggested |
| ruE | ruE | no description | Content | optional |
| ruR | ruR | no description | Line | suggested |
| ruM | ruM | no description | Line | suggested |
| ru2 | ru2 | no description | Line | optional |
| ruE2 | ruE2 | no description | Content | optional |
| ruR2 | ruR2 | no description | Line | optional |
| ruM2 | ruM2 | no description | Line | optional |
| ru3 | ru3 | no description | Line | optional |
| ruE3 | ruE3 | no description | Content | optional |
| ruR3 | ruR3 | no description | Line | optional |
| ruM3 | ruM3 | no description | Line | optional |
| ru4 | ru4 | no description | Line | optional |
| ruE4 | ruE4 | no description | Content | optional |
| ruR4 | ruR4 | no description | Line | optional |
| ruM4 | ruM4 | no description | Line | optional |
| ru5 | ru5 | no description | Line | optional |
| ruE5 | ruE5 | no description | Content | optional |
| ruR5 | ruR5 | no description | Line | optional |
| ruM5 | ruM5 | no description | Line | optional |
| es | es | Spanish | Line | deprecated |
| esE | esE | no description | Content | deprecated |
| esM | esM | no description | Line | deprecated |
| es2 | es2 | no description | Line | deprecated |
| esE2 | esE2 | no description | Content | deprecated |
| esM2 | esM2 | no description | Line | deprecated |
| es3 | es3 | no description | Line | deprecated |
| esE3 | esE3 | no description | Content | deprecated |
| esM3 | esM3 | no description | Line | deprecated |
| es4 | es4 | no description | Line | deprecated |
| esE4 | esE4 | no description | Content | deprecated |
| esM4 | esM4 | no description | Line | deprecated |
| es5 | es5 | no description | Line | deprecated |
| esE5 | esE5 | no description | Content | deprecated |
| esM5 | esM5 | no description | Line | deprecated |
| esS | esS | Peninsular Spanish | Line | suggested |
| esSE | esSE | no description | Content | optional |
| esSM | esSM | no description | Line | suggested |
| esS2 | esS2 | no description | Line | optional |
| esSE2 | esSE2 | no description | Content | optional |
| esSM2 | esSM2 | no description | Line | optional |
| esS3 | esS3 | no description | Line | optional |
| esSE3 | esSE3 | no description | Content | optional |
| esSM3 | esSM3 | no description | Line | optional |
| esS4 | esS4 | no description | Line | optional |
| esSE4 | esSE4 | no description | Content | optional |
| esSM4 | esSM4 | no description | Line | optional |
| esS5 | esS5 | no description | Line | optional |
| esSE5 | esSE5 | no description | Content | optional |
| esSM5 | esSM5 | no description | Line | optional |
| esL | esL | Latin American Spanish | Line | suggested |
| esLE | esLE | no description | Content | optional |
| esLM | esLM | no description | Line | suggested |
| esL2 | esL2 | no description | Line | optional |
| esLE2 | esLE2 | no description | Content | optional |
| esLM2 | esLM2 | no description | Line | optional |
| esL3 | esL3 | no description | Line | optional |
| esLE3 | esLE3 | no description | Content | optional |
| esLM3 | esLM3 | no description | Line | optional |
| esL4 | esL4 | no description | Line | optional |
| esLE4 | esLE4 | no description | Content | optional |
| esLM4 | esLM4 | no description | Line | optional |
| esL5 | esL5 | no description | Line | optional |
| esLE5 | esLE5 | no description | Content | optional |
| esLM5 | esLM5 | no description | Line | optional |
| tl | tl | Tagalog | Line | optional |
| tlE | tlE | no description | Content | optional |
| tlM | tlM | no description | Line | optional |
| tl2 | tl2 | no description | Line | optional |
| tlE2 | tlE2 | no description | Content | optional |
| tlM2 | tlM2 | no description | Line | optional |
| tl3 | tl3 | no description | Line | optional |
| tlE3 | tlE3 | no description | Content | optional |
| tlM3 | tlM3 | no description | Line | optional |
| tl4 | tl4 | no description | Line | optional |
| tlE4 | tlE4 | no description | Content | optional |
| tlM4 | tlM4 | no description | Line | optional |
| tl5 | tl5 | no description | Line | optional |
| tlE5 | tlE5 | no description | Content | optional |
| tlM5 | tlM5 | no description | Line | optional |
| th | th | Thai | Line | suggested |
| thE | thE | no description | Content | optional |
| thR | thR | no description | Line | suggested |
| thM | thM | no description | Line | suggested |
| th2 | th2 | no description | Line | optional |
| thE2 | thE2 | no description | Content | optional |
| thR2 | thR2 | no description | Line | optional |
| thM2 | thM2 | no description | Line | optional |
| th3 | th3 | no description | Line | optional |
| thE3 | thE3 | no description | Content | optional |
| thR3 | thR3 | no description | Line | optional |
| thM3 | thM3 | no description | Line | optional |
| th4 | th4 | no description | Line | optional |
| thE4 | thE4 | no description | Content | optional |
| thR4 | thR4 | no description | Line | optional |
| thM4 | thM4 | no description | Line | optional |
| th5 | th5 | no description | Line | optional |
| thE5 | thE5 | no description | Content | optional |
| thR5 | thR5 | no description | Line | optional |
| thM5 | thM5 | no description | Line | optional |
| tr | tr | Turkish | Line | suggested |
| trE | trE | no description | Content | optional |
| trM | trM | no description | Line | suggested |
| tr2 | tr2 | no description | Line | optional |
| trE2 | trE2 | no description | Content | optional |
| trM2 | trM2 | no description | Line | optional |
| tr3 | tr3 | no description | Line | optional |
| trE3 | trE3 | no description | Content | optional |
| trM3 | trM3 | no description | Line | optional |
| tr4 | tr4 | no description | Line | optional |
| trE4 | trE4 | no description | Content | optional |
| trM4 | trM4 | no description | Line | optional |
| tr5 | tr5 | no description | Line | optional |
| trE5 | trE5 | no description | Content | optional |
| trM5 | trM5 | no description | Line | optional |
local getArgs = require('Module:Arguments').getArgs
local p = {}
function p.main(frame)
local args = getArgs(frame)
local languageList = mw.loadData("Module:Names/LanguageTable").languageList
local languages = mw.loadData("Module:Names/LanguageTable").languages
local output = ""
local function makeRow(lang)
local nameList = {}
local romanList = {}
local noteList = {}
local meaningList = {}
local x = 1
if args[lang] then --Case for if there is no number.
table.insert(nameList,x,args[lang])
if args [lang .. "R"] then
table.insert(romanList,x,args[lang .. "R"])
end
if args [lang .. "E"] then
table.insert(noteList,x,args[lang .. "E"])
end
if args [lang .. "M"] then
table.insert(meaningList,x,args[lang .. "M"])
end
x = x + 1
end
while args[lang .. x] do
table.insert(nameList,x,args[lang .. x])
if args [lang .. "R" .. x] then
table.insert(romanList,x,args[lang .. "R" .. x])
end
if args [lang .. "E" .. x] then
table.insert(noteList,x,args[lang .. "E" .. x])
end
if args [lang .. "M" .. x] then
table.insert(meaningList,x,args[lang .. "M" .. x])
end
x = x + 1
end
if #nameList > 0 then
local flagIterator = 0
local flagIcon = ""
while languages[lang]["flag"][flagIterator + 1] ~= nil do
flagIcon = flagIcon .. frame:expandTemplate{ title = "Flag", args = { languages[lang]["flag"][flagIterator + 1] } }
flagIterator = flagIterator + 1
if(languages[lang]["flag"][flagIterator + 1] ~= nil) then
flagIcon = flagIcon .. '<span style="font-size:smaller"> </span>'
end
end
output = output .. '\n| rowspan="' .. #nameList .. '" | ' .. flagIcon .. " " .. languages[lang]["label"]
for i = 1,#nameList do
local category = ""
if string.find(nameList[i],"<br") or string.find(nameList[i]," ''") or string.find(nameList[i],"xp|") then
category = category .. "[[Category:Pages using old Names format]]"
end
if languages[lang]["isDeprecated"] then
category = category .. "[[Category:Pages using deprecated language codes]]"
end
local romanization = ""
if romanList[i] then
romanization = string.format(" <span lang=\"%s\">''%s''</span>", languages[lang]["ietfRoman"], romanList[i])
end
local note = ""
if noteList[i] then
note = noteList[i]
end
local meaning = ""
local colspan = 1
if meaningList[i] then
meaning = " || " .. meaningList[i]
else
colspan = 2
end
output = output .. '\n| colspan="' .. colspan .. '" | <span lang="'.. languages[lang]["ietf"] .. '">' .. nameList[i] .. "</span>" .. note .. romanization .. meaning .. category .. "\n|-"
end
end
end
for i, lang in ipairs(languageList) do
makeRow(lang)
end
return output
end
return p