"ഫലകം:Country abbreviation" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
Content deleted Content added
(ചെ.) Protected "Template:Country abbreviation": Highly visible template: RFPP request ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite)) |
Improve comments, add tracking cats , do country alone, start to trim switch |
||
വരി 1: | വരി 1: | ||
<includeonly>{{#if:{{ISO 3166 code|{{#invoke:Country extract|extractCountry|{{{1|}}}}}|{{#invoke:Country extract|extractSubdivision|{{{2|}}}}}|subst={{{subst|}}}}}|{{ISO 3166 code|{{#invoke:Country extract|extractCountry|{{{1|}}}}}|{{#invoke:Country extract|extractSubdivision|{{{2|}}}}}|subst={{{subst|}}}}}|[[Category:Wikipedia page with obscure country or subdivision|{{#ifeq:{{NAMESPACE}}|||{{Namespace Greek}}}}{{BASEPAGENAME}}]]<!-- |
<includeonly>{{#if:{{ISO 3166 code|{{#invoke:Country extract|extractCountry|{{{1|}}}}}|{{#invoke:Country extract|extractSubdivision|{{{2|}}}}}|subst={{{subst|}}}}}|{{ISO 3166 code|{{#invoke:Country extract|extractCountry|{{{1|}}}}}|{{#invoke:Country extract|extractSubdivision|{{{2|}}}}}|subst={{{subst|}}}}}|[[Category:Wikipedia page with obscure country or subdivision|{{#ifeq:{{NAMESPACE}}|||{{Namespace Greek}}}}{{BASEPAGENAME}}]]<!-- |
||
If we can't figure out the subdivision code, just do the country code. |
|||
*** code creates a red-link in the "used template" list of any page that fails the above super-fast abbreviation generation (sometimes) *** |
|||
-->{{# |
-->{{#if:{{ISO 3166 code|{{#invoke:Country extract|extractCountry|{{{1|}}}}}|subst={{{subst|}}}}}|{{ISO 3166 code|{{#invoke:Country extract|extractCountry|{{{1|}}}}}}}|<!-- |
||
*** |
*** Otherwise do the legacy main switch which can be trimmed enormously at some point *** |
||
-->{{{{{subst|}}}#switch:{{{1}}} |
-->|[[Category:Wikipedia page with obscure country|{{#ifeq:{{NAMESPACE}}|||{{Namespace Greek}}}}{{BASEPAGENAME}}]]{{{{{subst|}}}#switch:{{{1}}} |
||
⚫ | |||
|= |
|||
|United States|[[United States]]=US-{{{{{subst|}}}StateAbbr|{{{2|}}}|subst={{{subst|}}}}} |
|||
⚫ | |||
|Alberta|[[Alberta]]=AB |
|||
|British Columbia|[[British Columbia]]=BC |
|||
|Manitoba|[[Manitoba]]=MB |
|||
|New Brunswick|[[New Brunswick]]=NB |
|||
|Newfoundland and Labrador|[[Newfoundland and Labrador]]|Newfoundland|Labrador=NL |
|||
|Nova Scotia|[[Nova Scotia]]=NS |
|||
|Northwest Territories|[[Northwest Territories]]=NT |
|||
|Nunavut|[[Nunavut]]=NU |
|||
|Ontario|[[Ontario]]=ON |
|||
|Prince Edward Island|[[Prince Edward Island]]=PE |
|||
|Quebec|[[Quebec]]|Québec|[[Québec]]|[[Quebec|Québec]]=QC |
|||
|Saskatchewan|[[Saskatchewan]]=SK |
|||
|Yukon|[[Yukon]]=YT|{{{{{subst|}}}CanAbbr2|{{{2|}}}|subst={{{subst|}}}}}}} |
|||
|Brazil|[[Brazil]]|[[Image:Flag of Brazil.svg|25px]] [[Brazil]]=BR |
|Brazil|[[Brazil]]|[[Image:Flag of Brazil.svg|25px]] [[Brazil]]=BR |
||
|Andorra|[[Andorra]]=AD |
|Andorra|[[Andorra]]=AD |
||
|United Arab Emirates|[[United Arab Emirates]]|Emirates=AE |
|United Arab Emirates|[[United Arab Emirates]]|Emirates=AE |
||
<!--|Afghanistan|[[Afghanistan]]=AF--> |
|||
|Antigua and Barbuda|[[Antigua and Barbuda]]=AG |
|Antigua and Barbuda|[[Antigua and Barbuda]]=AG |
||
|Anguilla|[[Anguilla]]=AI |
|Anguilla|[[Anguilla]]=AI |
||
വരി 33: | വരി 17: | ||
|Armenia|[[Armenia]]=AM |
|Armenia|[[Armenia]]=AM |
||
|Netherlands Antilles|[[Netherlands Antilles]]=AN |
|Netherlands Antilles|[[Netherlands Antilles]]=AN |
||
|Kingdom of the Netherlands|[[Kingdom of the Netherlands]]={{{{{subst|}}}#switch:{{{2|}}} |
|||
|{{nowrap|[[Netherlands Antilles]]}}|Netherlands Antilles|[[Netherlands Antilles]]=AN |
|||
|[[Aruba]]|Aruba=AW |
|||
|NL}} |
|||
|Angola|[[Angola]]|[[Image:Flag of Angola.svg|25px]] [[Angola]]=AO |
|Angola|[[Angola]]|[[Image:Flag of Angola.svg|25px]] [[Angola]]=AO |
||
|Antarctica|[[Antarctica]]=AQ |
|Antarctica|[[Antarctica]]=AQ |
||
വരി 82: | വരി 62: | ||
|Cyprus|[[Cyprus]]=CY |
|Cyprus|[[Cyprus]]=CY |
||
|Czech Republic|Czechia|[[Czech Republic]]|[[Czechia]]=CZ |
|Czech Republic|Czechia|[[Czech Republic]]|[[Czechia]]=CZ |
||
|Germany|[[Germany]]=DE{{{{{subst|}}}#switch:{{{2|}}} |
|||
|Baden-Wuerttemberg|Baden-Württemberg|[[Baden-Württemberg]]=-BW |
|||
|Bayern|Bavaria|[[Bavaria]]=-BY |
|||
|Berlin|[[Berlin]]=-BE |
|||
|Brandenburg|[[Brandenburg]]=-BB |
|||
|Bremen|[[Bremen]]=-HB |
|||
|Hamburg|[[Hamburg]]=-HH |
|||
|Hessen|Hesse|[[Hesse]]=-HE |
|||
|Mecklenburg-Vorpommern|Mecklenburg-Western Pomerania|Mecklenburg-Vorpommern|[[Mecklenburg-Western Pomerania]]=-MV |
|||
|Niedersachsen|Lower Saxony|[[Lower Saxony]]=-NI |
|||
|Nordrhein-Westfalen|NRW|North Rhine-Westphalia|[[North Rhine-Westphalia]]=-NW |
|||
|Rheinland-Pfalz|Rhineland-Palatinate|[[Rhineland-Palatinate]]=-RP |
|||
|Saarland|[[Saarland]]=-SL |
|||
|Sachsen-Anhalt|Saxony-Anhalt|[[Saxony-Anhalt]]=-ST |
|||
|Sachsen|Saxony|[[Saxony]]=-SN |
|||
|Schleswig-Holstein|[[Schleswig-Holstein]]=-SH |
|||
|Thüringen|Thuringia|[[Thuringia]]=-TH|}} |
|||
|Djibouti|[[Djibouti]]|[[Image:Flag of Djibouti.svg|25px]] [[ Djibouti]]=DJ |
|Djibouti|[[Djibouti]]|[[Image:Flag of Djibouti.svg|25px]] [[ Djibouti]]=DJ |
||
|Denmark|[[Denmark]]|Kingdom of Denmark|[[Kingdom of Denmark]]={{{{{subst|}}}#switch:{{{2|}}} |
|||
|Greenland|[[Greenland]]|[[Image:Flag of Greenland.svg|25px]] [[Greenland]]=GL |
|||
|DK}} |
|||
|Dominica|[[Dominica]]=DM |
|Dominica|[[Dominica]]=DM |
||
|Dominican Republic|[[Dominican Republic]]=DO |
|Dominican Republic|[[Dominican Republic]]=DO |
||
വരി 118: | വരി 78: | ||
|Federated States of Micronesia |Micronesia|[[Federated States of Micronesia]]|[[Micronesia]]=FM |
|Federated States of Micronesia |Micronesia|[[Federated States of Micronesia]]|[[Micronesia]]=FM |
||
|Faroe Islands|[[Faroe Islands]]=FO |
|Faroe Islands|[[Faroe Islands]]=FO |
||
|France|[[France]]=FR{{{{{subst|}}}#switch:{{{2|}}} |
|||
|Ain|[[Ain]]=-01 |
|||
|Charente-Maritime|[[Charente-Maritime]]=-17 |
|||
|Dordogne|[[Dordogne]]=-24 |
|||
|Doubs|[[Doubs]]|[[Doubs (department)|Doubs]]|[[Doubs Department|Doubs]]|[[Doubs department|Doubs]]=-25 |
|||
|Jura|[[Jura (department)|Jura]]=-39 |
|||
|Nièvre|[[Nièvre]]=-58 |
|||
|Pas-de-Calais|[[Pas-de-Calais]]|[[Image:Pas de Calais Arms.svg|20px]] [[Pas-de-Calais]]=-62 |
|||
|Haut-Rhin|[[Haut-Rhin]]=-68 |
|||
|Saône-et-Loire|[[Saône-et-Loire]]=-71 |
|||
|Haute-Savoie|[[Haute-Savoie]]=-74 |
|||
|Paris|[[Paris]]|=-75 |
|||
|Vaucluse|[[Vaucluse]]=-84 |
|||
|Vienne|[[Vienne]]=-86 |
|||
|Haute-Vienne|[[Haute-Vienne]]=-87 |
|||
|Yonne|[[Yonne]]=-89 |
|||
|Territoire de Belfort|[[Territoire de Belfort]]=-90 |
|||
|{{{{{subst|}}}FraAbbr|{{{2|}}}|subst={{{subst|}}}}}}} |
|||
|Gabon|[[Gabon]]|[[Image:Flag of Gabon.svg|25px]] [[Gabon]]=GA |
|Gabon|[[Gabon]]|[[Image:Flag of Gabon.svg|25px]] [[Gabon]]=GA |
||
|United Kingdom|Great Britain|UK|GB|England|Wales|[[England]]|[[United Kingdom]]|[[Great Britain]]|[[UK]]|[[GB]]|[[Wales]]|[[UK|United Kingdom]]=GB |
|||
|Grenada|[[Grenada]]=GD |
|Grenada|[[Grenada]]=GD |
||
|Georgia|Georgia (country)|[[Georgia]]|[[Georgia (country)|Georgia]]|[[Image:Flag of Georgia.svg|25px]] [[Georgia (country)|Georgia]]=GE |
|Georgia|Georgia (country)|[[Georgia]]|[[Georgia (country)|Georgia]]|[[Image:Flag of Georgia.svg|25px]] [[Georgia (country)|Georgia]]=GE |
||
വരി 309: | വരി 250: | ||
|Zimbabwe|[[Zimbabwe]]=ZW |
|Zimbabwe|[[Zimbabwe]]=ZW |
||
|{{USA}}=US-{{{{{subst|}}}StateAbbr|{{{2|}}}|subst={{{subst|}}}}} |
|{{USA}}=US-{{{{{subst|}}}StateAbbr|{{{2|}}}|subst={{{subst|}}}}} |
||
|USA|United States of America|US|[[USA]]|[[United States of America|United States]]|[[United States of America]]|[[United States|United States of America]]|[[US]]|[[Image:Flag of the United States.svg|20px]] [[United States]]|[[Image:Flag of the United States.svg|20px]][[United States]]|{{flagicon|USA}} [[United States]]=US-{{{{{subst|}}}StateAbbr|{{{2|}}}|subst={{{subst|}}} |
|USA|United States of America|US|[[USA]]|[[United States of America|United States]]|[[United States of America]]|[[United States|United States of America]]|[[US]]|[[Image:Flag of the United States.svg|20px]] [[United States]]|[[Image:Flag of the United States.svg|20px]][[United States]]|{{flagicon|USA}} [[United States]]=US-{{ {{{subst|}}}StateAbbr|{{{2|}}}|subst={{{subst|}}} }} |
||
|{{CAN}}=CA-{{{{{subst|}}}CanAbbr2|{{{2|}}}|subst={{{subst|}}}}} |
|{{CAN}}=CA-{{ {{{subst|}}}CanAbbr2|{{{2|}}}|subst={{{subst|}}}}} |
||
|{{PRC}}=CN |
|{{PRC}}=CN |
||
|[[Category:Wikipedia page with very obscure country{{#ifeq:{{NAMESPACE}}|||{{Namespace Greek}}}}{{BASEPAGENAME}}]]<!-- can't do anything --> |
|||
|{{{{{subst|}}}CountryAbbr2/sandbox|{{{1|}}}|{{{2|}}}|subst={{{subst|}}}|{{#if:{{{debug|}}}|debug={{{debug}}}}}}} |
|||
}}<!-- switch --> |
|||
⚫ | |||
}}<!-- if we can't do the country --> |
|||
⚫ | |||
{{Documentation}} |
{{Documentation}} |
||
</noinclude> |
</noinclude> |
22:07, 10 ജനുവരി 2016-നു നിലവിലുണ്ടായിരുന്ന രൂപം
[തിരുത്തുക] [ ] ഫലകത്തിന്റെ വിവരണം
This template uses Lua: |
Usage
Given a country name and optionally a subdivision name, returns the country code or subdivision code per ISO 3166-1 or ISO 3166-2.
Example:
{{Country abbreviation|Afghanistan|Kunduz}}
gives ലുവ പിഴവ് package.lua-ൽ 80 വരിയിൽ : module 'Module:ISO 3166/data/AF' not found
Tracking categories
- Category:Wikipedia page with obscure country or subdivision (can't figure out the combined country-sub)
- Category:Wikipedia page with obscure country (Can't figure out just the country)
- Category:Wikipedia page with very obscure country (even the switch doesn't get it)
മുകളിൽ കാണുന്ന വിവരണം ഫലകം:Country abbreviation/doc എന്ന ഉപതാളിൽ നിന്ന് ഉൾപ്പെടുത്തിയിട്ടുള്ളതാണ്. (തിരുത്തുക | നാൾവഴി) താങ്കൾക്ക് പരീക്ഷണങ്ങൾ ഫലകത്തിന്റെ എഴുത്തുകളരി (നിർമ്മിക്കുക) താളിലോ testcases (നിർമ്മിക്കുക) താളിലോ നടത്താവുന്നതാണ്. ദയവായി വർഗ്ഗങ്ങളും ബഹുഭാഷാകണ്ണികളും /വിവരണം ഉപതാളിൽ മാത്രം ഇടുക. ഈ ഫലകത്തിന്റെ ഉപതാളുകൾ. |