साँचा:CountryAbbr2
The {{CountryAbbr2}} template attempts to generate the ISO 3166-1 alpha-2 or ISO 3166-2 code for a named country or geographic region, for use in the region:
parameter of {{Coord}}. It attempts a ISO 3166-2 region code for locations in Canada, France, Germany, India, and the United States. It attempts a ISO 3166-1 alpha-2 country code for all other locations.
Parameters
संपादित करेंThe first (required) argument specifies the name of the country, such as "United States" or "Chile".
The second (optional) argument is the name of a state or province within the specified country, such as "Alaska".
Attempts have been made to recognize variations commonly seen in infoboxes, such as:
- {{CHL}}
- {{flag|Chile}}
So far, however, the template has failed to keep up with the ingenuity of infobox creators.
Bugs
संपादित करेंLocations in Canada, India, and the United States generate invalid region codes (CA-X, IN-X, and US-X) if the second argument is omitted, blank, or invalid.
Used in
संपादित करें- {{CountryAbbr}}
Implementation notes
संपादित करें{{CountryAbbr2}}
sometimes invokes a helper template:
A nation's flag data is matched to the flag+wikilink as in:
{{flag|nation}}
- shows flag + wikilinked nation name{{country flag2|alias=Canada | name=Canada| flag alias=Flag of Canada.svg}}
- invoked inside {flag}
Each nation's flag can be specified by a 3-letter flag template, such as: {{CAN}}, {{USA}}, {{FRA}}, {{POL}}, {{PRC}}, {{JPN}}, {{WAL}}, etc.
ऊपर दिए गए निर्देश साँचा:CountryAbbr2/doc से लिए गए है।(संपादन | इतिहास) संपादक इस साँचे के प्रयोगस्थल व प्रयोग पन्नों में प्रयोग कर सकते है। sandbox (create) and testcases (create) pages. कृपया /doc उपपृष्ठ पर श्रेणियाँ व विकियों के बिच की कड़ियाँ जोड़े। इस साँचे के उपपृष्ठ। |