Difference between revisions of "Template:Cite NSW election/doc"

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎Examples: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
imported>Debresser
m (Standardize.)
 
Line 39: Line 39:
 
||
 
||
 
<kbd><nowiki>{{Cite NSW election
 
<kbd><nowiki>{{Cite NSW election
  | year = 1891
+
  | year=1891
  | district = Hunter
+
  | district=Hunter
  | access-date = </nowiki>{{Currentday}} {{Currentmonth}} {{Currentyear}}<nowiki>
+
  | access-date=</nowiki>{{Currentday}} {{Currentmonth}} {{Currentyear}}<nowiki>
 
}}</nowiki>
 
}}</nowiki>
 
</kbd>
 
</kbd>
|| {{cite NSW election |district=Hunter |year=1891 | access-date = {{Currentday}} {{Currentmonth}} {{Currentyear}}}}
+
|| {{cite NSW election |district=Hunter |year=1891 |access-date={{Currentday}} {{Currentmonth}} {{Currentyear}}}}
 
|-
 
|-
 
|}
 
|}

Latest revision as of 20:41, 30 August 2020


This citation template produces formatted references to the Parliament of New South Wales's "NSW election result database", which contains information on all New South Wales elections in the period 1856-2007.

Usage

Copy a blank version to use. Almost all parameter names are supported only in lower case (some initialisms, such as |isbn= have upper case aliases like |ISBN=, which are acceptable for use). Use the "|" (pipe) character between each parameter. Unused parameters may be deleted to avoid clutter in the edit window. Some samples on this documentation page may include the current date. If the date is not current, then Script error: No such module "Purge". the page.

Most commonly used parameters in horizontal format
{{Cite NSW election |title= |year= |district= |access-date=}}
Most commonly used parameters in vertical format
{{Cite NSW election
 | title	= 
 | year		= 
 | district	=
 | access-date	= 
}}

Required parameters:

  • year: the year of the election, in the format used by the database, eg 1860, 1864-5 and 1869-70.
  • district: The name of the district without space, eg "MaitlandWest" not "West Maitland".

Optional parameters:

  • title: If no title is specified the template returns the title "year district".

It does not currently link to election year totals, district or candidate lists

Examples

Example Produces

{{Cite NSW election | year=1891 | district=Hunter | access-date=15 September 2025 }}

Green, Antony. "Script error: No such module "If empty".". New South Wales Election Results 1856-2007. Parliament of New South Wales. Retrieved 15 September 2025.