Difference between revisions of "CountryCheck"
From Sega Retro
Ccawley2011 (talk | contribs) |
Ccawley2011 (talk | contribs) |
||
Line 33: | 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: |
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