Template:Infobox Australian electorate/doc

From The Global Wiki
Jump to navigation Jump to search

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              = 
| image_upright      = 
| image_alt          = 
| caption            = 
| created            = 
| mp                 = 
| mp-party           = 
| namesake           = 
| electors           = 
| electors_year      = 
| electors_footnotes = 
| area               = 
| class              = 
| coordinates        = <!-- {{coord|LAT|S|LON|E|display=inline,title}} -->
| near-n             = 
| near-ne            = 
| near-e             = 
| near-se            = 
| near-s             = 
| near-sw            = 
| near-w             = 
| near-nw            = 
| footnotes          = 
}}

For state lower house districts

{{Infobox Australian electorate
| name               = 
| state              = 
| image              = 
| image_upright      = 
| image_alt          = 
| caption            = 
| created            = 
| mp                 = 
| mp-party           = 
| namesake           = 
| electors           = 
| electors_year      = 
| electors_footnotes = 
| area               = 
| class              = 
| coordinates        = <!-- {{coord|LAT|S|LON|E|display=inline,title}} -->
| near-n             = 
| near-ne            = 
| near-e             = 
| near-se            = 
| near-s             = 
| near-sw            = 
| near-w             = 
| near-nw            = 
| footnotes          = 
}}

For state upper house divisions or provinces

{{Infobox Australian electorate
| upper              = yes
| name               = 
| state              = 
| image              = 
| image_upright      = 
| image_alt          = 
| caption            = 
| created            = 
| mp                 = 
| mp-party           = 
| namesake           = 
| electors           = 
| electors_year      = 
| electors_footnotes = 
| area               = 
| class              = 
| coordinates        = <!-- {{coord|LAT|S|LON|E|display=inline,title}} -->
| near-n             = 
| near-ne            = 
| near-e             = 
| near-se            = 
| near-s             = 
| near-sw            = 
| near-w             = 
| near-nw            = 
| 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
image_upright width of generic image of the locality This is an optional field. If not specified, the image width will default to |upright=1.23, which is approximately 270px if the default thumbnail size has not been changed at Special:Preferences) The size should not be set to a value that would result in an image width greater than 300px. See help below for guidance on determining the value to be used. 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
electors_footnotes footnote for electors figure wikitext (can contain links)
Best when used with <ref> </ref> tags
area area in square kilometres (do not use commas or punctuation) number
class AEC class of the electorate (e.g. Rural) plain text
coordinates coordinates of the electorate; use "display=inline,title"; region is set automatically based on |state=. For coordinates, use {{coord}} with display=inline,title. Please do not be overly precise. Example:
{{Coord|32|45|41.3|S|151|44|38.6|E|display=inline,title}}
near-n/ne/e/se/s/sw/w/nw neighbouring electorates small electorates Only electorates that share borders with the subject electorate should be included in these fields. Do NOT use on large electorates. plain text, link
footnotes footnotes wikitext (can contain links)
Best when used with <ref> </ref> tags and a citation template such as {{cite web}}

Notes

{{#section:Template:Infobox Australian place/doc|image_upright}}

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.

Tracking categories

Subpages

Microformat

The HTML markup produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.

Sub-templates

If the place or venue has "established", "founded", "opened" or similar dates, use {{start date}} for the earliest of those dates unless the date is before 1583 CE.

If it has a URL, use {{URL}}.

Please do not remove instances of these sub-templates.

Classes

hCard uses HTML classes including:

  • adr
  • agent
  • category
  • county-name
  • extended-address
  • fn
  • label
  • locality
  • nickname
  • note
  • org
  • region
  • street-address
  • uid
  • url
  • vcard

Geo is produced by calling {{coord}}, and uses HTML classes:

  • geo
  • latitude
  • longitude

Please do not rename or remove these classes nor collapse nested elements which use them.

Precision

When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name= parameter.

For Australian lower house electorates and for State upper and lower house electorates

Template parameters

ParameterDescriptionTypeStatus
Namename

Name of electorate

Linesuggested
Federal?federal

If a federal electorate, put 'yes', otherwise blank

Linesuggested
Statestate

If a state electorate (upper or lower), put one of 'nsw', 'vic', 'qld', 'sa', 'wa', 'tas', 'act', 'nt'

Linesuggested
State upper house?upper

If a state upper-house electorate, put 'yes', otherwise blank

Linesuggested
Imageimage

File name for the image (omit the 'File:' prefix)

Linesuggested
Image sizeimage_size

no description

Unknownoptional
Imagesizeimagesize

no description

Unknownoptional
Image uprightimage_upright

no description

Unknownoptional
Image altimage_alt

no description

Unknownoptional
Altalt

no description

Unknownoptional
Captioncaption

Description of the image

Stringsuggested
Createdcreated

no description

Unknownoptional
Abolishedabolished

no description

Unknownoptional
Lifespanlifespan

years (e.g. 1890–1950, 1962–present)

Stringsuggested
MP name(s)mp

Name of current member of parliament (for proportional, list of all MPs)

Stringsuggested
MP partymp-party

Party of current member of parliament (for proportional, list all parties)

Stringsuggested
Namesakenamesake

Who or what is the electorate named after?

Linesuggested
Electorselectors

no description

Unknownoptional
Electors yearelectors_year

no description

Unknownoptional
Electors footnoteselectors_footnotes

no description

Unknownoptional
Areaarea

no description

Unknownoptional
Area footnotesarea_footnotes

no description

Unknownoptional
Classclass

no description

Unknownoptional
Coordinatescoordinates

no description

Unknownsuggested
Footnotesfootnotes

no description

Unknownoptional