Jump to content

Template:Infobox name module: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No 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
 
(41 intermediate revisions by 11 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|}}}


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

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

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

| label16 = Literally
| data16 = {{#if: {{{translation|}}}|''{{{translation|}}}''}}
}}<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