Difference between revisions of "CountryCheck"
From Sega Retro
m (Text replacement - "the Czech Republic" to "Czechia") |
Ccawley2011 (talk | contribs) |
||
Line 9: | Line 9: | ||
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Bulgaria}}|{{#vardefine:country|Bulgaria}}}}}}{{#if: | {{#var:country}}||{{#if:{{#pos:{{{1|}}}|Bulgaria}}|{{#vardefine:country|Bulgaria}}}}}}{{#if: | ||
{{#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|}}}|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|}}}|Czech}}|{{#vardefine:country|Czechia}}}}}}{{#if: | {{#var:country}}||{{#if:{{#pos:{{{1|}}}|Czech}}|{{#vardefine:country|Czechia}}}}}}{{#if: |
Revision as of 07:50, 24 May 2021
Quick and not-so-great template to extract country names from addresses.
{{CountryCheck|ldifrtjsua pofjkadsfA, United Kingdom}}
becomes
the United Kingdom