Template:DNB/doc

From blackwiki
< Template:DNB
Revision as of 12:08, 18 September 2010 by imported>PBS (→‎Quick explanation (aide-mémoire): mention DNB Cite is more appropriate for some tasks)
Jump to navigation Jump to search

Quick explanation (aide-mémoire)

The template can be placed in different locations and depending on the what it is required the parameters can be mixed and matched:

Location Parameters Example Note
==References== {{DNB|wstitle=DNB name}} 12px This article incorporates text from a publication now in the public domain"Abbadie, Jacques". Dictionary of National Biography. London: Smith, Elder & Co. 1885–1900. Use wstitle=DNB name if the article exists on Wikisource if not use title=DNB name
==References== {{DNB|title=|url=|first=|last=|volume=|page=}} 12px This article incorporates text from a publication now in the public domainGrant, Arthur (1885). "Abbadie, Jacques". In Stephen, Leslie (ed.). Dictionary of National Biography. 1. London: Smith, Elder & Co. p. 1. some additional information: title instead of wstitle, url to the external page instead of link to wikisource; the first and last names of the author of the article, the volume and page [number].
inline citation {{DNB|inline=1|wstitle=DNB name}} 12px One or more of the preceding sentences incorporates text from a publication now in the public domain"Abbadie, Jacques". Dictionary of National Biography. London: Smith, Elder & Co. 1885–1900. inline=1. Alters the prescript from "This article..." to "One or more...". Suitable for noting that a paragraph is copied from CE.
inline citation {{DNB|prescript=|title=DNB name}} 12px "Abbadie, Jacques". Dictionary of National Biography. London: Smith, Elder & Co. 1885–1900. prescript=. Removes the prescript suitable for a citation where a paragraph is a summary of a paragraph from an CE article and not a copy. title= for no copy on Wikisource. NB. {{DNB Cite}} is more appropriate for this task.
==Further reading== {{DNB|no-icon=1|prescript=|url=http://...|title=DNB name}} "Abbadie, Jacques". Dictionary of National Biography. London: Smith, Elder & Co. 1885–1900. no-icon=1 remove the lead icon, prescript= removes the prescript title= for the article name not yet on Wikisource. url= for where the text can be found online. NB. {{DNB Cite}} is more appropriate for this task.
==External links== {{DNB|no-icon=1|prescript=|wstitle=DNB name}} "Abbadie, Jacques". Dictionary of National Biography. London: Smith, Elder & Co. 1885–1900. no-icon=1, remove the lead icon prescript= removes the prescript as the source is not used in the article. NB. {{DNB Cite}} is more appropriate for this task.

Detailed notes

This template is wrapper around {{DNB Cite}}. In its default mode it attributes text to an article from the [Old] Dictionary of National Biography.

{{DNB Cite}} automatically sets some of the parameters before calling Empty citation (help) for example "publisher = Smith, Elder & Co". Over and above the standard parameter passed into {{cite encyclopedia}} there are some additional parameters and those are listed below in a separate table from the table of parameters passed into {{cite encyclopedia}}.

Minimum is:{{DNB|title=EB article name}} or {{DNB|wstitle=EB article name}}[nb 1]

Full set is:{{DNB|wstitle=|prescript=|no-icon|inline=|author=|last=|first=|authorlink=|coauthors=|title=|url=|accessdate=|volume=|page|pages}}

Additional parameters
Parameter Note
wstitle=name of the article on wikisource If set, set link to CE article on wikisource, and unsets title and url if they are also set.
inline=1 Changes the default prescript from "This article" to "One or more of the preceding sentences". Useful for inline citations (see inline examples in the previous section).
no-icon=1 Suppresses the lead icon (useful with {{Wikisource-inline}}).
prescript=alternative prescript prescript can either be set to an alternative string of text (in which case add &nbsp; to the end of the string as a separator from the first word of the citation); or if set with no string it will remove prescript string from in front of the citation.
Paramaters passed into {{cite encyclopedia}}
Paramater Set to Notes
last= author= or last= Set the value of last= or not set.
first= first= Set to the value of first= or not set
author= author= Set to the value of author= or not set
authorlink= authorlink= Set to the value of authorlink= or not set
coauthors= coauthors= Unlikely to be needed but can be set
editor= Sidney Leslie [or Stephen Lee] Not set, unless the volume parameter then the editor parameter is automatically set within the template.
encyclopedia= Dictionary of National Biography Automatically set within the template
title= wstitle= or title= Set to wstitle= if set, if not to title=, if not set then left blank.
url= url= Set to the value of url= unless wstitle= is set in which case it is not set.
accessdate= accessdate= Set to the value of accessdate= or not set
language= Not set
edition= Not set
date= Not set (see year)
year= Not set, or if the volume parameter is set, then set to the year that the volume was first published.
month= Not set
publisher= Smith, Elder & Co automatically set within the template
volume= volume= Set to the value of volume= or not set
location= London Automatically set within the template
id= Not set
isbn= Not set
oclc= Not set
doi= Not set
page= page= Set to the value of page= or not set
pages= pages= Set to the value of pages= or not set
quote= quote= Set to the value of quote= or not set
ref= harv automatically set within the template. It means that {{sfn}} and {{harvnb}} link to this template. (If you need to ask don't worry about it)

Hidden category

This template includes one of three hidden subcategories of category Category:Wikipedia articles incorporating text from the Dictionary of National Biography.

The categories do not appear at the bottom of the article page, but the article is listed on the category page.

Notes

  1. It will also work with no parameters, but that set a category flagging that no article name has been given, as it is not much use to the reader to inform them that a Wikipeda article contains some text copied from somewhere in the 64-volumes of the Dictionary of National Biography!

See also