Difference between revisions of "Template:Globalize/name"

From blackwiki
Jump to navigation Jump to search
imported>Trialpears
(Debug)
imported>Tartan357
(added "the" before "United Kingdom" and "United States" for grammatical correctness in the template message)
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{#ifeq: {{{2|name}}}|name <!-- Displayname or category name-->
 
{{#ifeq: {{{2|name}}}|name <!-- Displayname or category name-->
|{{#switch: {{lc:{{{1}}}}}<!--Add countries with multiple names here-->
+
|{{#switch: {{lc:{{{1|}}}}}<!--Add countries with multiple names here-->
 
|usa
 
|usa
 
|the usa
 
|the usa
 
|us
 
|us
 +
|u.s.
 
|the us
 
|the us
 
|the united states
 
|the united states
 
|united states
 
|united states
 
|united states of america
 
|united states of america
|the united states of america = USA
+
|the united states of america = the United States
 
|anglophone
 
|anglophone
 
|english
 
|english
Line 17: Line 18:
 
|the english speaking world
 
|the english speaking world
 
|eng
 
|eng
 +
|the anglophone countries
 
|en=Anglophone
 
|en=Anglophone
 
|canada
 
|canada
Line 22: Line 24:
 
|ca=Canada
 
|ca=Canada
 
|germany
 
|germany
german
+
|german
 
|de=Germany
 
|de=Germany
 
|hong kong=Hong Kong
 
|hong kong=Hong Kong
Line 42: Line 44:
 
|the united kingdom
 
|the united kingdom
 
|the uk
 
|the uk
|british=United Kingdom
+
|british
 +
|britain=the United Kingdom
 
|england
 
|england
 
|english=England
 
|english=England
Line 54: Line 57:
 
|europe
 
|europe
 
|european
 
|european
 +
|the european union
 +
|european union
 
|eu=Europe
 
|eu=Europe
 
|india
 
|india
Line 76: Line 81:
 
|the north
 
|the north
 
|the northern hemisphere=Northern
 
|the northern hemisphere=Northern
|{{{1}}} <!--If name is not on list return the original-->}}|}}
+
|{{{1|}}} <!--If name is not on list return the original-->}}|}}{{#ifeq: {{{2|name}}}|name||
 
+
{{#switch: {{{1|}}}<!--Add countries with different display names and category names here -->
{{#ifeq: {{{2|name}}}|name||
 
If you're reading this please tell me{{#switch: {{User:Trialpears/sandbox/Globalize/name|{{{1}}}}}<!--Add countries with different display names and category names here -->
 
 
|USA=the United States
 
|USA=the United States
 
|Anglophone=[[English-speaking world|the English-speaking world]]
 
|Anglophone=[[English-speaking world|the English-speaking world]]
 
|Northern=the [[Northern Hemisphere]]
 
|Northern=the [[Northern Hemisphere]]
 
|United Kingdom=the United Kingdom
 
|United Kingdom=the United Kingdom
|{{{1}}} <!--If no other display name was found return the input-->
+
|{{{1|}}} <!--If no other display name was found return the input-->
}}}}
+
}}}}<noinclude>{{documentation|content=This sub-template is intended to simplify the code of the main template by moving the alternative name logic.}}</noinclude>

Latest revision as of 03:20, 29 November 2020

Template documentation

This sub-template is intended to simplify the code of the main template by moving the alternative name logic.