Template:Infobox Australian electorate/sandbox/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Infobox Australian electorate/sandbox. It contains usage information, categories and other content that is not part of the original template page. |
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
Contents
Usage
Copy and paste one of the following for use in articles. If not sure what to put in them, look at the Fields section below.
For federal divisions
{{Infobox Australian electorate | federal = yes | name = | image = | imagesize = | image_alt = | caption = | created = | mp = | mp-party = | namesake = | electors = | electors_year = | area = | class = | latd = | latm = | lats = | longd = | longm = | longs = | coord_type = | coordinates = | footnotes = }}
For state lower house districts
{{Infobox Australian electorate | name = | state = | image = | imagesize = | image_alt = | caption = | created = | mp = | mp-party = | namesake = | electors = | electors_year = | area = | class = | latd = | latm = | lats = | longd = | longm = | longs = | coord_type = | coordinates = | footnotes = }}
For state upper house divisions or provinces
{{Infobox Australian electorate | upper = yes | name = | state = | image = | imagesize = | image_alt = | caption = | created = | mp = | mp-party = | namesake = | electors = | electors_year = | area = | class = | latd = | latm = | lats = | longd = | longm = | longs = | coord_type = | coordinates = | footnotes = }}
Fields
All fields used by this template are optional. Leaving "federal" or "upper" blank assumes "no" on each. The following fields are available:
Field name | Description | Valid for blank = all |
Source/notes | Values |
---|---|---|---|---|
federal | is it federal? | 'yes' | ||
upper | is it a state upper house district? (ignored if incorrectly used) | 'yes' | ||
name | name of electorate | plain text (e.g. Werriwa) | ||
state | state abbreviation | 'nsw', 'vic', 'qld', 'sa', 'wa', 'tas', 'act', 'nt' | ||
image | image or map relevant to electorate | filename | ||
imagesize | width of generic image of the locality | number | ||
image_alt | Alt text for the image | wikitext (can contain links) | ||
caption | caption for the locality image | wikitext (can contain links) | ||
created | date or year electorate was created | year or wiki date | ||
abolished | date or year electorate was abolished | year or wiki date | ||
lifespan | lifespan of electorate for cases where the seat has been recreated | year or wiki date (e.g. 1890–1950, 1962–present) | ||
mp | current MP in office (for proportional, list of all MPs) | plain text or wikilink | ||
mp-party | current party in office | plain text or wikilink | ||
namesake | who or what electorate is named after | plain text or wikilink | ||
electors | how many people are enrolled to vote in the area | number, unformatted | ||
electors_year | year to which the figure in electors applies
|
raw year | ||
area | area in square kilometres (do not use commas or punctuation) | number | ||
class | AEC class of the electorate (e.g. Rural) | plain text | ||
latd latm lats |
latitude | degrees minutes seconds (optional for region and lga) | ||
longd longm longs |
longitude | degrees minutes seconds (optional for region and lga) | ||
coord_type | coordinates type override | This field may be used to override the default type:adm1st generated by the infobox.
|
For valid inputs see Template:Coord#type:T. | |
coordinates | coordinates of the electorate | Template:UF-coord Use of this field is an alternate to using lat/long parameters although that method is preferred as it generates the {{coord}} string from the parameters. If lat/long parameters parameters exist, this field is overridden. |
Example: {{Coord|32|45|41.3|S|151|44|38.6|E|type:adm1st_region:AU-NSW|display=inline,title}} | |
footnotes | footnotes | wikitext (can contain links) Best when used with <ref> </ref> tags and a citation template such as {{cite web}} |
Notes
Footnotes field
Any references should be placed within the "footnotes" field and not within the field reserved solely for a numeric value. Otherwise, an error may result.
Unformatted numbers and expression errors
Certain fields require numeric values to be entered in an unformatted/raw fashion—i.e. 1000.0 NOT 1,000.0. If an expression error is present, simply remove any commas or spaces from the number.
Subpages
Microformat