Difference between revisions of "Template:Cite DNBSupp/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>PBS
(copy of the production version of cite DNB)
 
imported>PBS
Line 8: Line 8:
 
  | author= {{{author|}}}
 
  | author= {{{author|}}}
 
  | authorlink = {{{authorlink|}}}
 
  | authorlink = {{{authorlink|}}}
  | editor = {{#if: {{{volume|}}} | {{#ifexpr: {{{volume}}} < 21 | [[Leslie Stephen]] | {{#ifexpr: {{{volume}}} < 26 | [[Leslie Stephen]] and [[Sidney Lee]] | [[Sidney Lee]] }} }} | }}
+
  | editor = [[Sidney Lee]]
  | encyclopedia = [[Dictionary of National Biography]]'', 1885–1900''&#8203;
+
  | encyclopedia = [[Dictionary of National Biography|Dictionary of National Biography]], 1901 supplement&#8203;
 
 
 
  | title = {{#ifeq: {{{wstitle|}}}|<!--eq to empty-->|
 
  | title = {{#ifeq: {{{wstitle|}}}|<!--eq to empty-->|
 
                 <!--then-->{{{title|}}}
 
                 <!--then-->{{{title|}}}
                 |[[s:{{{wstitle|}}} (DNB00)|{{{wstitle|}}}]]
+
                 |[[s:{{{wstitle|}}} (DNB01)|{{{wstitle|}}}]]
 
             <!--endif-->}}
 
             <!--endif-->}}
  | url = {{#ifeq: {{{wstitle|}}}| |{{{url|}}}<!--endif-->}}
+
  | url = {{#ifeq: {{{wstitle|}}}|<!--eq to empty-->|{{{url|}}}<!--endif-->}}
 
  | accessdate = {{{accessdate|}}}
 
  | accessdate = {{{accessdate|}}}
  | year = {{#switch:{{{volume}}}
+
  | year = 1901
  | 1 | 2 | 3 | 4 = 1885
 
  | 5 | 6 | 7 | 8 = 1886
 
  | 9 | 10 | 11 | 12 = 1887
 
  | 13 | 14 | 15 | 16 = 1888
 
  | 17 | 18 | 19 | 20 = 1889
 
  | 21 | 22 | 23 | 24 = 1890
 
  | 25 | 26 | 27 | 28 = 1891
 
  | 29 | 30 | 31 | 32 = 1892
 
  | 33 | 34 | 35 | 36 = 1893
 
  | 37 | 38 | 39 | 40 = 1894
 
  | 41 | 42 | 43 | 44 = 1895
 
  | 45 | 46 | 47 | 48 = 1896
 
  | 49 | 50 | 51 | 52 = 1897
 
  | 53 | 54 | 55 | 56 = 1898
 
  | 57 | 58 | 59 | 60 = 1899
 
  | 61 | 62 | 63 = 1900
 
  }}
 
 
  | publisher = [[Smith, Elder & Co.|Smith, Elder & Co]]
 
  | publisher = [[Smith, Elder & Co.|Smith, Elder & Co]]
 
  | volume = {{{volume|}}}
 
  | volume = {{{volume|}}}

Revision as of 22:21, 9 October 2010

 Sidney Lee, ed. (1901). Dictionary of National Biography, 1901 supplement​. London: Smith, Elder & Co. Missing or empty |title= (help)CS1 maint: extra punctuation (link)

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

Purpose

This template enables the citation of articles from the Wikisource project Dictionary of National Biography, 1901 supplement in the manner of non-link references and notes.

Usage

Common fields

{{cite DNBSupp|wstitle=|last=|first=|authorlink=|volume=}}

All fields

{{cite DNBSupp|wstitle=|title=|last=|first=|authorlink=|volume=|pages=|quote=|accessdate=|ref=|noicon}}

Fields

  • wstitle or title. Required.
    • wstitle: DNB supplement article name on Wikisource or
    • title: DNB supplement article name (can be coupled with url= see below)
  • url: http://... link to web location. Useful with title, unset by wstitle
  • last: Surname of author. Don't wikilink (use authorlink instead).
    • first: Firstname(s) of author. Don't wikilink (use authorlink instead).
    • authorlink: Title of Wikipedia article about author. Article should already exist. Must not be wikilinked itself. Do not use this on its own, but along with "first" and "last".
  • volume: Volume in which the entry appears. Used to generate the year and editor information.
  • accessdate: Full date when item was accessed. Should be in the same format as the rest of the article.
  • pages or page: These parameters are for listing the pages relevant to the citation, not the total number of pages in the book. "|pages= 5–7" produces "pp. 5–7", while "|page= 5" produces "p. 5". The "pp." notation indicating multiple pages, and "p." notation indicating a single page, are placed automatically when you choose between the plural (pages) or singular (page) form of the parameter. Page ranges should be separated by an unspaced en dash (–).
  • quote: Relevant quote from the article.
  • noicon=1: removes the lead icon
  • ref:: can be set as needed (see {{harv}})
  • comment: Optional comment which follows the citation.

Examples

Example using wstitle:

{{Cite DNBSupp|first=D'Arcy |last=Power|wstitle=Bucknill, John Charles|volume=1}} displays as:

Power, D'Arcy (1901). "Bucknill, John Charles" . In Lee, Sidney (ed.). Dictionary of National Biography (1st supplement). 1. London: Smith, Elder & Co.

Example using title and url:

{{Cite DNBSupp|first=D'Arcy |last=Power|title=Bucknill, John Charles |url=https://archive.org/stream/dictionaryofnati019319mbp#page/n368/mode/1up |volume=1 |page=331}} displays as:

File:PD-icon.svg Power, D'Arcy (1901). "Bucknill, John Charles". In Lee, Sidney (ed.). Dictionary of National Biography (1st supplement). 1. London: Smith, Elder & Co. p. 331.

Example using some more parameters:

{{Cite DNBSupp|noicon=1|first=D'Arcy |last=Power|wstitle=Bucknill, John Charles|volume=1|pages=331–332}} displays as:

Power, D'Arcy (1901). "Bucknill, John Charles". In Lee, Sidney (ed.). Dictionary of National Biography (1st supplement). 1. London: Smith, Elder & Co. pp. 331–332.

See also

{{#lst:Template:Cite DNB/doc|DNB_see_also}}