Template:Officeholder table: Difference between revisions
m (Protected "Template:Officeholder table": High-risk template or module (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite))) |
m (upd.) |
||
(One intermediate revision by one other user not shown) | |||
Line 9: | Line 9: | ||
-->{{#if:{{{alt_party|}}} | -->{{#if:{{{alt_party|}}} | ||
|<td style="text-align:center; font-weight:bold; background:{{#ifeq:{{{alt_party}}}|?|transparent|{{{{{alt_party}}} | |<td style="text-align:center; font-weight:bold; background:{{#ifeq:{{{alt_party}}}|?|transparent|{{#invoke:Political party|fetch|{{{alt_party}}}|color|error=transparent}}}}; {{#ifeq:{{{alt_party}}}|?|color:black|color:{{Greater color contrast ratio|{{#invoke:Political party|fetch|{{{alt_party}}}|color|error=white}}|black|white}}; }}"><!-- | ||
-->{{{order2| }}}<!-- | -->{{{order2| }}}<!-- | ||
--></td><!-- | --></td><!-- | ||
Line 22: | Line 22: | ||
--><td style="; background:{{#switch:{{{acting}}}|y=#E6E6AA|none}}"><!-- | --><td style="; background:{{#switch:{{{acting}}}|y=#E6E6AA|none}}"><!-- | ||
--><div style="width:{{{cWidth|}}}px;height:{{{cHeight|}}}px;overflow:hidden;position:relative"> | --><div style="width:{{{cWidth|}}}px;height:{{{cHeight|}}}px;overflow:hidden;position:relative"> | ||
<div style="position:relative;top:-{{{oTop|}}}px;left:-{{{oLeft|}}}px">[[File:{{if empty|{{{image|}}}|No image | <div style="position:relative;top:-{{{oTop|}}}px;left:-{{{oLeft|}}}px">[[File:{{if empty|{{{image|}}}|No image.png}}|{{Str number/trim|{{{bSize|100}}}}}px|{{{officeholder|}}}]]</div></div><!-- | ||
--></td><!-- | --></td><!-- | ||
Line 90: | Line 90: | ||
-->{{#if:{{{party|}}} | -->{{#if:{{{party|}}} | ||
|<td style="background:{{#ifeq:{{{party}}}|?|transparent|{{{{{party}}} | |<td style="background:{{#ifeq:{{{party}}}|?|transparent|{{#invoke:Political party|fetch|{{{party}}}|color|error=transparent}}}}"><!-- | ||
--> <!-- | --> <!-- | ||
--></td><!-- | --></td><!-- | ||
--><td style="text-align:center; background:{{#switch:{{{acting}}}|y=#E6E6AA|none}}"><!-- | --><td style="text-align:center; background:{{#switch:{{{acting}}}|y=#E6E6AA|none}}"><!-- | ||
-->{{#ifeq:{{{party}}}|?|?|[[{{{party}}}|{{{{{party}}} | -->{{#ifeq:{{{party}}}|?|?|[[{{{party}}}|{{#invoke:Political party|fetch|{{{party}}}|shortname}}]]}}<!-- | ||
-->{{#if:{{{party_entry|}}} | -->{{#if:{{{party_entry|}}} | ||
|<br/><small>(<!-- | |<br/><small>(<!-- | ||
Line 109: | Line 109: | ||
-->{{#if:{{{party2|}}} | -->{{#if:{{{party2|}}} | ||
|<br/>[[{{{party2}}}|{{{{{party2}}} | |<br/>[[{{{party2}}}|{{#invoke:Political party|fetch|{{{party2}}}|shortname}}]]<!-- | ||
-->{{#if:{{{party2_entry|}}} | -->{{#if:{{{party2_entry|}}} | ||
|<br/><small>(<!-- | |<br/><small>(<!-- | ||
Line 124: | Line 124: | ||
-->{{#if:{{{party3|}}} | -->{{#if:{{{party3|}}} | ||
|<br/>[[{{{party3}}}|{{{{{party3}}} | |<br/>[[{{{party3}}}|{{#invoke:Political party|fetch|{{{party3}}}|shortname}}]]<!-- | ||
-->{{#if:{{{party3_entry|}}} | -->{{#if:{{{party3_entry|}}} | ||
|<br/><small>(<!-- | |<br/><small>(<!-- | ||
Line 139: | Line 139: | ||
-->{{#if:{{{party4|}}} | -->{{#if:{{{party4|}}} | ||
|<br/>[[{{{party4}}}|{{{{{party4}}} | |<br/>[[{{{party4}}}|{{#invoke:Political party|fetch|{{{party4}}}|shortname}}]]<!-- | ||
-->{{#if:{{{party4_entry|}}} | -->{{#if:{{{party4_entry|}}} | ||
|<br/><small>(<!-- | |<br/><small>(<!-- | ||
Line 154: | Line 154: | ||
-->{{#if:{{{party5|}}} | -->{{#if:{{{party5|}}} | ||
|<br/>[[{{{party5}}}|{{{{{party5}}} | |<br/>[[{{{party5}}}|{{#invoke:Political party|fetch|{{{party5}}}|shortname}}]]<!-- | ||
-->{{#if:{{{party5_entry|}}} | -->{{#if:{{{party5_entry|}}} | ||
|<br/><small>(<!-- | |<br/><small>(<!-- | ||
Line 173: | Line 173: | ||
|<td style="text-align:center; background:{{#switch:{{{acting}}}|y=#E6E6AA|none}}"><!-- | |<td style="text-align:center; background:{{#switch:{{{acting}}}|y=#E6E6AA|none}}"><!-- | ||
-->{{#ifeq:{{{alt_party}}}|?|?|[[{{{alt_party}}}|{{{{{alt_party}}} | -->{{#ifeq:{{{alt_party}}}|?|?|[[{{{alt_party}}}|{{#invoke:Political party|fetch|{{{alt_party}}}|shortname}}]]}}<!-- | ||
-->{{#if:{{{alt_party_entry|}}} | -->{{#if:{{{alt_party_entry|}}} | ||
|<br/><small>(<!-- | |<br/><small>(<!-- | ||
Line 187: | Line 187: | ||
-->{{#if:{{{alt_party2|}}} | -->{{#if:{{{alt_party2|}}} | ||
|<br/>[[{{{alt_party2}}}|{{{{{alt_party2}}} | |<br/>[[{{{alt_party2}}}|{{#invoke:Political party|fetch|{{{alt_party2}}}|shortname}}]]<!-- | ||
-->{{#if:{{{alt_party2_entry|}}} | -->{{#if:{{{alt_party2_entry|}}} | ||
|<br/><small>(<!-- | |<br/><small>(<!-- | ||
Line 202: | Line 202: | ||
-->{{#if:{{{alt_party3|}}} | -->{{#if:{{{alt_party3|}}} | ||
|<br/>[[{{{alt_party3}}}|{{{{{alt_party3}}} | |<br/>[[{{{alt_party3}}}|{{#invoke:Political party|fetch|{{{alt_party3}}}|shortname}}]]<!-- | ||
-->{{#if:{{{alt_party3_entry|}}} | -->{{#if:{{{alt_party3_entry|}}} | ||
|<br/><small>(<!-- | |<br/><small>(<!-- | ||
Line 217: | Line 217: | ||
-->{{#if:{{{alt_party4|}}} | -->{{#if:{{{alt_party4|}}} | ||
|<br/>[[{{{alt_party4}}}|{{{{{alt_party4}}} | |<br/>[[{{{alt_party4}}}|{{#invoke:Political party|fetch|{{{alt_party4}}}|shortname}}]]<!-- | ||
-->{{#if:{{{alt_party4_entry|}}} | -->{{#if:{{{alt_party4_entry|}}} | ||
|<br/><small>(<!-- | |<br/><small>(<!-- | ||
Line 232: | Line 232: | ||
-->{{#if:{{{alt_party5|}}} | -->{{#if:{{{alt_party5|}}} | ||
|<br/>[[{{{alt_party5}}}|{{{{{alt_party5}}} | |<br/>[[{{{alt_party5}}}|{{#invoke:Political party|fetch|{{{alt_party5}}}|shortname}}]]<!-- | ||
-->{{#if:{{{alt_party5_entry|}}} | -->{{#if:{{{alt_party5_entry|}}} | ||
|<br/><small>(<!-- | |<br/><small>(<!-- | ||
Line 250: | Line 250: | ||
-->{{#if:{{{otherparty|}}} | -->{{#if:{{{otherparty|}}} | ||
|<td style="background:{{{{{otherparty}}} | |<td style="background:{{#invoke:Political party|fetch|{{{otherparty}}}|color}}"><!-- | ||
--> <!-- | --> <!-- | ||
--></td><!-- | --></td><!-- | ||
--><td style="text-align:center; background:{{#switch:{{{acting}}}|y=#E6E6AA|none}}"><!-- | --><td style="text-align:center; background:{{#switch:{{{acting}}}|y=#E6E6AA|none}}"><!-- | ||
-->[[{{{otherparty}}}|{{{{{otherparty}}} | -->[[{{{otherparty}}}|{{#invoke:Political party|fetch|{{{otherparty}}}|shortname}}]]<!-- | ||
-->{{#if:{{{otherparty_entry|}}} | -->{{#if:{{{otherparty_entry|}}} | ||
|<br/><small>(<!-- | |<br/><small>(<!-- | ||
Line 269: | Line 269: | ||
-->{{#if:{{{otherparty2|}}} | -->{{#if:{{{otherparty2|}}} | ||
|<br/>[[{{{otherparty2}}}|{{{{{alt2_party}}} | |<br/>[[{{{otherparty2}}}|{{#invoke:Political party|fetch|{{{alt2_party}}}|shortname}}]]<!-- | ||
-->{{#if:{{{otherparty2_entry|}}} | -->{{#if:{{{otherparty2_entry|}}} | ||
|<br/><small>(<!-- | |<br/><small>(<!-- | ||
Line 284: | Line 284: | ||
-->{{#if:{{{otherparty3|}}} | -->{{#if:{{{otherparty3|}}} | ||
|<br/>[[{{{otherparty3}}}|{{{{{otherparty3}}} | |<br/>[[{{{otherparty3}}}|{{#invoke:Political party|fetch|{{{otherparty3}}}|shortname}}]]<!-- | ||
-->{{#if:{{{otherparty3_entry|}}} | -->{{#if:{{{otherparty3_entry|}}} | ||
|<br/><small>(<!-- | |<br/><small>(<!-- | ||
Line 299: | Line 299: | ||
-->{{#if:{{{otherparty4|}}} | -->{{#if:{{{otherparty4|}}} | ||
|<br/>[[{{{otherparty4}}}|{{{{{otherparty4}}} | |<br/>[[{{{otherparty4}}}|{{#invoke:Political party|fetch|{{{otherparty4}}}|shortname}}]]<!-- | ||
-->{{#if:{{{otherparty4_entry|}}} | -->{{#if:{{{otherparty4_entry|}}} | ||
|<br/><small>(<!-- | |<br/><small>(<!-- | ||
Line 314: | Line 314: | ||
-->{{#if:{{{otherparty5|}}} | -->{{#if:{{{otherparty5|}}} | ||
|<br/>[[{{{otherparty5}}}|{{{{{otherparty5}}} | |<br/>[[{{{otherparty5}}}|{{#invoke:Political party|fetch|{{{otherparty5}}}|shortname}}]]<!-- | ||
-->{{#if:{{{otherparty5_entry|}}} | -->{{#if:{{{otherparty5_entry|}}} | ||
|<br/><small>(<!-- | |<br/><small>(<!-- | ||
Line 381: | Line 381: | ||
-->{{{alt_officeholder}}}<!-- | -->{{{alt_officeholder}}}<!-- | ||
-->{{#if:{{{alt_officeholder_party|}}} | -->{{#if:{{{alt_officeholder_party|}}} | ||
| ([[{{{alt_officeholder_party}}}|{{{{{alt_officeholder_party}}} | | ([[{{{alt_officeholder_party}}}|{{#invoke:Political party|fetch|{{{alt_officeholder_party}}}|abbrev}}]])<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#if:{{{alt_officeholder_term_start|}}} | -->{{#if:{{{alt_officeholder_term_start|}}} | ||
Line 395: | Line 395: | ||
|<br/>{{{alt_officeholder2|}}}<!-- | |<br/>{{{alt_officeholder2|}}}<!-- | ||
-->{{#if:{{{alt_officeholder2_party|}}} | -->{{#if:{{{alt_officeholder2_party|}}} | ||
| ([[{{{alt_officeholder2_party}}}|{{{{{alt_officeholder2_party}}} | | ([[{{{alt_officeholder2_party}}}|{{#invoke:Political party|fetch|{{{alt_officeholder2_party}}}|abbrev}}]])<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#if:{{{alt_officeholder2_term_start|}}} | -->{{#if:{{{alt_officeholder2_term_start|}}} | ||
Line 410: | Line 410: | ||
|<br/>{{{alt_officeholder3|}}}<!-- | |<br/>{{{alt_officeholder3|}}}<!-- | ||
-->{{#if:{{{alt_officeholder3_party|}}} | -->{{#if:{{{alt_officeholder3_party|}}} | ||
| ([[{{{alt_officeholder3_party}}}|{{{{{alt_officeholder3_party}}} | | ([[{{{alt_officeholder3_party}}}|{{#invoke:Political party|fetch|{{{alt_officeholder3_party}}}|abbrev}}]])<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#if:{{{alt_officeholder3_term_start|}}} | -->{{#if:{{{alt_officeholder3_term_start|}}} | ||
Line 425: | Line 425: | ||
|<br/>{{{alt_officeholder4|}}}<!-- | |<br/>{{{alt_officeholder4|}}}<!-- | ||
-->{{#if:{{{alt_officeholder4_party|}}} | -->{{#if:{{{alt_officeholder4_party|}}} | ||
| ([[{{{alt_officeholder4_party}}}|{{{{{alt_officeholder4_party}}} | | ([[{{{alt_officeholder4_party}}}|{{#invoke:Political party|fetch|{{{alt_officeholder4_party}}}|abbrev}}]])<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#if:{{{alt_officeholder4_term_start|}}} | -->{{#if:{{{alt_officeholder4_term_start|}}} | ||
Line 440: | Line 440: | ||
|<br/>{{{alt_officeholder5|}}}<!-- | |<br/>{{{alt_officeholder5|}}}<!-- | ||
-->{{#if:{{{alt_officeholder5_party|}}} | -->{{#if:{{{alt_officeholder5_party|}}} | ||
| ([[{{{alt_officeholder5_party}}}|{{{{{alt_officeholder5_party}}} | | ([[{{{alt_officeholder5_party}}}|{{#invoke:Political party|fetch|{{{alt_officeholder5_party}}}|abbrev}}]])<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#if:{{{alt_officeholder5_term_start|}}} | -->{{#if:{{{alt_officeholder5_term_start|}}} |
Latest revision as of 22:48, 30 January 2024
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 | |
image_title
|
Headline for image. It is used with the parameter showimage = y .
|
Portrait | empty |
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 | |
showcoalition = y
|
Creates a column for the parties in a coalition government. It can be used in lists of heads of government. | not displayed | |
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 = | defence_branch_title = | showpreviousoffice = | showaltofficeholder = | alt_officeholder_title = | showcabinet = | cabinet_title = | showref = }} {{Officeholder table | order = | seat = | image = |bSize = |cWidth = |cHeight = |oTop = |oLeft = | military_rank = | officeholder = | officeholder_sort = | 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 = | coalition = | coalition_term_start = | coalition_term_end = | coalition2 = | coalition2_term_start = | coalition2_term_end = | coalition3 = | coalition3_term_start = | coalition3_term_end = | coalition4 = | coalition4_term_start = | coalition4_term_end = | coalition5 = | coalition5_term_start = | coalition5_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
Minister
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|bSize = 100px|cWidth = 100|cHeight = 125|oTop = 7|oLeft = 0 | officeholder_sort = Ask, Beatrice | born_year = 1956 | term_start = {{Start date|2006|10|6}} | term_end = {{Start date|2014|10|3}} | timeinoffice = {{Age in years and days|2006|10|6|2014|10|3}} | party = Moderate Party | alt_officeholder = [[Fredrik Reinfeldt]] | alt_officeholder_sort = Reinfeldt, Fredrik | alt_officeholder_party = Moderate Party }} {{Officeholder table end}}
No. | Portrait | Minister of Justice | Took office | Left office | Time in office | Party | Prime Minister | |
---|---|---|---|---|---|---|---|---|
– | Anna-Greta Leijon (born 1939) Acting | November 11, 1983 | November 15, 1983 | 5 days | Social Democrats | Olof Palme (S/SAP) | ||
39 | Beatrice Ask (born 1956) | October 6, 2006 | October 3, 2014 | 7 years, 362 days | Moderate | Fredrik Reinfeldt (M) |
Prime Minister
An other example of a political list is the use of the template {{Officeholder table coalition}}, and the parameter order2 = y
with political party. The following list show persons, who has served as Prime Minister of Denmark.
{{Officeholder table start | showorder = y | showimage = y | officeholder_title = Prime Minister | showtermlenght = y | showelection = y | showcoalition = y | showcabinet = y | party_col = 1 }} {{Officeholder table | order2 = 40 | image = Lars Løkke Rasmussen - 2009.jpg | officeholder = [[Lars Løkke Rasmussen]] | officeholder_sort = Rasmussen, Lars Løkke | born_year = 1964 | term_start = 5 April 2009 | term_end = 3 October 2011 | timeinoffice = {{age in years and days|2009|4|5|2011|10|3}} | alt_party = Venstre (Denmark) | election = — | cabinet = [[Lars Løkke Rasmussen I Cabinet|L.L. Rasmussen]] | coalition = {{Officeholder table coalition | party = Venstre (Denmark) | party2 = Conservative People's Party (Denmark) }} }} {{Officeholder table | order2 = 41 | image = Helle Thorning-Schmidt portrait.jpg | officeholder = [[Helle Thorning-Schmidt]] | officeholder_sort = Thorning-Schmidt, Helle | born_year = 1966 | term_start = 3 October 2011 | timeinoffice = {{age in years and days|2011|10|3}} | alt_party = Social Democrats (Denmark) | election = [[Danish general election, 2011|2011]] | cabinet = [[Helle Thorning-Schmidt I Cabinet|Thorning-Schmidt I]] | coalition = {{Officeholder table coalition | party = Social Democrats (Denmark) | party2 = Danish Social Liberal Party | party3 = Socialist People's Party (Denmark) }} | coalition_term_start = 2011 | coalition_term_end = 2014 | cabinet2 = [[Helle Thorning-Schmidt II Cabinet|Thorning-Schmidt II]] | coalition2 = {{Officeholder table coalition | party = Social Democrats (Denmark) | party2 = Danish Social Liberal Party }} | coalition2_term_start = 2014 }} {{Officeholder table end}}
No. | Portrait | Prime Minister | Took office | Left office | Time in office | Party | Election | Coalition | Cabinet |
---|---|---|---|---|---|---|---|---|---|
40 | Lars Løkke Rasmussen (born 1964) | 5 April 2009 | 3 October 2011 | 2 years, 181 days | Venstre | — | Template:Officeholder table coalition | L.L. Rasmussen I | |
41 | Helle Thorning-Schmidt (born 1966) | 3 October 2011 | 28 June 2015 | 3 years, 268 days | Social Democrats | 2011 | Template:Officeholder table coalition (2011 – 2014) Template:Officeholder table coalition (since 2014) | Thorning-Schmidt I Thorning-Schmidt II |