Jump to content

Template:Infobox name module: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
mNo edit summary
Completed merger. Removed support for East Asian languages with multiple scripts as discussed at WP:TFDH Special:PermanentLink/1138169755#Meta. Doc page updated with replacement templates
 
(34 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{Infobox
{{ infobox
| child = yes
| child = yes
| decat = yes <!-- remove from template:infobox tracking categories -->
| decat = yes <!-- remove from template:infobox tracking categories -->
| title =
| title =


| label1 = {{#if: {{{language|{{{2|}}}}}} <!-- If there is more than one parameter -->
| label1 = Original title
| data1 = {{#if: {{{original|}}}|''{{{original|}}}''}}
| {{#if: {{{nolink|}}} <!-- If the language is not to be wikilinked -->
| {{#if:{{#invoke:lang|is_ietf_tag|{{{language|{{{1|}}}}}}}} | <!-- Check if language has been entered as an iso code -->
{{#invoke:lang|name_from_tag|{{{language|{{{1|}}}}}}}} | <!-- Set language field accordingly -->
{{{language|{{{1|}}}}}}
}}
| {{#if:{{#invoke:lang|is_ietf_tag|{{{language|{{{1|}}}}}}}} | <!-- If the language is to be wikilinked -->
{{#invoke:lang|name_from_tag|{{{language|{{{1|}}}}}}|link=yes}} |
[[{{{language|{{{1|}}}}}} language|{{{language|{{{1|}}}}}}]]
}}
}}
| Original title <!-- Default field name if no language is entered -->
}}
| data1 = {{#if: {{{title|{{{2|{{{original|{{{1|}}}}}}}}}}}} | ''{{{title|{{{2|{{{original|{{{1|}}}}}}}}}}}}'' }} <!-- Order of parameter preference depending on data entry -->


| label2 = [[Traditional Chinese characters|Traditional]]
| label2 = Literally
| data2 = {{#if:{{{traditional|{{{fanti|}}}}}}|<big>{{{traditional|{{{fanti|}}}}}}</big>}}
| data2 = {{#if: {{{translation|}}}|''{{{translation|}}}''}}
| label3 = [[Simplified Chinese characters|Simplified]]
| data3 = {{#if:{{{simplified|{{{jianti|}}}}}}|<big>{{{simplified|{{{jianti|}}}}}}</big>}}
| label4 = [[Chinese characters|Chinese]]
| data4 = {{#if:{{{chinese|{{{Chinese|}}}}}}|<big>{{{chinese|{{{Chinese|}}}}}}</big>}}
| label5 = [[Pinyin|Mandarin]]
| data5 = {{{pinyin|}}}
| label6 = [[Jyutping|Cantonese]]
| data6 = {{{jyutping|}}}
| label7 = [[Pe̍h-ōe-jī|Hokkien]]
| data7 = {{{poj|}}}
| label8 = {{{lbl8|}}}{{{sep|}}}
| data8 = {{{data8|}}}


}}<noinclude>
| label9 = [[Japanese language|Japanese]]
{{documentation}}
| data9 = {{#if: {{{kanji|}}}|<span class="t_nihongo_kanji" lang="ja">{{{kanji|}}}</span>}}{{#if: {{{kana|}}}|<span class="t_nihongo_kanji" lang="ja">{{{kana|}}}</span>}}
| label10 = [[Hepburn romanization|Hepburn]]
| data10 = {{#if: {{{romaji|}}}|''{{{romaji|}}}''}}

| label11 = {{#switch: {{lc:{{{context|}}}}}|n|nk|north|dprk=[[Hangul|Chos&#335;n'g&#365;l]]|#default=[[Hangul]]}}
| data11 = {{#if: {{{hangul|}}}|{{lang|ko-Hang|{{{hangul}}} }} }}
| label12 = {{#switch: {{lc:{{{context|}}}}}|n|nk|north|dprk=[[Hanja|Hancha]]|#default=[[Hanja]]}}
| data12 = {{#if: {{{hanja|}}}|{{#ifeq: {{{hanja|}}}|!|<noinclude>!</noinclude>|{{lang|ko-Hani|{{{hanja}}} }} }} }}
| label13 = {{#switch: {{lc:{{{context|}}}}}|n|nk|north|dprk=[[McCune–Reischauer]]|#default=[[Revised Romanization of Korean|Revised Romanization]]}}
| data13 = {{#if: {{#switch: {{lc:{{{context|}}}}}|n|nk|north|dprk={{{mr|}}}|#default={{{rr|}}} }}|''{{transl|ko|{{#switch: {{lc:{{{context|}}}}}|n|nk|north|dprk={{{mr}}}|#default={{{rr}}} }} }}''}}
| label14 = {{#switch: {{lc:{{{context|}}}}}|n|nk|north|dprk=[[Revised Romanization of Korean|Revised Romanization]]|#default=[[McCune–Reischauer]]}}
| data14 = {{#if: {{#switch: {{lc:{{{context|}}}}}|n|nk|north|dprk={{{rr|}}}|#default={{{mr|}}} }}|''{{transl|ko|{{#switch: {{lc:{{{context|}}}}}|n|nk|north|dprk={{{rr}}}|#default={{{mr}}} }} }}''}}

| label15 = [[Vietnamese language|Vietnamese]]
| data15 = {{#if:{{{chuquocngu|}}}|{{lang|vi|''{{{chuquocngu|}}}''}}}}
| label16 = [[Hán-Nôm]]
| data16 = {{#if:{{{han-nom|}}}|{{vi-nom|{{{han-nom|}}}}}}}

| label17 = Literally
| data17 = {{#if: {{{translation|}}}|''{{{translation|}}}''}}

| label18 = {{#if: {{{nolink|}}}
| {{#ifexist: Template:ISO 639 name {{{language|{{{1|}}}}}} |
{{Language|{{{language|{{{1|}}}}}}}} |
{{{language|{{{1|}}}}}}
}}
| {{#ifexist: Template:ISO 639 name {{{language|{{{1|}}}}}} |
[[{{Language|{{{language|{{{1|}}}}}}}} language|{{Language|{{{language|{{{1|}}}}}}}}]] |
[[{{{language|{{{1|}}}}}} language|{{{language|{{{1|}}}}}}]]
}}
}}
| data18 = {{italics|{{{title|{{{2|}}}}}}}}
}}<noinclude>{{documentation}}


<!-- Add cats and interwikis to the /doc subpage -->
<!-- Add cats and interwikis to the /doc subpage -->

Latest revision as of 17:30, 12 February 2023