Template:Officeholder table

{{#if:{{{order|}}}

|{{{order}}}}}{{#if:{{{alt_party|}}}

|{{{order2| }}}}}{{#if:{{{seat|}}}

|{{{seat}}}}}

{{#if:{{{officeholder_sort|}}}

|{{{officeholder_sort}}}}}{{#if:{{{military_rank|}}}

|{{{military_rank}}}
}}{{{officeholder}}}{{#if:{{{officeholder_altname|}}}

|
({{{officeholder_altname}}})}}{{#if:{{{born_year|}}}

|
({{#if:{{{died_year|}}}

|{{{born_year}}}–{{{died_year|}}}

|born {{{born_year}}}}})}}{{#ifeq:{{{acting}}}

|y

|
Acting}}{{#if:{{{substitute|}}}

|
(substituted by {{{substitute}}})}}{{#if:{{{officeholder_note|}}}

|
{{{officeholder_note}}}}}{{#if:{{{title|}}}

|{{{title}}}}}{{#if:{{{home|}}}

|{{{home}}}}}{{#if:{{{term_start|}}}

|{{{term_start}}}{{{term_end|Incumbent}}}{{#ifeq:{{{died}}}

|y

| †}}}}{{#if:{{{timeinoffice|}}}

|{{{timeinoffice}}}}}{{#if:{{{party|}}}

| {{#ifeq:{{{party}}}|?|?|{{{party}}}}}{{#if:{{{party_entry|}}}

|
({{#if:{{{party_exit|}}}

|{{{party_entry}}} – {{{party_exit}}}

|since {{{party_entry}}}}})}}{{#if:{{{party_note|}}}

|{{{party_note}}}}}{{#if:{{{party2|}}}

|
{{{party2}}}{{#if:{{{party2_entry|}}}

|
({{#if:{{{party2_exit|}}}

|{{{party2_entry}}} – {{{party2_exit}}}

|since {{{party2_entry}}}}})}}{{#if:{{{party2_note|}}}

|{{{party2_note}}}}}}}{{#if:{{{party3|}}}

|
{{{party3}}}{{#if:{{{party3_entry|}}}

|
({{#if:{{{party3_exit|}}}

|{{{party3_entry}}} – {{{party3_exit}}}

|since {{{party3_entry}}}}})}}{{#if:{{{party3_note|}}}

|{{{party3_note}}}}}}}{{#if:{{{party4|}}}

|
{{{party4}}}{{#if:{{{party4_entry|}}}

|
({{#if:{{{party4_exit|}}}

|{{{party4_entry}}} – {{{party4_exit}}}

|since {{{party4_entry}}}}})}}{{#if:{{{party4_note|}}}

|{{{party4_note}}}}}}}{{#if:{{{party5|}}}

|
{{{party5}}}{{#if:{{{party5_entry|}}}

|
({{#if:{{{party5_exit|}}}

|{{{party5_entry}}} – {{{party5_exit}}}

|since {{{party5_entry}}}}})}}{{#if:{{{party5_note|}}}

|{{{party5_note}}}}}}}}}{{#if:{{{alt_party|}}}

|{{#ifeq:{{{alt_party}}}|?|?|{{{alt_party}}}}}{{#if:{{{alt_party_entry|}}}

|
({{#if:{{{alt_party_exit|}}}

|{{{alt_party_entry}}} – {{{alt_party_exit}}}

|since {{{alt_party_entry}}}}})}}{{#if:{{{alt_party_note|}}}

|{{{alt_party_note}}}}}{{#if:{{{alt_party2|}}}

|
{{{alt_party2}}}{{#if:{{{alt_party2_entry|}}}

|
({{#if:{{{alt_party2_exit|}}}

|{{{alt_party2_entry}}} – {{{alt_party2_exit}}}

|since {{{alt_party2_entry}}}}})}}{{#if:{{{alt_party2_note|}}}

|{{{alt_party2_note}}}}}}}{{#if:{{{alt_party3|}}}

|
{{{alt_party3}}}{{#if:{{{alt_party3_entry|}}}

|
({{#if:{{{alt_party3_exit|}}}

|{{{alt_party3_entry}}} – {{{alt_party3_exit}}}

|since {{{alt_party3_entry}}}}})}}{{#if:{{{alt_party3_note|}}}

|{{{alt_party3_note}}}}}}}{{#if:{{{alt_party4|}}}

|
{{{alt_party4}}}{{#if:{{{alt_party4_entry|}}}

|
({{#if:{{{alt_party4_exit|}}}

|{{{alt_party4_entry}}} – {{{alt_party4_exit}}}

|since {{{alt_party4_entry}}}}})}}{{#if:{{{alt_party4_note|}}}

|{{{alt_party4_note}}}}}}}{{#if:{{{alt_party5|}}}

|
{{{alt_party5}}}{{#if:{{{alt_party5_entry|}}}

|
({{#if:{{{alt_party5_exit|}}}

|{{{alt_party5_entry}}} – {{{alt_party5_exit}}}

|since {{{alt_party5_entry}}}}})}}{{#if:{{{alt_party5_note|}}}

|{{{alt_party5_note}}}}}}}}}{{#if:{{{otherparty|}}}

| {{{otherparty}}}{{#if:{{{otherparty_entry|}}}

|
({{#if:{{{otherparty_exit|}}}

|{{{otherparty_entry}}} – {{{otherparty_exit}}}

|since {{{otherparty_entry}}}}})}}{{#if:{{{otherparty_not|}}}

|{{{otherparty_note}}}}}{{#if:{{{otherparty2|}}}

|
{{{otherparty2}}}{{#if:{{{otherparty2_entry|}}}

|
({{#if:{{{otherparty2_exit|}}}

|{{{otherparty2_entry}}} – {{{otherparty2_exit}}}

|since {{{otherparty2_entry}}}}})}}{{#if:{{{otherparty2_not|}}}

|{{{otherparty2_note}}}}}}}{{#if:{{{otherparty3|}}}

|
{{{otherparty3}}}{{#if:{{{otherparty3_entry|}}}

|
({{#if:{{{otherparty3_exit|}}}

|{{{otherparty3_entry}}} – {{{otherparty3_exit}}}

|since {{{otherparty3_entry}}}}})}}{{#if:{{{otherparty3_note|}}}

|{{{otherparty3_note}}}}}}}{{#if:{{{otherparty4|}}}

|
{{{otherparty4}}}{{#if:{{{otherparty4_entry|}}}

|
({{#if:{{{otherparty4_exit|}}}

|{{{otherparty4_entry}}} – {{{otherparty4_exit}}}

|since {{{otherparty4_entry}}}}})}}{{#if:{{{otherparty4_note|}}}

|{{{otherparty4_note}}}}}}}{{#if:{{{otherparty5|}}}

|
{{{otherparty5}}}{{#if:{{{otherparty5_entry|}}}

|
({{#if:{{{otherparty5_exit|}}}

|{{{otherparty5_entry}}} – {{{otherparty5_exit}}}

|since {{{otherparty5_entry}}}}})}}{{#if:{{{otherparty5_note|}}}

|{{{otherparty5_note}}}}}}}}}{{#if:{{{election|}}}

|{{{election}}}{{#if:{{{election2|}}}

|
{{{election2}}}}}{{#if:{{{election3|}}}

|
{{{election3}}}}}{{#if:{{{election4|}}}

|
{{{election4}}}}}{{#if:{{{election5|}}}

|
{{{election5}}}}}}}{{#if:{{{constituency|}}}

|{{{constituency}}}}}{{#if:{{{defence_branch|}}}

|{{{defence_branch}}}}}{{#if:{{{previous_office|}}}

|{{{previous_office}}}}}{{#if:{{{alt_officeholder|}}}

|{{#if:{{{alt_officeholder_sort|}}}

|{{{alt_officeholder_sort}}}}}{{{alt_officeholder}}}{{#if:{{{alt_officeholder_party|}}}

| ({{{alt_officeholder_party}}})}}{{#if:{{{alt_officeholder_term_start|}}}

|
({{#if:{{{alt_officeholder_term_end|}}}

|{{{alt_officeholder_term_start}}} – {{{alt_officeholder_term_end}}}

|since {{{alt_officeholder_term_start}}}}})}}{{#if:{{{alt_officeholder2|}}}

|
{{{alt_officeholder2|}}}{{#if:{{{alt_officeholder2_party|}}}

| ({{{alt_officeholder2_party}}})}}{{#if:{{{alt_officeholder2_term_start|}}}

|
({{#if:{{{alt_officeholder2_term_end|}}}

|{{{alt_officeholder2_term_start}}} – {{{alt_officeholder2_term_end}}}

|since {{{alt_officeholder2_term_start}}}}})}}}}{{#if:{{{alt_officeholder3|}}}

|
{{{alt_officeholder3|}}}{{#if:{{{alt_officeholder3_party|}}}

| ({{{alt_officeholder3_party}}})}}{{#if:{{{alt_officeholder3_term_start|}}}

|
({{#if:{{{alt_officeholder3_term_end|}}}

|{{{alt_officeholder3_term_start}}} – {{{alt_officeholder3_term_end}}}

|since {{{alt_officeholder3_term_start}}}}})}}}}{{#if:{{{alt_officeholder4|}}}

|
{{{alt_officeholder4|}}}{{#if:{{{alt_officeholder4_party|}}}

| ({{{alt_officeholder4_party}}})}}{{#if:{{{alt_officeholder4_term_start|}}}

|
({{#if:{{{alt_officeholder4_term_end|}}}

|{{{alt_officeholder4_term_start}}} – {{{alt_officeholder4_term_end}}}

|since {{{alt_officeholder4_term_start}}}}})}}}}{{#if:{{{alt_officeholder5|}}}

|
{{{alt_officeholder5|}}}{{#if:{{{alt_officeholder5_party|}}}

| ({{{alt_officeholder5_party}}})}}{{#if:{{{alt_officeholder5_term_start|}}}

|
({{#if:{{{alt_officeholder5_term_end|}}}

|{{{alt_officeholder5_term_start}}} – {{{alt_officeholder5_term_end}}}

|since {{{alt_officeholder5_term_start}}}}})}}}}}}{{#if:{{{coalition|}}}

|{{{coalition}}}{{#if:{{{coalition_term_start|}}}

|
({{#if:{{{coalition_term_end|}}}

|{{{coalition_term_start}}} – {{{coalition_term_end}}}

|since {{{coalition_term_start}}}}})}}{{#if:{{{coalition2|}}}

|
{{{coalition2}}}{{#if:{{{coalition2_term_start|}}}

|
({{#if:{{{coalition2_term_end|}}}

|{{{coalition2_term_start}}} – {{{coalition2_term_end}}}

|since {{{coalition2_term_start}}}}})}}}}{{#if:{{{coalition3|}}}

|
{{{coalition3}}}{{#if:{{{coalition3_term_start|}}}

|
({{#if:{{{coalition3_term_end|}}}

|{{{coalition3_term_start}}} – {{{coalition3_term_end}}}

|since {{{coalition3_term_start}}}}})}}}}{{#if:{{{coalition4|}}}

|
{{{coalition4}}}{{#if:{{{coalition4_term_start|}}}

|
({{#if:{{{coalition4_term_end|}}}

|{{{coalition4_term_start}}} – {{{coalition4_term_end}}}

|since {{{coalition4_term_start}}}}})}}}}{{#if:{{{coalition5|}}}

|
{{{coalition5}}}{{#if:{{{coalition5_term_start|}}}

|
({{#if:{{{coalition5_term_end|}}}

|{{{coalition5_term_start}}} – {{{coalition5_term_end}}}

|since {{{coalition5_term_start}}}}})}}}}}}{{#if:{{{cabinet|}}}

|{{{cabinet}}}{{#if:{{{cabinet_term_start|}}}

|
({{#if:{{{cabinet_term_end|}}}

|{{{cabinet_term_start}}} – {{{cabinet_term_end}}}

|since {{{cabinet_term_start}}}}})}}{{#if:{{{cabinet2|}}}

|
{{{cabinet2}}}{{#if:{{{cabinet2_term_start|}}}

|
({{#if:{{{cabinet2_term_end|}}}

|{{{cabinet2_term_start}}} – {{{cabinet2_term_end}}}

|since {{{cabinet2_term_start}}}}})}}}}{{#if:{{{cabinet3|}}}

|
{{{cabinet3}}}{{#if:{{{cabinet3_term_start|}}}

|
({{#if:{{{cabinet3_term_end|}}}

|{{{cabinet3_term_start}}} – {{{cabinet3_term_end}}}

|since {{{cabinet3_term_start}}}}})}}}}{{#if:{{{cabinet4|}}}

|
{{{cabinet4}}}{{#if:{{{cabinet4_term_start|}}}

|
({{#if:{{{cabinet4_term_end|}}}

|{{{cabinet4_term_start}}} – {{{cabinet4_term_end}}}

|since {{{cabinet4_term_start}}}}})}}}}{{#if:{{{cabinet5|}}}

|
{{{cabinet5}}}{{#if:{{{cabinet5_term_start|}}}

|
({{#if:{{{cabinet5_term_end|}}}

|{{{cabinet5_term_start}}} – {{{cabinet5_term_end}}}

|since {{{cabinet5_term_start}}}}})}}}}}}{{#if:{{{ref|}}}

|{{{ref}}}}}{{documentation}}