Difference between revisions of "Template:Cite DCB/doc"

From blackwiki
Jump to navigation Jump to search
imported>PBS
(alter "name=" "title=" which is the standard parameter name for encyclopedia)
imported>PBS
(revert last edit)
Line 5: Line 5:
 
This template is a wrapper around {{tl|cite encyclopedia}} it is intended to format a link to the online edition to the ''Dictionary of Canadian Biography Online'' (DCB) so that it appears as a standard citation, while filling in many of the fields base on the fixed identification number and the volume.
 
This template is a wrapper around {{tl|cite encyclopedia}} it is intended to format a link to the online edition to the ''Dictionary of Canadian Biography Online'' (DCB) so that it appears as a standard citation, while filling in many of the fields base on the fixed identification number and the volume.
  
<nowiki>{{Cite DCB|ID=####|title=}}</nowiki>
+
<nowiki>{{Cite DCB|ID=####|name=}}</nowiki>
  
 
The ID parameter is derived from the "id_nbr" parameter of the articles URL.
 
The ID parameter is derived from the "id_nbr" parameter of the articles URL.
Line 21: Line 21:
 
which produces the following link item:
 
which produces the following link item:
  
:{{Cite DCB|ID=6182|title=Richard Willis Jameson}}
+
:{{Cite DCB|ID=6182|name=Richard Willis Jameson}}
  
 
The ''name'' parameter should be filled out as the entry in the DCB is in the format ''surname'', ''first names'' while Wikipedia entries are in the format  
 
The ''name'' parameter should be filled out as the entry in the DCB is in the format ''surname'', ''first names'' while Wikipedia entries are in the format  
Line 27: Line 27:
 
be used when the name of the biography is different from that of the wikipedia article, such as when the template us used in a reference to another person
 
be used when the name of the biography is different from that of the wikipedia article, such as when the template us used in a reference to another person
  
:<code><nowiki>{{Cite DCB|ID=6186|title=Jenkins, John }}</nowiki></code>
+
:<code><nowiki>{{Cite DCB|ID=6186|name=Jenkins, John }}</nowiki></code>
  
 
which produces the following link item:
 
which produces the following link item:
  
:{{Cite DCB|ID=6186|title=Jenkins, John}}
+
:{{Cite DCB|ID=6186|name=Jenkins, John}}
  
 
In addition the parameters:
 
In addition the parameters:
Line 44: Line 44:
 
are passed through, if specified, to the underlying {{template|cite encyclopedia}} template.  See that template's documentation.
 
are passed through, if specified, to the underlying {{template|cite encyclopedia}} template.  See that template's documentation.
  
:<code><nowiki>{{Cite DCB|ID=6186|title=Jenkins, John |volume=12 |ref=harv}}</nowiki></code>
+
:<code><nowiki>{{Cite DCB|ID=6186|name=Jenkins, John |volume=12 |ref=harv}}</nowiki></code>
 
produces the following link item:
 
produces the following link item:
:{{Cite DCB|ID=6186|title=Jenkins, John |volume=12 |ref=harv}}
+
:{{Cite DCB|ID=6186|name=Jenkins, John |volume=12 |ref=harv}}
  
 
<includeonly>
 
<includeonly>

Revision as of 09:30, 8 March 2012

Usage

This template is a wrapper around {{cite encyclopedia}} it is intended to format a link to the online edition to the Dictionary of Canadian Biography Online (DCB) so that it appears as a standard citation, while filling in many of the fields base on the fixed identification number and the volume.

{{Cite DCB|ID=####|name=}}

The ID parameter is derived from the "id_nbr" parameter of the articles URL.

For example, if the biography item for Richard Willis Jameson is located at this URL:

http://www.biographi.ca/009004-119.01-e.php?&id_nbr=6182

Then the ID parameter in this case is 6182.

Set up the following template line for ID=6182:

{{Cite DCB|ID=6182}}

which produces the following link item:

"Richard Willis Jameson". Dictionary of Canadian Biography (online ed.). University of Toronto Press. 1979–2016.

The name parameter should be filled out as the entry in the DCB is in the format surname, first names while Wikipedia entries are in the format

be used when the name of the biography is different from that of the wikipedia article, such as when the template us used in a reference to another person

{{Cite DCB|ID=6186|name=Jenkins, John }}

which produces the following link item:

"Jenkins, John". Dictionary of Canadian Biography (online ed.). University of Toronto Press. 1979–2016.

In addition the parameters:

  • volume=number or Roman numeral will fill in additional details, including editors and year of publication.
  • ref=harv works as it does in the template {{cite encyclopedia}} and allows this template to be used as a general reference and linked to a short citation.

Finally, the parameters:

  • last=last name (or last1, last2, ...)
  • first=first name (or first1, first2, ...)
  • author=first-name initial last-name (or author1, author2, ...)
  • authorlink=title of Wikipedia article about the author (or authorlink1, authorlink2, ...)

are passed through, if specified, to the underlying {{cite encyclopedia}} template. See that template's documentation.

{{Cite DCB|ID=6186|name=Jenkins, John |volume=12 |ref=harv}}

produces the following link item:

Halpenny, Francess G, ed. (1990). "Jenkins, John". Dictionary of Canadian Biography. XII (1891–1900) (online ed.). University of Toronto Press.CS1 maint: ref=harv (link)