Difference between revisions of "Template:Globalize/name"

From blackwiki
Jump to navigation Jump to search
imported>Trialpears
(Removed debug message)
imported>Trialpears
(Added pipes)
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
Line 76: Line 76:
 
|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||
 
{{#ifeq: {{{2|name}}}|name||
{{#switch: {{{1}}}<!--Add countries with different display names and category names here -->
+
{{#switch: {{{1|}}}<!--Add countries with different display names and category names here -->
 
|USA=the United States
 
|USA=the United States
 
|Anglophone=[[English-speaking worldthe English-speaking world]]
 
|Anglophone=[[English-speaking worldthe 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-->
 
}}}}
 
}}}}

Revision as of 14:04, 12 August 2019