Template:Officeholder table/doc
40px | This is a documentation subpage for Template:Officeholder table. It contains usage information, categories and other content that is not part of the original template page. |
The following templates, {{Officeholder table start}}, {{Officeholder table}} and {{Officeholder table end}} can be used to create a uniform lists in a table format across different types of executives (e.g. politicians, military officers, government officials and others).
Parameters
Officeholder table start
Parameter | Description | Example | Default value |
---|---|---|---|
showorder = y
|
Creates a column for numbering the persons who is displayed in the list. | not displayed | |
showseat = y
|
Creates a column for seat numbers. This parameter can be used in the lists of members of legislative Assemblies. | not displayed | |
showimage = y
|
Creates a column for portrait photos. | not displayed | |
officeholder_title
|
Title of the position of the list relates to. | Minister of Finance | Name |
showtitle = y
|
Creates the column title. It can be used in lists where different officeholders had different titles. | not displayed | |
showtermstart = n
|
Hides the column for the start of the term of service. | displayed | |
showtermend = n
|
Hides the column for the end of the term of service. | displayed | |
showtimeinoffice = y
|
Creates the column time in office. | not displayed | |
showparty = n
|
Hides the column for political party. | displayed | |
showotherparty = y
|
Displays a column for alternative party. | not displayed | |
otherparty_title
|
Title for the column alternative party. It is used with the parameter showotherparty = y .
|
not displayed | |
showelection = y
|
Creates column for elections. It can be used in lists of officeholders that are elected to the position. | not displayed | |
election_title
|
Headline for election. It is used with the parameter showelection = y .
|
Presidential election | Election |
showconstituency = y
|
Creates the column constituency. It can be used in the lists of members of legislative Assemblies. | not displayed | |
showdefencebranch = y
|
Creates a column for military branches. It can be used in lists of military officers. | not displayed | |
showpreviousoffice = y
|
Creates a column for the previous office of the listed person. | not displayed | |
defence_branch_title = y
|
Headline for the column military branch. It is used with the parameter showdefencebranch = y .
|
Defence branch | Defence branch |
showaltofficeholder = y
|
Creates a column for alternative officeholders (e.g. head of government or deputy). | not displayed | |
alt_officeholder_title
|
Headline for the column alternative officeholder. It is used with the parameter showaltofficeholder = y .
|
Vice President | |
showcabinet = y
|
Creates a column for cabinets. | not displayed | |
showref = y
|
Creates a column for citing sources. | not displayed |
Usage
The template {{Officeholder table start}} create table headers and is added into the top of the table. Then put in a {{Officeholder table}} for each new officeholders in chronological order, with the first one in the top. The template {{Officeholder table end}} completes the table and are placed at the bottom of the table.
{{Officeholder table start | showorder = | showseat = | showimage = | officeholder_title = | showtitle = | showtermstart = | showtermend = | showparty = | showotherparty = | otherparty_title = | showelection = | election_title = | showconstituency = | showtermlenght = | showdefencebranch = | showpreviousoffice = | defence_branch_title = | showaltofficeholder = | alt_officeholder_title = | showcabinet = | cabinet_title = | showref = }} {{Officeholder table | order = | seat = | image = |bSize = |cWidth = |cHeight = |oTop = |oLeft = | officeholder = | officeholder_sort = | military_rank = | officeholder_altname = | officeholder_note = | acting = y | born_year = | died_year = | substitute = | title = | term_start = | term_end = | timeinoffice = | died = y | party = | party_entry = | party_exit = | party_note = | party2 = | party2_entry = | party2_exit = | party2_note = | party3 = | party3_entry = | party3_exit = | party3_note = | party4 = | party4_entry = | party4_exit = | party4_note = | party5 = | party5_entry = | party5_exit = | party5_note = | otherparty = | otherparty_entry = | otherparty_exit = | otherparty_note = | otherparty2 = | otherparty2_entry = | otherparty2_exit = | otherparty2_note = | otherparty3 = | otherparty3_entry = | otherparty3_exit = | otherparty3_note = | otherparty4 = | otherparty4_entry = | otherparty4_exit = | otherparty4_note = | otherparty5 = | otherparty5_entry = | otherparty5_exit = | otherparty5_note = | election = | election2 = | election3 = | election4 = | election5 = | constituency = | defence_branch = | previous_office = | alt_officeholder = | alt_officeholder_sort = | alt_officeholder_party = | alt_officeholder_term_start = | alt_officeholder_term_end = | alt_officeholder2 = | alt_officeholder2_party = | alt_officeholder2_term_start = | alt_officeholder2_term_end = | alt_officeholder3 = | alt_officeholder3_party = | alt_officeholder3_term_start = | alt_officeholder3_term_end = | alt_officeholder4 = | alt_officeholder4_party = | alt_officeholder4_term_start = | alt_officeholder4_term_end = | alt_officeholder5 = | alt_officeholder5_party = | alt_officeholder5_term_start = | alt_officeholder5_term_end = | cabinet = | cabinet_term_start = | cabinet_term_end = | cabinet2 = | cabinet2_term_start = | cabinet2_term_end = | cabinet3 = | cabinet3_term_start = | cabinet3_term_end = | cabinet4 = | cabinet4_term_start = | cabinet4_term_end = | cabinet5 = | cabinet5_term_start = | cabinet5_term_end = | ref = }} {{Officeholder table end}} |
Examples
Political lists
The following example show a people, who has served as the Minister of Justice of Sweden. One shows a how the regular table looks like, while the other shows how it looks like when the person served as an acting minister.
{{Officeholder table start | showorder = y | showimage = y | showtermlenght = y | showaltofficeholder = y | alt_officeholder_title = [[Prime Minister of Sweden|Prime Minister]] | officeholder_title = Minister of Justice }} {{Officeholder table | order = – | officeholder = [[Anna-Greta Leijon]] | image = Anna-Greta Leijon.JPG | officeholder_sort = Leijon, Anna-Greta | born_year = 1939 | term_start = {{Start date|1983|11|11}} | term_end = {{Start date|1983|11|15}} | timeinoffice = {{Age in years and days|1983|11|10|1983|11|15}} | party = Swedish Social Democratic Party | alt_officeholder = [[Olof Palme]] | alt_officeholder_sort = Palme, Olof | alt_officeholder_party = Swedish Social Democratic Party | acting = y }} {{Officeholder table | order = 39 | officeholder = [[Beatrice Ask]] | image = Beatrice Ask 1c310 7102.jpg | officeholder_sort = Ask, Beatrice | born_year = 1956 | term_start = {{Start date|2006|10|6}} | timeinoffice = {{Age in years and days|2006|10|6}} | party = Moderate Party | alt_officeholder = [[Fredrik Reinfeldt]] | alt_officeholder_sort = Reinfeldt, Fredrik | alt_officeholder_party = Moderate Party }} {{Officeholder table end}}
# | Minister of Justice | Took office | Left office | Time in office | Party | Prime Minister | ||
---|---|---|---|---|---|---|---|---|
– | Anna-Greta Leijon (Acting) (born 1939) | നവംബർ 11, 1983 | നവംബർ 15, 1983 | 0 years, 5 days | Social Democratic | Olof Palme (S) | ||
39 | Beatrice Ask (born 1956) | ഒക്ടോബർ 6, 2006 | Incumbent | 18 years, 47 days | Moderate | Fredrik Reinfeldt (M) |