Skip to main content

Template:Year in Asia







Permanently protected template


Template:Year in Asia


From Wikipedia, the free encyclopedia

Jump to navigation
Jump to search


Error: No input year specified




Template documentation[view] [edit] [history] [purge]



Contents





  • 1 Parameters


  • 2 Examples


  • 3 Code for adding countries


  • 4 Limits



This is a navbox template intended for "Year in country" articles for Asian countries. Based on the input year, it contains all countries in Asia in that year, linked to the respective "Year in country" article, if that doesn't exist the "Decade in country" article, and if that doesn't exist either the "History of country" article.


This template is based on Year in Europe and therefore uses mostly the same parameters. The template may not yet contain all former countries, though the goal is to make it accurate for all years after 1000.


Parameters



  • 1 (first unnamed parameter): The year (required; if unspecified or not numeric an error message is given, such as on this template page)


  • title: A custom title (default: "<year> in Asia", linked if an article with that name exists)


  • state: "expanded", "collapsed" or "autocollapse" (see collapsible option)

Furthermore, the link to each country can be individually set using the following parameter names. If set to nothing it omits the country entirely. These parameters also work if a country is omitted by default because it didn't exist in the given year.





Current countries (ISO 3166-1 codes)

  • AF – Afghanistan


  • AM – Armenia


  • AZ – Azerbaijan


  • BH – Bahrain (also as British colony)


  • BD – Bangladesh


  • BT – Bhutan


  • BN – Brunei


  • MM – Burma (Myanmar)


  • KH – Cambodia


  • CN – China


  • CY – Cyprus (also as British colony)


  • TL – East Timor (Timor-Leste)


  • EG – Egypt


  • GE – Georgia


  • IN – India


  • ID – Indonesia


  • IR – Iran


  • IQ – Iraq


  • IL – Israel


  • JP – Japan


  • JO – Jordan


  • KZ – Kazakhstan


  • KP – North Korea


  • KR – South Korea


  • KW – Kuwait


  • KG – Kyrgyzstan


  • LA – Laos


  • LB – Lebanon


  • MY – Malaysia


  • MV – Maldives


  • MN – Mongolia (also as unrecognised country)


  • NP – Nepal


  • OM – Oman


  • PK – Pakistan


  • PH – Philippines


  • QA – Qatar


  • RU – Russia


  • SA – Saudi Arabia


  • SQ – Singapore


  • LK – Sri Lanka


  • SY – Syria


  • TJ – Tajikistan


  • TH – Thailand


  • TR – Turkey


  • TM – Turkmenistan


  • AE – United Arab Emirates


  • UZ – Uzbekistan


  • VN – Vietnam


  • YE – Yemen (also for North Yemen)


Current dependencies (ISO 3166-1 codes)

  • IO – British Indian Ocean Territory


  • CX – Christmas Island


  • CC – Cocos (Keeling) Islands


  • HK – Hong Kong


  • MO – Macau

States with limited recognition (ISO 3166-1 user-assigned codes)



  • XAB – Abkhazia


  • XNK – Nagorno-Karabakh


  • XNC – Northern Cyprus


  • PS – Palestine


  • XSO – South Ossetia


  • TW – Taiwan (also as recognised country)

Former countries (ISO 3166-1 and ISO 3166-3 codes)



  • SKM – Sikkim


  • SU – Soviet Union


  • VD – North Vietnam


  • YMD – South Yemen

Former countries (ISO 3166-1 user-assigned codes)



  • XMA – British Malaya


  • XIN – British Raj


  • XBY – Byzantine Empire


  • XLK – Ceylon (changed to Sri Lanka)


  • XGB – Colony of Aden


  • XNL – Dutch East Indies


  • XFN – French India


  • XFI – French Indochina


  • XKR – Korea


  • XMY – Malaya (changed to Malaysia)


  • XIQ – Mandatory Iraq


  • XPS – Mandatory Palestine


  • XSY – Mandatory Syria


  • XMN – Mongol Empire


  • XOT – Ottoman Empire


  • XCN – Tibet


  • XJO – Transjordan


  • XVN – South Vietnam

It's technically possible to input non-integer years like 1976.5, but that wouldn't make much sense, and year articles are not likely to exist for such years.


Examples


Year in Asia



Example with custom title and links:


2000



Note the (red) custom link for Indonesia.


Code for adding countries


* Year in Asia/expr


where "Code" is a unique country-specific parameter name, "Years" is a series of years identifying periods of existence of a country (see below), and "Country name" is the country name that should be used for links. If the short-form name that should be displayed is different (for example "Georgia (country)" vs. "Georgia"), the parameter |disp=display name should be added; for countries whose names require the article "the" the parameter |the=the is available. The sub-template Year in Asia/expr automatically compares the input year with the year criteria and creates the link.


"Years" is a series of up to six unnamed parameters where each pair of two identifies a time period in which the country existed. Omit either for an unbounded interval (since the first year or until the second year). Some examples:


























Code
Interval
Country included in years
* Year in Asia/expr

[1100, 1300)
1100–1300
* 1300

[1100, 1300), [1500, 1700)
1100–1300 and 1500–1700
* name=Name

[1100, +∞)
since 1100
*

(−∞, 1300)
until 1300
* 1

[1100, 1300), [1500, +∞)
from 1100 until 1300 and after 1500
* 1

(−∞, 1100), [1300, +∞)
before 1100 and after 1300
* Year in Asia/expr

(−∞, +∞)
always

By design, each interval includes the left endpoint and excludes the right endpoint. A country with the coding from the first example would therefore be listed if the input year is 1100, but not if the input year is 1300.


Limits


This template uses two #ifexist parser functions for each included country. Because #ifexist is an expensive parser function, only 500 of these may be used on a given page (see Wikipedia:Template limits). Depending on the number of countries in the given year, this template can therefore be transcluded only a few times on the same page, and if a page already uses a lot of expensive parser functions, adding it may cause the page to be automatically added to Category:Pages with too many expensive parser function calls.







Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Year_in_Asia&oldid=815316744"





Navigation menu

























(window.RLQ=window.RLQ||).push(function()mw.config.set("wgPageParseReport":"limitreport":"cputime":"0.344","walltime":"0.443","ppvisitednodes":"value":15164,"limit":1000000,"ppgeneratednodes":"value":0,"limit":1500000,"postexpandincludesize":"value":132996,"limit":2097152,"templateargumentsize":"value":21029,"limit":2097152,"expansiondepth":"value":16,"limit":40,"expensivefunctioncount":"value":100,"limit":500,"unstrip-depth":"value":0,"limit":20,"unstrip-size":"value":0,"limit":5000000,"entityaccesscount":"value":0,"limit":400,"timingprofile":["100.00% 362.754 1 -total"," 96.09% 348.561 1 Template:Documentation"," 77.41% 280.817 1 Template:Year_in_Asia/doc"," 64.12% 232.605 2 Template:Year_in_Asia"," 61.27% 222.249 2 Template:Navbox"," 51.87% 188.173 212 Template:Year_in_Asia/expr"," 23.95% 86.874 118 Template:Year_in_continent/link"," 5.00% 18.128 9 Template:Tlc"," 3.88% 14.091 1 Template:Error"," 3.56% 12.921 17 Template:Param"],"scribunto":"limitreport-timeusage":"value":"0.049","limit":"10.000","limitreport-memusage":"value":1494009,"limit":52428800,"cachereport":"origin":"mw1239","timestamp":"20180908212345","ttl":1900800,"transientcontent":false);mw.config.set("wgBackendResponseTime":91,"wgHostname":"mw2272"););

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Crossroads (UK TV series)

ữḛḳṊẴ ẋ,Ẩṙ,ỹḛẪẠứụỿṞṦ,Ṉẍừ,ứ Ị,Ḵ,ṏ ṇỪḎḰṰọửḊ ṾḨḮữẑỶṑỗḮṣṉẃ Ữẩụ,ṓ,ḹẕḪḫỞṿḭ ỒṱṨẁṋṜ ḅẈ ṉ ứṀḱṑỒḵ,ḏ,ḊḖỹẊ Ẻḷổ,ṥ ẔḲẪụḣể Ṱ ḭỏựẶ Ồ Ṩ,ẂḿṡḾồ ỗṗṡịṞẤḵṽẃ ṸḒẄẘ,ủẞẵṦṟầṓế