Template:Constituency-changes-cargo: Difference between revisions

From PoliticalSG
(Created page with "{{#cargo_declare:_table=constituency_changes |change_id=String |constituency_id=String |election_year=String |change_type=String |seats_before=Integer |seats_after=Integer |electors=Integer |electors_per_seat=Integer |eld_report_year=String |predecessor_ids=String |successor_ids=String |editorial_notes=String |verified=String |last_updated=Date }}<noinclude> Stores one change event per instance. A constituency with multiple changes across elections gets multiple instance...")
 
No edit summary
 
Line 1: Line 1:
{{#cargo_declare:_table=constituency_changes
<noinclude>{{#cargo_declare:_table=constituency_changes
|change_id=String
|change_id=String
|constituency_id=String
|constituency_id=String
Line 14: Line 14:
|verified=String
|verified=String
|last_updated=Date
|last_updated=Date
}}<noinclude>
}}</noinclude><includeonly>{{#cargo_store:_table=constituency_changes
Stores one change event per instance.
|change_id={{{change_id|}}}
|constituency_id={{{constituency_id|}}}
|election_year={{{election_year|}}}
|change_type={{{change_type|}}}
|seats_before={{{seats_before|}}}
|seats_after={{{seats_after|}}}
|electors={{{electors|}}}
|electors_per_seat={{{electors_per_seat|}}}
|eld_report_year={{{eld_report_year|}}}
|predecessor_ids={{{predecessor_ids|}}}
|successor_ids={{{successor_ids|}}}
|editorial_notes={{{editorial_notes|}}}
|verified={{{verified|}}}
|last_updated={{{last_updated|}}}
}}</includeonly>
<noinclude>
Stores one constituency change event per instance.
A constituency with multiple changes across elections
A constituency with multiple changes across elections
gets multiple instances of this template on its page.
gets multiple instances of this template on its page.
Line 23: Line 39:
boundary_change / type_change
boundary_change / type_change


predecessor_ids and successor_ids use constituency_id slug format.
editorial_notes is the primary record of context and
Multiple values comma separated.
background since EBRC does not publish official reasons.
e.g. tanjong-pagar-grc,tiong-bahru-smc
 
editorial_notes should explain the political and historical
context behind the change. This is the primary record of
reasoning since the EBRC does not publish official reasons.
Be as detailed as possible.
Be as detailed as possible.


Line 37: Line 48:
Usage:
Usage:
{{Constituency-changes-cargo
{{Constituency-changes-cargo
|change_id=tampines-grc-2020
|change_id=tampines-grc-2025
|constituency_id=tampines-grc
|constituency_id=tampines-grc
|election_year=2020
|election_year=2025
|change_type=boundary_change
|change_type=boundary_change
|seats_before=5
|seats_before=5
|seats_after=5
|seats_after=5
|electors=146823
|electors=167871
|electors_per_seat=29365
|electors_per_seat=33574
|eld_report_year=2020
|eld_report_year=2025
|predecessor_ids=
|predecessor_ids=
|successor_ids=
|successor_ids=
|editorial_notes=Tampines GRC retained its five-seat configuration
|editorial_notes=
in the 2020 boundary review. The ward boundaries were adjusted
to account for new HDB developments in Tampines North.
No wards were added or removed.
|verified=yes
|verified=yes
|last_updated=2026-05-16
|last_updated=2026-05-16
}}
}}
</noinclude>{{#cargo_store:_table=constituency_changes
</noinclude>
|change_id={{{change_id|}}}
|constituency_id={{{constituency_id|}}}
|election_year={{{election_year|}}}
|change_type={{{change_type|}}}
|seats_before={{{seats_before|}}}
|seats_after={{{seats_after|}}}
|electors={{{electors|}}}
|electors_per_seat={{{electors_per_seat|}}}
|eld_report_year={{{eld_report_year|}}}
|predecessor_ids={{{predecessor_ids|}}}
|successor_ids={{{successor_ids|}}}
|editorial_notes={{{editorial_notes|}}}
|verified={{{verified|}}}
|last_updated={{{last_updated|}}}
}}

Latest revision as of 08:59, 16 May 2026

This template defines the table "constituency_changes". View table.

Stores one constituency change event per instance. A constituency with multiple changes across elections gets multiple instances of this template on its page.

Valid change_type values: created / abolished / resized / renamed / boundary_change / type_change

editorial_notes is the primary record of context and background since EBRC does not publish official reasons. Be as detailed as possible.

electors = total registered voters at time of this election. electors_per_seat = electors divided by seats_after.

Usage: