Difference between revisions of "Template:Cite NSW Parliament/doc"
imported>Find bruce (Create template documentation) |
imported>Find bruce (update with former parameter) |
||
| Line 13: | Line 13: | ||
<pre> | <pre> | ||
{{Cite NSW Parliament | {{Cite NSW Parliament | ||
| − | | id | + | | id = |
| − | | name | + | | name = |
| − | | access-date = | + | | former = |
| + | | access-date = | ||
}} | }} | ||
</pre> | </pre> | ||
| Line 21: | Line 22: | ||
Required parameters: | Required parameters: | ||
| − | * '''id''': "Member id", corresponds to the last parameter found in the URL of the database entry. For example, for the entry on [https://www.parliament.nsw.gov.au/members/Pages/Member-details.aspx?pk=21 Gladys Berejiklian], the "id" is 21. | + | * '''id''': "Member id", corresponds to the last parameter found in the URL of the database entry. <nowiki>https://www.parliament.nsw.gov.au/members/Pages/Member-details.aspx?pk=</nowiki>{{highlight|####}} For example, for the entry on [https://www.parliament.nsw.gov.au/members/Pages/Member-details.aspx?pk=21 Gladys Berejiklian], the "id" is 21. |
* '''name''': The name of the member. Consider using the form given in the relevant database entry. For example, for the entry on [https://www.parliament.nsw.gov.au/members/formermembers/Pages/former-member-details.aspx?pk=426 Sir Henry Parkes], the name in the entry is given as "Sir Henry Parkes (1815 - 1896)". | * '''name''': The name of the member. Consider using the form given in the relevant database entry. For example, for the entry on [https://www.parliament.nsw.gov.au/members/formermembers/Pages/former-member-details.aspx?pk=426 Sir Henry Parkes], the name in the entry is given as "Sir Henry Parkes (1815 - 1896)". | ||
Optional parameters: | Optional parameters: | ||
| + | * '''former''': Yes indicates a former member - omit for current members. | ||
* '''access-date''': The date when the entry was accessed. | * '''access-date''': The date when the entry was accessed. | ||
| Line 38: | Line 40: | ||
| id = 426 | | id = 426 | ||
| name = Sir Henry Parkes (1815 - 1896) | | name = Sir Henry Parkes (1815 - 1896) | ||
| + | | former = Yes | ||
| access-date = </nowiki>{{Currentday}} {{Currentmonth}} {{Currentyear}}<nowiki> | | access-date = </nowiki>{{Currentday}} {{Currentmonth}} {{Currentyear}}<nowiki> | ||
}}</nowiki> | }}</nowiki> | ||
</kbd> | </kbd> | ||
| + | || {{Cite NSW Parliament | id = 426 | name = Sir Henry Parkes (1815 - 1896) | former = Yes | access-date = {{Currentday}} {{Currentmonth}} {{Currentyear}}}} | ||
| + | |- | ||
|| | || | ||
| − | {{Cite NSW Parliament | + | <kbd><nowiki>{{Cite NSW Parliament |
| − | | id = | + | | id = 21 |
| − | | name = | + | | name = The Hon. Gladys BEREJIKLIAN, MP |
| − | | access-date = {{Currentday}} {{Currentmonth}} {{Currentyear}} | + | | access-date = </nowiki>{{Currentday}} {{Currentmonth}} {{Currentyear}}<nowiki> |
| − | }} | + | }}</nowiki> |
| + | </kbd> | ||
| + | || | ||
| + | {{Cite NSW Parliament | id = 21 | name = The Hon. Gladys BEREJIKLIAN, MP | access-date = {{Currentday}} {{Currentmonth}} {{Currentyear}}}} | ||
|} | |} | ||
Revision as of 01:41, 5 April 2019
| This is a documentation subpage for Template:Cite NSW Parliament. It contains usage information, categories and other content that is not part of the original template page. |
This citation template produces formatted references to the Parliament of New South Wales's "members" biographical database, which contains information on all New South Wales members of parliament, including former members.
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.
|
{{Cite NSW Parliament
| id =
| name =
| former =
| access-date =
}}
|
Required parameters:
- id: "Member id", corresponds to the last parameter found in the URL of the database entry. https://www.parliament.nsw.gov.au/members/Pages/Member-details.aspx?pk=#### For example, for the entry on Gladys Berejiklian, the "id" is 21.
- name: The name of the member. Consider using the form given in the relevant database entry. For example, for the entry on Sir Henry Parkes, the name in the entry is given as "Sir Henry Parkes (1815 - 1896)".
Optional parameters:
- former: Yes indicates a former member - omit for current members.
- access-date: The date when the entry was accessed.
Examples
| Example | Produces |
|---|---|
|
{{Cite NSW Parliament | id = 426 | name = Sir Henry Parkes (1815 - 1896) | former = Yes | access-date = 18 December 2025 }} |
"Script error: No such module "If empty".". Former Members of the Parliament of New South Wales. Retrieved 18 December 2025. |
|
{{Cite NSW Parliament | id = 21 | name = The Hon. Gladys BEREJIKLIAN, MP | access-date = 18 December 2025 }} |
"Script error: No such module "If empty".". Members of the Parliament of New South Wales. Retrieved 18 December 2025. |