Difference between revisions of "CountryCheck"
From Sega Retro
Ccawley2011 (talk | contribs) |
Ccawley2011 (talk | contribs) |
||
Line 37: | Line 37: | ||
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Taiwan}}|{{#vardefine:country|Taiwan}}}}}}{{#if: | {{#var:country}}||{{#if:{{#pos:{{{1|}}}|Taiwan}}|{{#vardefine:country|Taiwan}}}}}}{{#if: | ||
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Thailand}}|{{#vardefine:country|Thailand}}}}}}{{#if: | {{#var:country}}||{{#if:{{#pos:{{{1|}}}|Thailand}}|{{#vardefine:country|Thailand}}}}}}{{#if: | ||
+ | {{#var:country}}||{{#if:{{#pos:{{{1|}}}|United Arab Emirates}}|{{#vardefine:country|the United Arab Emirates}}}}}}{{#if: | ||
{{#var:country}}|{{#var:country}}|unknown}} | {{#var:country}}|{{#var:country}}|unknown}} | ||
</includeonly><noinclude> | </includeonly><noinclude> |
Revision as of 08:00, 24 May 2021
Quick and not-so-great template to extract country names from addresses.
{{CountryCheck|ldifrtjsua pofjkadsfA, United Kingdom}}
becomes
the United Kingdom