Template:Infobox language: Difference between revisions

From Sapphire Wiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 194: Line 194:
   }}}}}
   }}}}}
| header18 = Language codes
| header18 = Language codes
| label19 = ISO 639-1
| label19 = [[ISO 639-1]]
| data19 = {{#if:{{{iso1|}}}|<tt>{{{iso1}}}</tt>}}
| data19 = {{#if:{{{iso1|}}}|<tt>{{{iso1}}}</tt>}}
| label20 = ISO 639-2
| label20 = [[ISO 639-2]]
| data20 = {{#if:{{{iso2|}}}{{{iso2b|}}}{{{iso2t|}}}
| data20 = {{#if:{{{iso2|}}}{{{iso2b|}}}{{{iso2t|}}}
  |<tt>{{#if:{{{iso2b|}}}{{{iso2t|}}}
  |<tt>{{#if:{{{iso2b|}}}{{{iso2t|}}}
Line 209: Line 209:
     |<br /><tt>[[ISO639-3:{{{iso2t|{{{iso2|–}}}}}}|{{{iso2t}}}]]&nbsp;(T)</tt>}}
     |<br /><tt>[[ISO639-3:{{{iso2t|{{{iso2|–}}}}}}|{{{iso2t}}}]]&nbsp;(T)</tt>}}
  }}
  }}
| label21 = [[ISO 639-3]]
| label21 = ISO 639-3
| data21 = {{#if:{{{iso3|}}}
| data21 = {{#if:{{{iso3|}}}
   |{{#ifeq:{{lc:{{{iso3|}}}}}|none|{{#if:{{{iso3comment|}}}|{{{iso3comment}}}|''None'' (<code>mis</code>)}}|<tt>[[ISO639-3:{{{iso3}}}|{{{iso3}}}]]</tt> {{#if:{{{lc1|}}}| – [[ISO 639 macrolanguage|inclusive code]]<!--not all are 'macrolanguages': Hittite, for example-->}} {{{iso3comment|}}}}}|{{#if:{{{lc1|}}}| |–}}}}{{#ifexpr:{{#if:{{{lc1|}}}|1|0}} and {{#if:{{{lc2|}}}|1|0}}|{{#if:{{{iso3|}}}|<br />Individual codes|{{#if:{{{lc3|}}}|Variously|Either}}}}:{{Infobox language/codelist
   |{{#ifeq:{{lc:{{{iso3|}}}}}|none|{{#if:{{{iso3comment|}}}|{{{iso3comment}}}|''None'' (<code>mis</code>)}}|<tt>[[ISO639-3:{{{iso3}}}|{{{iso3}}}]]</tt> {{#if:{{{lc1|}}}| – [[ISO 639 macrolanguage|inclusive code]]<!--not all are 'macrolanguages': Hittite, for example-->}} {{{iso3comment|}}}}}|{{#if:{{{lc1|}}}| |–}}}}{{#ifexpr:{{#if:{{{lc1|}}}|1|0}} and {{#if:{{{lc2|}}}|1|0}}|{{#if:{{{iso3|}}}|<br />Individual codes|{{#if:{{{lc3|}}}|Variously|Either}}}}:{{Infobox language/codelist
Line 301: Line 301:
-->{{#ifeq:{{lc:{{{iso3|}}}}}|none|{{main other|{{#if:{{{creator|}}}{{{setting|}}}{{#ifeq:{{Infobox language/family-color|{{{familycolor|}}}}}|black|1}}|[[Category:Conlangs without ISO 639-3 code]]|}}}}}}<!--
-->{{#ifeq:{{lc:{{{iso3|}}}}}|none|{{main other|{{#if:{{{creator|}}}{{{setting|}}}{{#ifeq:{{Infobox language/family-color|{{{familycolor|}}}}}|black|1}}|[[Category:Conlangs without ISO 639-3 code]]|}}}}}}<!--
-->{{#if:{{{date|}}}|{{#iferror: {{#expr: {{padleft:|4|{{{date}}}|}} }} |<!--
-->{{#if:{{{date|}}}|{{#iferror: {{#expr: {{padleft:|4|{{{date}}}|}} }} |<!--
  -->{{#switch: {{lc:{{{date}}}}}
  | na      = [[Category:Language articles with NA population dates]]
  | no date  = [[Category:Language articles with 'no date' set]]
  | #default = [[Category:Language articles with invalid population dates]]<!--
   -->}}|<!-- no error -->}}|<!-- no date -->}}<!--
   -->}}|<!-- no error -->}}|<!-- no date -->}}<!--
-->{{#if:{{{iso3|}}}|<!--ok-->|{{#if:{{{lc1|}}}|<!--ok-->|<!--
-->{{#if:{{{iso3|}}}|<!--ok-->|{{#if:{{{lc1|}}}|<!--ok-->|<!--

Latest revision as of 06:25, 21 November 2013

Infobox language
Language family
Default
  • Infobox language
Language codes
ISO 639-3

}}