"फलकम्:IndAbbr/doc" इत्यस्य संस्करणे भेदः

विकिपीडिया, कश्चन स्वतन्त्रः विश्वकोशः
{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> The {{tl|CountryAbbr}} ... नवीनं पृष्ठं निर्मितमस्ति
 
(लघु) Bot: Migrating interwiki links, now provided by Wikidata on d:q7366066
 
पङ्क्तिः ४०: पङ्क्तिः ४०:
[[Category:Geography and place metatemplates]]
[[Category:Geography and place metatemplates]]


[[as:Template:CountryAbbr]]
[[bn:টেমপ্লেট:CountryAbbr]]
[[ja:Template:CountryAbbr]]
[[pt:Predefinição:CountryAbbr]]
[[sv:Mall:CountryAbbr]]
</includeonly>
</includeonly>

वर्तमाना आवृत्तिः २२:५८, १७ आगस्ट् २०१३ इति समये

The {{CountryAbbr}} 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:

  • [[Chile]]
  • [[Image:Flag of Chile.svg|25px]] [[Chile]]
  • {{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[सम्पादयतु]

Implementation notes[सम्पादयतु]

{{CountryAbbr}} can handle many inputs simply and directly. In some cases, however, it invokes a helper template:

  • {{CountryAbbr2}} - (expensive) cases where the first parameter is a template
  • {{CanAbbr2}} - provinces, territories, etc. of Canada
  • {{FraAbbr}} - departments, etc. of France
  • {{IndAbbr}} - states, etc. of India
  • {{StateAbbr}} - states, districts, etc. of the United States

See also[सम्पादयतु]

  • {{ISO 3166 code}} returns the ISO code given country name and, optionally, subdivision name. For example: {{ISO 3166 code|France|Paris}} returns . Covers all ISO 3166-1 and ISO 3166-2 codes.


"https://sa.wikipedia.org/w/index.php?title=फलकम्:IndAbbr/doc&oldid=248558" इत्यस्माद् प्रतिप्राप्तम्