Skip to main content

Template:Year in Europe








Permanently protected template


Template:Year in Europe


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 European countries. Based on the input year, it contains all countries in Europe 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 {{Europe topic}} 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 Europe", 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)


  • AL – Albania


  • AD – Andorra


  • AM – Armenia


  • AT – Austria


  • AZ – Azerbaijan


  • BY – Belarus


  • BE – Belgium


  • BA – Bosnia and Herzegovina


  • BG – Bulgaria


  • HR – Croatia


  • CY – Cyprus


  • CZ – Czech Republic


  • DK – Denmark


  • EE – Estonia


  • FI – Finland


  • FR – France


  • GE – Georgia


  • DE – Germany


  • GR – Greece


  • HU – Hungary


  • IS – Iceland


  • IE – Ireland


  • IT – Italy


  • KZ – Kazakhstan


  • LV – Latvia


  • LI – Liechtenstein


  • LT – Lithuania


  • LU – Luxembourg


  • MK – Macedonia


  • MT – Malta


  • MD – Moldova


  • MC – Monaco


  • ME – Montenegro


  • NL – Netherlands


  • NO – Norway


  • PL – Poland


  • PT – Portugal


  • RO – Romania


  • RU – Russia


  • SM – San Marino


  • RS – Serbia


  • SK – Slovakia


  • SI – Slovenia


  • ES – Spain


  • SE – Sweden


  • CH – Switzerland


  • TR – Turkey


  • UA – Ukraine


  • GB – United Kingdom


  • VA – Vatican City



Current dependencies (ISO 3166-1 codes)


  • AX – Aland


  • FO – Faroe Islands


  • GI – Gibraltar


  • GG – Guernsey


  • IM – Isle of Man


  • JE – Jersey


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




  • XAB – Abkhazia


  • XKS – Kosovo


  • XNK – Nagorno-Karabakh


  • XNC – Northern Cyprus


  • XSO – South Ossetia


  • XTR – Transnistria


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




  • CSHH – Czechoslovakia


  • DD – East Germany


  • CSXX – Serbia and Montenegro


  • SU – Soviet Union


  • YU – Yugoslavia


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




  • XAR – Aragon


  • XAH – Austria-Hungary


  • XBC – Country of Barcelona


  • XBD – Baden


  • XBV – Batavian Republic


  • XBS – Kingdom of Bosnia


  • XBY – Byzantine Empire


  • XCL – Castile


  • XDN – Denmark-Norway


    • XDK – Denmark within Denmark-Norway


    • XNO – Norway within Denmark-Norway




  • XEN – Kingdom of England


  • XGB – Kingdom of Great Britain


  • XHL – Kingdom of Holland


  • XHR – Holy Roman Empire


  • XKU – Kalmar Union


  • XLN – Kingdom of León


  • XMD – Moldavia


  • XMN – Mongol Empire


  • XMW – Grand Duchy of Moscow


  • XOT – Ottoman Empire


  • XPP – Papal States


  • XPR – Prussia


  • XSC – Kingdom of Scotland


  • XWL – Wallachia


  • XWG – West Germany


  • XWU – West Ukraine


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




  • XCY – British Cyprus


  • XMT – British Malta



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 Europe|2000}}



Example with custom title and links:


{{Year in Europe|2000|title=Title|DK=Custom link for Denmark}}



Note the (red) custom link for Denmark.


Code for adding countries


* {{Year in Europe/expr|{{{1}}}|{{{Code|♦}}}|Years|name=Country name}}


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 Europe/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 Europe/expr|{{{1}}}|{{{Code|♦}}}|1100|1300|name=Name}}

[1100, 1300)
1100–1300
* {{Year in Europe/expr|{{{1}}}|{{{Code|♦}}}|1100|1300|1500|1700|name=Name}}

[1100, 1300), [1500, 1700)
1100–1300 and 1500–1700
* {{Year in Europe/expr|{{{1}}}|{{{Code|♦}}}|1100|name=Name}}

[1100, +∞)
since 1100
* {{Year in Europe/expr|{{{1}}}|{{{Code|♦}}}||1300|name=Name}}

(−∞, 1300)
until 1300
* {{Year in Europe/expr|{{{1}}}|{{{Code|♦}}}|1100|1300|1500|name=Name}}

[1100, 1300), [1500, +∞)
from 1100 until 1300 and after 1500
* {{Year in Europe/expr|{{{1}}}|{{{Code|♦}}}||1100|1300|name=Name}}

(−∞, 1100), [1300, +∞)
before 1100 and after 1300
* {{Year in Europe/expr|{{{1}}}|{{{Code|♦}}}|name=Name}}

(−∞, +∞)
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_Europe&oldid=827246200"





Navigation menu

























(window.RLQ=window.RLQ||).push(function(){mw.config.set({"wgPageParseReport":{"limitreport":{"cputime":"0.412","walltime":"0.547","ppvisitednodes":{"value":15870,"limit":1000000},"ppgeneratednodes":{"value":0,"limit":1500000},"postexpandincludesize":{"value":136752,"limit":2097152},"templateargumentsize":{"value":22529,"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% 443.507 1 -total"," 95.89% 425.280 1 Template:Documentation"," 81.11% 359.733 1 Template:Year_in_Europe/doc"," 60.28% 267.344 2 Template:Year_in_Europe"," 57.49% 254.974 2 Template:Navbox"," 47.16% 209.152 218 Template:Year_in_Europe/expr"," 21.01% 93.160 118 Template:Year_in_continent/link"," 4.76% 21.117 9 Template:Tlc"," 4.09% 18.126 1 Template:Error"," 3.90% 17.308 17 Template:Param"]},"scribunto":{"limitreport-timeusage":{"value":"0.050","limit":"10.000"},"limitreport-memusage":{"value":1461457,"limit":52428800}},"cachereport":{"origin":"mw1333","timestamp":"20181129162606","ttl":1900800,"transientcontent":false}}});mw.config.set({"wgBackendResponseTime":89,"wgHostname":"mw1254"});});

Popular posts from this blog

Florida Star v. B. J. F.

Danny Elfman

Retrieve a Users Dashboard in Tumblr with R and TumblR. Oauth Issues