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

From blackwiki
Jump to navigation Jump to search
imported>John of Reading
m (→‎Usage: Typo fixing, replaced: specificed → specified)
imported>Debresser
m (Standardize.)
 
(One intermediate revision by one other user not shown)
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}}}}
 
|-
 
|-
 
|}
 
|}
  
<includeonly><!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<includeonly>{{Sandbox other||<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:People and person external link templates|{{PAGENAME}}]]
 
[[Category:People and person external link templates|{{PAGENAME}}]]
 
[[Category:Australian source templates|{{PAGENAME}}]]
 
[[Category:Australian source templates|{{PAGENAME}}]]
Line 54: Line 54:
 
[[Category:Citation Style 1 specific-source templates]]
 
[[Category:Citation Style 1 specific-source templates]]
 
[[Category:Templates that wrap Cite web]]
 
[[Category:Templates that wrap Cite web]]
</includeonly>
+
}}</includeonly>

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=16 September 2025 }}

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