Template:MP-appointments-cargo: Difference between revisions
SGPolitico (talk | contribs) (Created page with "{{#cargo_declare:_table=mp_appointments |appointment_id=String |mp_id=String |role_title=String |ministry_id=String |start_date=Date |end_date=Date |parliament_no=Integer |verified=String |last_updated=Date }}<noinclude> Stores one appointment per instance. An MP with multiple roles gets multiple instances of this template. appointment_id format: mp_id + role + ministry + year e.g. baey-yam-keng-sps-mot-2018 Leave ministry_id blank for parliamentary roles. ministry_id...") |
SGPolitico (talk | contribs) No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{#cargo_declare:_table=mp_appointments | <noinclude>{{#cargo_declare:_table=mp_appointments | ||
|appointment_id=String | |appointment_id=String | ||
|mp_id=String | |mp_id=String | ||
| Line 9: | Line 9: | ||
|verified=String | |verified=String | ||
|last_updated=Date | |last_updated=Date | ||
}}<noinclude> | }}</noinclude><includeonly>{{#cargo_store:_table=mp_appointments | ||
|appointment_id={{{appointment_id|}}} | |||
|mp_id={{{mp_id|}}} | |||
|role_title={{{role_title|}}} | |||
|ministry_id={{{ministry_id|}}} | |||
|start_date={{{start_date|}}} | |||
|end_date={{{end_date|}}} | |||
|parliament_no={{{parliament_no|}}} | |||
|verified={{{verified|}}} | |||
|last_updated={{{last_updated|}}} | |||
}}</includeonly> | |||
<noinclude> | |||
Stores one appointment per instance. | Stores one appointment per instance. | ||
An MP with multiple roles gets multiple instances of this template. | An MP with multiple roles gets multiple instances | ||
of this template, one per appointment. | |||
appointment_id format: mp_id + role + | appointment_id format: mp_id + role + ministry_id + start_year | ||
e.g. lawrence-wong-minister-mof-2021 | |||
e.g. pritam-singh-leader-of-opposition-2020 | |||
e.g. baey-yam-keng-sps-mot-2018 | e.g. baey-yam-keng-sps-mot-2018 | ||
Leave ministry_id blank for parliamentary roles. | Leave ministry_id blank for parliamentary roles. | ||
Valid role_title values: | Valid role_title values: | ||
Executive: | Cabinet and Executive: | ||
Prime Minister | Prime Minister | ||
Deputy Prime Minister | Deputy Prime Minister | ||
| Line 27: | Line 40: | ||
Coordinating Minister | Coordinating Minister | ||
Minister | Minister | ||
Acting Minister | |||
Second Minister | |||
Senior Minister of State | |||
Minister of State | Minister of State | ||
Senior Parliamentary Secretary | Senior Parliamentary Secretary | ||
| Line 39: | Line 55: | ||
Government Whip | Government Whip | ||
Usage — cabinet appointment: | |||
Usage — | |||
{{MP-appointments-cargo | {{MP-appointments-cargo | ||
|appointment_id= | |appointment_id=lawrence-wong-minister-mof-2021 | ||
|mp_id= | |mp_id=lawrence-wong | ||
|role_title= | |role_title=Minister | ||
|ministry_id= | |ministry_id=mof | ||
|start_date= | |start_date=2021-05-15 | ||
|end_date= | |end_date=2024-05-15 | ||
|parliament_no=14 | |parliament_no=14 | ||
|verified=yes | |verified=yes | ||
|last_updated=2026-05-16 | |last_updated=2026-05-16 | ||
}} | }} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 08:58, 16 May 2026
This template defines the table "mp_appointments". View table.
Stores one appointment per instance. An MP with multiple roles gets multiple instances of this template, one per appointment.
appointment_id format: mp_id + role + ministry_id + start_year e.g. lawrence-wong-minister-mof-2021 e.g. pritam-singh-leader-of-opposition-2020 e.g. baey-yam-keng-sps-mot-2018
Leave ministry_id blank for parliamentary roles.
Valid role_title values:
Cabinet and Executive: Prime Minister Deputy Prime Minister Senior Minister Coordinating Minister Minister Acting Minister Second Minister Senior Minister of State Minister of State Senior Parliamentary Secretary Parliamentary Secretary
Parliamentary: Speaker Deputy Speaker Leader of the House Deputy Leader of the House Leader of Opposition Government Whip
Usage — cabinet appointment: