Difference between revisions of "CountryCheck"
From Sega Retro
Line 10: | Line 10: | ||
{{#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|}}}|China}}|{{#vardefine:country|China}}}}}}{{#if: | {{#var:country}}||{{#if:{{#pos:{{{1|}}}|China}}|{{#vardefine:country|China}}}}}}{{#if: | ||
− | {{#var:country}}||{{#if:{{#pos:{{{1|}}}|Czech}}|{{#vardefine:country|Czech Republic}}}}}}{{#if: | + | {{#var:country}}||{{#if:{{#pos:{{{1|}}}|Czech}}|{{#vardefine:country|the Czech Republic}}}}}}{{#if: |
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|Denmark}}|{{#vardefine:country|Denmark}}}}}}{{#if: | {{#var:country}}||{{#if:{{#pos:{{{1|}}}|Denmark}}|{{#vardefine:country|Denmark}}}}}}{{#if: | ||
{{#var:country}}||{{#if:{{#pos:{{{1|}}}|France}}|{{#vardefine:country|France}}}}}}{{#if: | {{#var:country}}||{{#if:{{#pos:{{{1|}}}|France}}|{{#vardefine:country|France}}}}}}{{#if: |
Revision as of 13:35, 24 April 2020
Quick and not-so-great template to extract country names from addresses.
{{CountryCheck|ldifrtjsua pofjkadsfA, United Kingdom}}
becomes
the United Kingdom