Difference between revisions of "CountryCheck"

From Sega Retro

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:

Revision as of 06:07, 17 May 2024


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

{{CountryCheck|ldifrtjsua pofjkadsfA, United Kingdom}}

becomes

the United Kingdom