Шаблон:Seanad Éireann sidebar

Мавод аз Википедиа — донишномаи озод
Jump to navigation Jump to search
Template-info.svg Ҳуҷҷатҳои шаблон

Usage

{{Seanad Éireann sidebar|year}} where year is the general election year (or month and year) or the Seanad year.

Technical information

For this template to work, there has to be a one-to-one correspondence between election years and numbers, with 1922 = -3, 1925 = -2, 1928 = -1, 1931 = 0, 1934 = 1, 1937 = 2, 1938 = 3, ..., 2011 = 24. Note that the sequential ordering is important so the template can subtract 1 to get the prior and add 1 to get the next. To keep track of this correspondence, the template uses

and the links are generated by

When there is a new election, just add it to the end of Template:Seanad Éireann sidebar/num and Template:Seanad Éireann sidebar/year.