Template:Infobox Malaysia electoral district/sandbox

From Wikipedia, the free encyclopedia
Parameter 'state' invalid or missing. constituency
Current constituency
Seats1
{{{name}}}
Former {{{type}}} constituency
[[File:{{{map1}}}Constituency.svg|{{{map_size}}}|alt=Outline map]]
Boundary of {{{name}}}in {{{map_entity}}} for the {{{map_year}}} general election
[[File:{{{map2}}}.svg|{{{map_size}}}|alt=Outline map]]
Location of {{{map_entity}}}
[[File:{{{map3}}}.svg|{{{map_size}}}|alt=Outline map]]
Location of {{{map_entity}}}
[[File:{{{map4}}}|{{{map_size}}}|alt=Outline map]]
Location of {{{name}}} within {{{map_entity}}}
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}}.

Proposed migration parameter mappings
{{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
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Infobox Malaysia electoral district in articles based on its TemplateData.

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.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

The name of constituency.

Default
{{PAGENAME}}
Stringsuggested
Legislaturetype

Legislature to which a member is elected from this constituency. Overrides 'fed-status' and 'state'.

Suggested values
[[Dewan Rakyat]] [[Johor State Legislative Assembly]] [[Kedah State Legislative Assembly]] [[Kelantan State Legislative Assembly]] [[Malacca State Legislative Assembly]] [[Negeri Sembilan State Legislative Assembly]] [[Pahang State Legislative Assembly]] [[Penang State Legislative Assembly]] [[Perak State Legislative Assembly]] [[Perlis State Legislative Assembly]] [[Sabah State Legislative Assembly]] [[Sarawak State Legislative Assembly]] [[Sarawak State Legislative Assembly|Council Negri]] [[Selangor State Legislative Assembly]] [[Legislative Assembly of Singapore]] [[Terengganu State Legislative Assembly]]
Contentsuggested
Federal constituency?fed-status

Insert any string to indicate that this is a constituency of the Dewan Rakyat.

Example
yes
Booleandeprecated
State or territorystate territory

State or territory in which this constituency is located. Required if 'type' and 'fed-status' are not set.

Suggested values
Johor Kedah Kelantan Malacca Negeri Sembilan Pahang Penang Perak Perlis Sabah Sarawak Selangor Singapore Terengganu
Stringdeprecated
Constituency mapmap1

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.

Stringoptional
Map sizemap_size

Passed through to {{infobox constituency}}. The display dimensions of all maps, in pixels.

Stringoptional
imageimage imagemap

Passed through to {{infobox constituency}}.

Unknownoptional
image_sizeimage_size

Passed through to {{infobox constituency}}.

Unknownoptional
map_entitymap_entity

Passed through to {{infobox constituency}}.

Unknownoptional
map_yearmap_year

Passed through to {{infobox constituency}}.

Unknownoptional
captioncaption

Passed through to {{infobox constituency}}.

Unknownoptional
map2map2

Passed through to {{infobox constituency}}.

Unknownoptional
image2image2

Passed through to {{infobox constituency}}.

Unknownoptional
caption2caption2

Passed through to {{infobox constituency}}.

Unknownoptional
map3map3

Passed through to {{infobox constituency}}.

Unknownoptional
image3image3

Passed through to {{infobox constituency}}.

Unknownoptional
caption3caption3

Passed through to {{infobox constituency}}.

Unknownoptional
map4map4

Passed through to {{infobox constituency}}.

Unknownoptional
image4image4

Passed through to {{infobox constituency}}.

Unknownoptional
caption4caption4

Passed through to {{infobox constituency}}.

Unknownoptional
Populationpopulation

Passed through to {{infobox constituency}} and overrides 'demo-pop', 'demo-census-date' and 'demo-pop-ref'. Population of the constituency, including non-electors.

Contentoptional
Populationdemo-pop

Population of the constituency, including non-electors.

Numberoptional
Population census yeardemo-census-date

Year in which the population in 'demo-pop' was counted.

Numberoptional
Population referencedemo-pop-ref

Citation for the population value.

Contentoptional
electorateelectorate

Passed through to {{infobox constituency}}.

Unknownoptional
demo-electorsdemo-electors

no description

Unknownoptional
demo-electors-datedemo-electors-date

no description

Unknownoptional
demo-electors-refdemo-electors-ref

no description

Unknownoptional
areaarea

Passed through to {{infobox constituency}}.

Unknownoptional
demo-areademo-area

no description

Unknownoptional
demo-area-refdemo-area-ref

no description

Unknownoptional
futurefuture

Passed through to {{infobox constituency}}.

Unknownoptional
Year createdyear fed-created state-created

Passed through to {{infobox constituency}}.

Numberoptional
abolished_labelabolished_label

Passed through to {{infobox constituency}}.

Unknownoptional
Year abolishedabolished fed-abolished state-abolished

Year this constituency was abolished.

Numberoptional
members_labelmembers_label

Passed through to {{infobox constituency}}.

Unknownoptional
membersmembers fed-rep state-rep

no description

Stringoptional
seatsseats

Passed through to {{infobox constituency}}.

Default
1
Auto value
1
Numberoptional
party_labelparty_label

Passed through to {{infobox constituency}}.

Unknownoptional
partyparty fed-rep-party state-rep-party

no description

Unknownoptional
local_council_labellocal_council_label

Passed through to {{infobox constituency}}.

Unknownoptional
local_councillocal_council

Passed through to {{infobox constituency}}.

Unknownoptional
nextnext

Passed through to {{infobox constituency}}.

Unknownoptional
previousprevious

Passed through to {{infobox constituency}}.

Unknownoptional