Template:Infobox Malaysia electoral district/sandbox
Parameter 'state' invalid or missing. constituency | |
Current constituency | |
---|---|
Seats | 1 |
This template may be substituted. |
{{{name}}} | |
---|---|
Former {{{type}}} constituency | |
[[File:{{{map1}}}Constituency.svg|{{{map_size}}}|alt=Outline map]] | |
[[File:{{{map2}}}.svg|{{{map_size}}}|alt=Outline map]] | |
[[File:{{{map3}}}.svg|{{{map_size}}}|alt=Outline map]] | |
[[File:{{{map4}}}|{{{map_size}}}|alt=Outline map]] | |
State/territory | [[File:Flag of {{{state}}}.svg|23x15px|border |alt=|link=]] {{{state}}} |
Population | {{{population}}} |
Electorate | {{{electorate}}} |
Area | {{{area}}} |
Former constituency | |
Created | {{{year}}} |
{{{abolished_label}}} | {{{abolished}}} |
Seats | {{{seats}}} |
{{{party_label}}} | {{{party}}} |
{{{members_label}}} | {{{members}}} |
{{{local_council_label}}} | {{{local_council}}} |
Created from | {{{previous}}} |
Replaced by | {{{next}}} |
This is a work-in-progress proposal for a migration to an updated infobox based on {{infobox constituency}}.
{{Infobox Malaysia electoral district}} | {{Infobox constituency}} |
---|---|
name
|
name , obviously
|
state
|
district , with district_label set to "State/territory" in the template
|
image imagemap (duplicated functionality)
|
image or mapX , as appropriate (see docs on infobox constituency)
|
caption
|
captionX
|
coordinates coordinates_caption coordinates_date
|
No equivalent (having it set to the constituency office per current docs is probably not best practice anyway) |
fed-status
|
If specified with any value, this will set type to "Dewan Rakyat" (linked); the value itself will be ignored since the template will know if it is "former" or "future" when abolished or future is set, respectively
|
state-status
|
Ignored – federal and state constituencies already have their own separate pages |
fed-constituency-number
|
Not used; apparently this was copy-pasted from {{Infobox Canada electoral district}} without being adapted to local use |
fed-created state-created
|
year
|
fed-abolished state-abolished
|
abolished
|
fed-election-first fed-election-last state-election-first state-election-last
|
No current equivalent |
fed-rep state-rep
|
members , with members_label set to "MP" or "MLA"
|
fed-rep-party state-rep-party
|
party
|
demo-census-date demo-pop demo-pop-ref
|
population
|
demo-electors-date demo-electors demo-electors-ref
|
electorate
|
demo-area demo-area-ref
|
area
|
demo-cd demo-csd
|
No current equivalent; probably irrelevant |
No equivalent | seats (will be set to "1" by default)local_council previous next
|
TemplateData for Infobox Malaysia electoral district
Temporary wrapper template for {{Infobox constituency}} for electoral constituencies in Malaysia. To migrate, substitute and clean up any parser functions.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | The name of constituency.
| String | suggested |
Legislature | type | Legislature to which a member is elected from this constituency. Overrides 'fed-status' and 'state'.
| Content | suggested |
Federal constituency? | fed-status | Insert any string to indicate that this is a constituency of the Dewan Rakyat.
| Boolean | deprecated |
State or territory | state territory | State or territory in which this constituency is located. Required if 'type' and 'fed-status' are not set.
| String | deprecated |
Constituency map | map1 | Passed through to {{infobox constituency}}. Filename of the map ending in "-Constituency.svg". "-Constituency.svg" will automatically be appended to whatever value is provided here. | String | optional |
Map size | map_size | Passed through to {{infobox constituency}}. The display dimensions of all maps, in pixels. | String | optional |
image | image imagemap | Passed through to {{infobox constituency}}. | Unknown | optional |
image_size | image_size | Passed through to {{infobox constituency}}. | Unknown | optional |
map_entity | map_entity | Passed through to {{infobox constituency}}. | Unknown | optional |
map_year | map_year | Passed through to {{infobox constituency}}. | Unknown | optional |
caption | caption | Passed through to {{infobox constituency}}. | Unknown | optional |
map2 | map2 | Passed through to {{infobox constituency}}. | Unknown | optional |
image2 | image2 | Passed through to {{infobox constituency}}. | Unknown | optional |
caption2 | caption2 | Passed through to {{infobox constituency}}. | Unknown | optional |
map3 | map3 | Passed through to {{infobox constituency}}. | Unknown | optional |
image3 | image3 | Passed through to {{infobox constituency}}. | Unknown | optional |
caption3 | caption3 | Passed through to {{infobox constituency}}. | Unknown | optional |
map4 | map4 | Passed through to {{infobox constituency}}. | Unknown | optional |
image4 | image4 | Passed through to {{infobox constituency}}. | Unknown | optional |
caption4 | caption4 | Passed through to {{infobox constituency}}. | Unknown | optional |
Population | population | Passed through to {{infobox constituency}} and overrides 'demo-pop', 'demo-census-date' and 'demo-pop-ref'. Population of the constituency, including non-electors. | Content | optional |
Population | demo-pop | Population of the constituency, including non-electors. | Number | optional |
Population census year | demo-census-date | Year in which the population in 'demo-pop' was counted. | Number | optional |
Population reference | demo-pop-ref | Citation for the population value. | Content | optional |
electorate | electorate | Passed through to {{infobox constituency}}. | Unknown | optional |
demo-electors | demo-electors | no description | Unknown | optional |
demo-electors-date | demo-electors-date | no description | Unknown | optional |
demo-electors-ref | demo-electors-ref | no description | Unknown | optional |
area | area | Passed through to {{infobox constituency}}. | Unknown | optional |
demo-area | demo-area | no description | Unknown | optional |
demo-area-ref | demo-area-ref | no description | Unknown | optional |
future | future | Passed through to {{infobox constituency}}. | Unknown | optional |
Year created | year fed-created state-created | Passed through to {{infobox constituency}}. | Number | optional |
abolished_label | abolished_label | Passed through to {{infobox constituency}}. | Unknown | optional |
Year abolished | abolished fed-abolished state-abolished | Year this constituency was abolished. | Number | optional |
members_label | members_label | Passed through to {{infobox constituency}}. | Unknown | optional |
members | members fed-rep state-rep | no description | String | optional |
seats | seats | Passed through to {{infobox constituency}}.
| Number | optional |
party_label | party_label | Passed through to {{infobox constituency}}. | Unknown | optional |
party | party fed-rep-party state-rep-party | no description | Unknown | optional |
local_council_label | local_council_label | Passed through to {{infobox constituency}}. | Unknown | optional |
local_council | local_council | Passed through to {{infobox constituency}}. | Unknown | optional |
next | next | Passed through to {{infobox constituency}}. | Unknown | optional |
previous | previous | Passed through to {{infobox constituency}}. | Unknown | optional |