Template:MP-terms-cargo: Difference between revisions
SGPolitico (talk | contribs) (Created page with "{{#cargo_declare:_table=mp_terms |term_id=String |mp_id=String |parliament_no=Integer |constituency_id=String |ward=String |party_id=String |elected_date=Date |dissolved_date=Date |election_type=String |role_in_parliament=String |verified=String |last_updated=Date }}<noinclude> Stores one parliamentary term per instance. An MP who served across three parliaments gets three instances of this template on their page. term_id format: mp_id + parliament number e.g. baey-yam-...") |
SGPolitico (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
{{#cargo_declare:_table=mp_terms | <noinclude>{{#cargo_declare:_table=mp_terms | ||
|term_id=String | |term_id=String | ||
|mp_id=String | |mp_id=String | ||
| Line 12: | Line 12: | ||
|verified=String | |verified=String | ||
|last_updated=Date | |last_updated=Date | ||
}}<noinclude> | }}</noinclude><includeonly>{{#cargo_store:_table=mp_terms | ||
|term_id={{{term_id|}}} | |||
|mp_id={{{mp_id|}}} | |||
|parliament_no={{{parliament_no|}}} | |||
|constituency_id={{{constituency_id|}}} | |||
|ward={{{ward|}}} | |||
|party_id={{{party_id|}}} | |||
|elected_date={{{elected_date|}}} | |||
|dissolved_date={{{dissolved_date|}}} | |||
|election_type={{{election_type|}}} | |||
|role_in_parliament={{{role_in_parliament|}}} | |||
|verified={{{verified|}}} | |||
|last_updated={{{last_updated|}}} | |||
}}</includeonly> | |||
<noinclude> | |||
Stores one parliamentary term per instance. | Stores one parliamentary term per instance. | ||
An MP who served across three parliaments gets | An MP who served across three parliaments gets | ||
| Line 36: | Line 50: | ||
Valid election_type values: GE / by-election | Valid election_type values: GE / by-election | ||
Valid role_in_parliament values: MP / NCMP / NMP | Valid role_in_parliament values: MP / NCMP / NMP | ||
Usage — regular MP: | Usage — regular MP: | ||
| Line 55: | Line 66: | ||
|last_updated=2026-05-16 | |last_updated=2026-05-16 | ||
}} | }} | ||
</noinclude> | |||
</noinclude> | |||
Latest revision as of 08:57, 16 May 2026
This template defines the table "mp_terms". View table.
Stores one parliamentary term per instance. An MP who served across three parliaments gets three instances of this template on their page.
term_id format: mp_id + parliament number e.g. baey-yam-keng-p13, baey-yam-keng-p14
NMP rules: constituency_id = leave blank ward = leave blank elected_date = leave blank election_type = leave blank role_in_parliament = NMP
NCMP rules: constituency_id = constituency they contested ward = leave blank elected_date = GE date they contested election_type = GE role_in_parliament = NCMP
Valid election_type values: GE / by-election Valid role_in_parliament values: MP / NCMP / NMP
Usage — regular MP: