Template:Constituency-cargo: Difference between revisions

From PoliticalSG
(Created page with "{{#cargo_declare:_table=constituencies |constituency_id=String |name=String |type=String |region=String |town=String |current_seats=Integer |current_electors=Integer |current_electors_per_seat=Integer |formed_date=Date |abolished_date=Date |current_status=String }}<noinclude> Stores core constituency data in the Cargo constituencies table. Place on each constituency page alongside the constituency infobox. Boundary change history, seat changes, and elector counts over t...")
 
No edit summary
 
Line 1: Line 1:
{{#cargo_declare:_table=constituencies
<noinclude>{{#cargo_declare:_table=constituencies
|constituency_id=String
|constituency_id=String
|name=String
|name=String
Line 11: Line 11:
|abolished_date=Date
|abolished_date=Date
|current_status=String
|current_status=String
}}<noinclude>
}}</noinclude><includeonly>{{#cargo_store:_table=constituencies
|constituency_id={{{constituency_id|}}}
|name={{{name|}}}
|type={{{type|}}}
|region={{{region|}}}
|town={{{town|}}}
|current_seats={{{current_seats|}}}
|current_electors={{{current_electors|}}}
|current_electors_per_seat={{{current_electors_per_seat|}}}
|formed_date={{{formed_date|}}}
|abolished_date={{{abolished_date|}}}
|current_status={{{current_status|}}}
}}</includeonly>
<noinclude>
Stores core constituency data in the Cargo constituencies table.
Stores core constituency data in the Cargo constituencies table.
Place on each constituency page alongside the constituency infobox.
Place on each constituency page.
 
Boundary change history goes in Template:Constituency-changes-cargo.
Boundary change history, seat changes, and elector counts over time
go in Template:Constituency-changes-cargo, not here.
This table stores current state only.
This table stores current state only.


Line 35: Line 46:
|town=Tampines
|town=Tampines
|current_seats=5
|current_seats=5
|current_electors=146823
|current_electors=167871
|current_electors_per_seat=29365
|current_electors_per_seat=33574
|formed_date=1988-06-03
|formed_date=1988-06-03
|abolished_date=
|abolished_date=
|current_status=active
|current_status=active
}}
}}
</noinclude>{{#cargo_store:_table=constituencies
</noinclude>
|constituency_id={{{constituency_id|}}}
|name={{{name|}}}
|type={{{type|}}}
|region={{{region|}}}
|town={{{town|}}}
|current_seats={{{current_seats|}}}
|current_electors={{{current_electors|}}}
|current_electors_per_seat={{{current_electors_per_seat|}}}
|formed_date={{{formed_date|}}}
|abolished_date={{{abolished_date|}}}
|current_status={{{current_status|}}}
}}

Latest revision as of 08:59, 16 May 2026

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

Stores core constituency data in the Cargo constituencies table. Place on each constituency page. Boundary change history goes in Template:Constituency-changes-cargo. This table stores current state only.

Valid type values: GRC / SMC Valid region values: North / South / East / West / Central Valid current_status values: active / abolished

constituency_id must be a permanent slug that never changes even if the constituency is abolished. e.g. tampines-grc, tanjong-pagar-grc, potong-pasir-smc

Usage: