close
Sayahna Sayahna
Search

Difference between revisions of "Template:TR mayor/doc"


 
m (1 revision)
 
(No difference)

Latest revision as of 07:29, 22 August 2014

Template to build lists of mayors, one template per table row. Sample: List of mayors of Solothurn

Standard format
{{TR mayor|period=|mayor=|lifespan=|party=}}
Complete lines
{{TR mayor|period=|mayor=|lifespan=|party=|note=|ref=|sequence=}}
Empty lines
{{TR mayor}}
Elected, but declined
{{TR mayor|period=|declined=yes|mayor=|lifespan=|party=}}


Requires:

  • {{TR mayor|header=yes}} before the first row (to add the table header markup "<table>")
  • {{TR mayor|footer=yes}} after the last row (to add the table footer markup "</table>").

Usage

Sample:

{{TR mayor|header=yes|caption=Mayor of Oldtown|place=[[Oldtown]]}}
{{TR mayor|period=1870-1880|mayor=[[Georg Müller]]|lifespan=1820-1880|party=}}
{{TR mayor}}
{{TR mayor|period=1885-1910|mayor=[[Jakob Müller]]|lifespan=1845-1910|party=JKL/MNO|note=father of Peter Müller
|ref=<ref>{{cite book |last= Mauch|first=Corine |date= 1949|title=Jakob Müller, mayor of Oldtime, father of the city |location= Oldtown}}</ref>}}
{{TR mayor|period=1910-1950|mayor=[[Peter Müller]]|lifespan=1870-1950|party=GHI|note=resigned 4 days before his death}}
{{TR mayor|period=1950-2012|mayor=[[Corine Mauch]]|lifespan=1920-2012|party=independent, until 1951: DEF/UVW}}
{{TR mayor|period=2012|mayor=[[Hans Meier]]|lifespan=born 1950|party=ABC/XYZ|sequence=1}}
{{TR mayor|period=2012|declined=yes|mayor=[[Peter Schweizer]]|lifespan=born 1940|party=independent}}
{{TR mayor|period=2013-present|mayor=[[Hans Meier]]|lifespan=born 1950|party=ABC/XYZ|sequence=2}}
{{TR mayor|footer=yes}}

{{reflist}}

Result:

Mayor of Oldtown
TermMayorLifespanPartyNotes
1870-1880 Georg Müller (1820-1880)
 
1885-1910 Jakob Müller (1845-1910)JKL/MNO[1] father of Peter Müller
1910-1950 Peter Müller (1870-1950)GHI resigned 4 days before his death
1950-2012 Corine Mauch (1920-2012)independent, until 1951: DEF/UVW
2012 (1st)Hans Meier (born 1950)ABC/XYZ
2012 (declined) Peter Schweizer (born 1940)independent
2013-present (2nd)Hans Meier (born 1950)ABC/XYZ
  1. Mauch, Corine (1949). Jakob Müller, mayor of Oldtime, father of the city. Oldtown. 


 

Blank:

{{TR mayor|header=yes|caption=|place=}}
{{TR mayor}}
{{TR mayor|period=|mayor=|lifespan=|party=}}
{{TR mayor|period=|mayor=|lifespan=|party=|note=|ref=}}
{{TR mayor|footer=yes}}


Result:

TermMayorLifespanPartyNotes