Difference between revisions of "Template:DNZB"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
(add in option for first2/last2)
imported>JJMC89
(use Module:Template wrapper to allow all {{cite web}} parameters)
Line 1: Line 1:
<includeonly><!--
+
{{#if:{{{6|{{{plainlink|}}}}}}
 
+
|[http://www.teara.govt.nz/en/biographies/{{{id|{{{3|}}}}}} {{{title|{{{4|}}}}}}]
-->{{#if: {{{6|{{{plainlink|}}}}}}<!--
+
|{{#invoke:Template wrapper|{{#if:{{{_debug|}}}|list|wrap}}|_template=cite web
    -->| [http://www.teara.govt.nz/en/biographies/{{{3|{{{id|}}}}}} {{{4|{{{title|}}}}}}]<!--
+
|_alias-map = 1:last, 2:first, 4:title, 5:access-date, 7:author-link, 8:author, 9:authors
    -->|{{cite web<!--
+
|_exclude  = _debug, id
          -->|last={{{1|{{{last|}}}}}}<!--
+
|title     = {{PAGENAMEBASE}}
          -->|first={{{2|{{{first|}}}}}}<!--
+
|url       = http://www.teara.govt.nz/en/biographies/{{{id|{{{3|}}}}}}
          -->|last2={{{last2|}}}<!--
+
|work       = [[Dictionary of New Zealand Biography]]
          -->|first2={{{first2|}}}<!--
+
|publisher = [[Ministry for Culture and Heritage]]
          -->|author={{{8|{{{author|}}}}}}<!--
+
}}
          -->|authors={{{9|{{{authors|}}}}}}<!--
+
}}<noinclude>
          -->|authorlink={{{7|{{{authorlink|}}}}}}<!--
+
{{Documentation}}</noinclude>
          -->|title={{if empty|{{{4|{{{title|}}}}}}|{{PAGENAME}}}}<!--
 
          -->|url=http://www.teara.govt.nz/en/biographies/{{{3|{{{id|}}}}}}<!--
 
          -->|work=[[Dictionary of New Zealand Biography]]<!--
 
          -->|publisher=[[Ministry for Culture and Heritage]]<!--
 
          -->|accessdate={{{5|{{{accessdate|}}}}}}<!--
 
          -->|archiveurl={{{archiveurl|}}}<!--
 
          -->|archivedate={{{archivedate|}}}<!--
 
          -->|df={{{df|}}}<!--
 
    -->}}<!--
 
-->}}</includeonly><noinclude>{{Documentation}}</noinclude>
 

Revision as of 04:16, 19 November 2019

"[[:Template:PAGENAMEBASE]]". Dictionary of New Zealand Biography. Ministry for Culture and Heritage. URL–wikilink conflict (help)

Template documentation[view] [edit] [history] [purge]

This template creates a reference to an entry in the Dictionary of New Zealand Biography.

Usage

Copy and paste: {{DNZB|last=|first=|id=|title=|access-date=2025-09-30|df=dmy-all}}

Parameters

Required:

  • |id=teara.govt.nz/en/biographies/###/lastname-firstname

Optional:

  • Any {{Cite web}} parameter:
    • |last= – Surname of the author of the DNZB entry
    • |first= – First names of the author
    • |title= – Title of the DNZB entry; defaults to the page name without disambiguation
    • |access-date= – Date the DNZB entry was last verified to support the text in the Wikipedia article
    • |df= – Date format, i.e. dmy-all or mdy-all
    • |plainlink= – A plain link without cite web
    • |author-link= – Title of a Wikipedia article about the author

Examples