Difference between revisions of "CountryCheck"

From Sega Retro

 
(4 intermediate revisions by 2 users not shown)
Line 6: Line 6:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Austria}}|{{#vardefine:country|Austria}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Austria}}|{{#vardefine:country|Austria}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Australia}}|{{#vardefine:country|Australia}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Australia}}|{{#vardefine:country|Australia}}}}}}{{#if:
 +
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Belgium}}|{{#vardefine:country|Belgium}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Brazil}}|{{#vardefine:country|Brazil}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Brazil}}|{{#vardefine:country|Brazil}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Bulgaria}}|{{#vardefine:country|Bulgaria}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Bulgaria}}|{{#vardefine:country|Bulgaria}}}}}}{{#if:
Line 11: Line 12:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Chile}}|{{#vardefine:country|Chile}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Chile}}|{{#vardefine:country|Chile}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|China}}|{{#vardefine:country|China}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|China}}|{{#vardefine:country|China}}}}}}{{#if:
 +
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Croatia}}|{{#vardefine:country|Croatia}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Czech}}|{{#vardefine:country|Czechia}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Czech}}|{{#vardefine:country|Czechia}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Denmark}}|{{#vardefine:country|Denmark}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Denmark}}|{{#vardefine:country|Denmark}}}}}}{{#if:
Line 24: Line 26:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Iceland}}|{{#vardefine:country|Iceland}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Iceland}}|{{#vardefine:country|Iceland}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|India}}|{{#vardefine:country|India}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|India}}|{{#vardefine:country|India}}}}}}{{#if:
 +
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Indonesia}}|{{#vardefine:country|Indonesia}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Israel}}|{{#vardefine:country|Israel}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Israel}}|{{#vardefine:country|Israel}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Italy}}|{{#vardefine:country|Italy}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Italy}}|{{#vardefine:country|Italy}}}}}}{{#if:
Line 30: Line 33:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Malaysia}}|{{#vardefine:country|Malaysia}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Malaysia}}|{{#vardefine:country|Malaysia}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Mexico}}|{{#vardefine:country|Mexico}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Mexico}}|{{#vardefine:country|Mexico}}}}}}{{#if:
 +
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Monaco}}|{{#vardefine:country|Monaco}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Morocco}}|{{#vardefine:country|Morocco}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Morocco}}|{{#vardefine:country|Morocco}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Netherlands}}|{{#vardefine:country|the Netherlands}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Netherlands}}|{{#vardefine:country|the Netherlands}}}}}}{{#if:
Line 40: Line 44:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Romania}}|{{#vardefine:country|Romania}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Romania}}|{{#vardefine:country|Romania}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Russia}}|{{#vardefine:country|Russia}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Russia}}|{{#vardefine:country|Russia}}}}}}{{#if:
 +
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Saudi Arabia}}|{{#vardefine:country|Saudi Arabia}}}}}}{{#if:
 +
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|San Marino}}|{{#vardefine:country|San Marino}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Serbia}}|{{#vardefine:country|Serbia}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Serbia}}|{{#vardefine:country|Serbia}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Singapore}}|{{#vardefine:country|Singapore}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Singapore}}|{{#vardefine:country|Singapore}}}}}}{{#if:
 +
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Slovakia}}|{{#vardefine:country|Slovakia}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Slovenia}}|{{#vardefine:country|Slovenia}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Slovenia}}|{{#vardefine:country|Slovenia}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Spain}}|{{#vardefine:country|Spain}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Spain}}|{{#vardefine:country|Spain}}}}}}{{#if:
Line 54: Line 61:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|United Arab Emirates}}|{{#vardefine:country|the United Arab Emirates}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|United Arab Emirates}}|{{#vardefine:country|the United Arab Emirates}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Uruguay}}|{{#vardefine:country|Uruguay}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Uruguay}}|{{#vardefine:country|Uruguay}}}}}}{{#if:
 +
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Yugoslavia}}|{{#vardefine:country|Yugoslavia}}}}}}{{#if:
 
{{#var:country}}|{{#var:country}}|unknown}}
 
{{#var:country}}|{{#var:country}}|unknown}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>

Latest revision as of 06:20, 17 May 2024


Quick and not-so-great template to extract country names from addresses.

{{CountryCheck|ldifrtjsua pofjkadsfA, United Kingdom}}

becomes

the United Kingdom