Template:MP-terms-cargo

From PoliticalSG
Revision as of 23:57, 15 May 2026 by 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-...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

party_id and constituency_id must reference valid entries in their respective tables.

Usage — regular MP: This template defines the table "mp_terms". View table.

Usage — NMP: This template defines the table "mp_terms". View table.