Difference between revisions of "CountryCheck"

From Sega Retro

m (Text replacement - "the Czech Republic" to "Czechia")
Line 10: Line 10:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Canada}}|{{#vardefine:country|Canada}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Canada}}|{{#vardefine:country|Canada}}}}}}{{#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|}}}|Czech}}|{{#vardefine:country|the Czech Republic}}}}}}{{#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:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|France}}|{{#vardefine:country|France}}}}}}{{#if:
 
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|France}}|{{#vardefine:country|France}}}}}}{{#if:

Revision as of 11:18, 5 May 2020


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

{{CountryCheck|ldifrtjsua pofjkadsfA, United Kingdom}}

becomes

the United Kingdom