Jump to content

Template:Infobox name module: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Undid revision 780820246 by Betty Logan (talk) sr
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
 
(15 intermediate revisions by 7 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 -->
Line 6: Line 6:
| label1 = {{#if: {{{language|{{{2|}}}}}} <!-- If there is more than one parameter -->
| label1 = {{#if: {{{language|{{{2|}}}}}} <!-- If there is more than one parameter -->
| {{#if: {{{nolink|}}} <!-- If the language is not to be wikilinked -->
| {{#if: {{{nolink|}}} <!-- If the language is not to be wikilinked -->
| {{#ifexist: Template:ISO 639 name {{{language|{{{1|}}}}}} | <!-- Check if language has been entered as an iso code -->
| {{#if:{{#invoke:lang|is_ietf_tag|{{{language|{{{1|}}}}}}}} | <!-- Check if language has been entered as an iso code -->
{{Language|{{{language|{{{1|}}}}}}}} | <!-- Set language field accordingly -->
{{#invoke:lang|name_from_tag|{{{language|{{{1|}}}}}}}} | <!-- Set language field accordingly -->
{{{language|{{{1|}}}}}}
{{{language|{{{1|}}}}}}
}}
}}
| {{#ifexist: Template:ISO 639 name {{{language|{{{1|}}}}}} | <!-- If the language is to be wikilinked -->
| {{#if:{{#invoke:lang|is_ietf_tag|{{{language|{{{1|}}}}}}}} | <!-- If the language is to be wikilinked -->
[[{{Language|{{{language|{{{1|}}}}}}}} language|{{Language|{{{language|{{{1|}}}}}}}}]] |
{{#invoke:lang|name_from_tag|{{{language|{{{1|}}}}}}|link=yes}} |
[[{{{language|{{{1|}}}}}} language|{{{language|{{{1|}}}}}}]]
[[{{{language|{{{1|}}}}}} language|{{{language|{{{1|}}}}}}]]
}}
}}
Line 17: Line 17:
| Original title <!-- Default field name if no language is entered -->
| 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 -->
| 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 = {{#if:{{{jyutping|}}}|{{jpingauto|{{{jyutping}}}}}}}
| label7 = [[Pe̍h-ōe-jī|Hokkien]]
| data7 = {{{poj|}}}
| label8 = {{{lbl8|}}}{{{sep|}}}
| data8 = {{{data8|}}}

| label9 = [[Japanese language|Japanese]]
| 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|}}}''}}


}}<noinclude>
}}<noinclude>
{{Being merged|2017_April_7|Template:Infobox_name_module|merge=Template:Infobox Chinese}}
{{documentation}}
{{documentation}}



Latest revision as of 17:30, 12 February 2023