Difference between revisions of "CountryCheck"

From Sega Retro

Line 11: Line 11:
 
{{#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 43: Line 44:
 
{{#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:

Revision as of 15:46, 7 July 2023


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

{{CountryCheck|ldifrtjsua pofjkadsfA, United Kingdom}}

becomes

the United Kingdom