Difference between revisions of "Template:Cite ODNB"

From blackwiki
Jump to navigation Jump to search
imported>Rich Farmbrough
(Add auto url)
imported>Trappist the monk
(Undid revision 853254431 by Rich Farmbrough (talk) broke rather a lot of cs1|2 templates with a url – wikilink error;)
Line 1: Line 1:
{{Cite encyclopedia
+
{{cite encyclopedia
 
  |encyclopedia={{{encyclopedia|[[Dictionary of National Biography#Oxford Dictionary of National Biography|Oxford Dictionary of National Biography]]}}}
 
  |encyclopedia={{{encyclopedia|[[Dictionary of National Biography#Oxford Dictionary of National Biography|Oxford Dictionary of National Biography]]}}}
 
  |edition={{{edition|online}}}
 
  |edition={{{edition|online}}}
Line 55: Line 55:
 
  |{{#if:{{{quote|}}}      |quote      |HIDE_PARAMETER37}}={{{quote|}}}
 
  |{{#if:{{{quote|}}}      |quote      |HIDE_PARAMETER37}}={{{quote|}}}
 
-->
 
-->
  <!-- These blocks are non-standard -->
+
 
<!-- Create the doi from the id -->
+
  <!-- This block is non-standard -->
 
  |{{#if:{{{id|}}}|{{#if:{{{doi|}}}|HIDE_PARAMETER38|doi}}|HIDE_PARAMETER38}}={{#if:{{{id|}}}|{{#if:{{{doi|}}}||10.1093/ref:odnb/{{{id|}}}}}}}
 
  |{{#if:{{{id|}}}|{{#if:{{{doi|}}}|HIDE_PARAMETER38|doi}}|HIDE_PARAMETER38}}={{#if:{{{id|}}}|{{#if:{{{doi|}}}||10.1093/ref:odnb/{{{id|}}}}}}}
 
<!-- Create the url from the id note that https does not work for the view url for non-free pages ATM -->
 
|{{#if:{{{id|}}}|{{#if:{{{url|}}}|HIDE_PARAMETER39|url}}|HIDE_PARAMETER39}}={{#if:{{{id|}}}|{{#if:{{{url|}}}||http://www.oxforddnb.com/view/10.1093/ref:odnb/9780198614128.001.0001/odnb-9780198614128-e-{{{id|}}}}}}}
 
  
 
}} {{#if:{{{freearticle|}}}| |{{ODNBsub|sentence=yes}}}}<!--
 
}} {{#if:{{{freearticle|}}}| |{{ODNBsub|sentence=yes}}}}<!--

Revision as of 15:06, 3 August 2018

Oxford Dictionary of National Biography (online ed.). Oxford University Press. Missing or empty |title= (help)CS1 maint: ref=harv (link) Template:ODNBsub

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


Usage

{{Cite ODNB|id=ODNB article number|title=ODNB article name}}

For example, {{Cite ODNB|id=29986|title=Worsley, Sir Richard}} displays:

"Worsley, Sir Richard". Oxford Dictionary of National Biography (online ed.). Oxford University Press. doi:10.1093/ref:odnb/29986.CS1 maint: ref=harv (link) Template:ODNBsub

List of supported parameters

This template supports all parameters that are supported by {{cite encyclopedia}}. These few are pre-set within the template (may be overridden):

  • |encyclopedia=[[Oxford Dictionary of National Biography]]
  • |edition=online
  • |publisher=[[Oxford University Press]]

Article titles and identification:

Years and dates

  • |origyear=original year — The initial year of publication is usually 2004; if the entry has been updated, the current year parameter may be different.
  • |year=year of ODNB article publication
  • |date=date of ODNB article publication — If date and year parameters are both set then date parameter value is displayed but year parameter value is used by templates such as {{harvnb}}.
  • |access-date= — Not needed as the ODNB has both date of article modification, a builtin archive and a doi structure; if used, requires |url=

Some articles are freely available to the public, such as Virginia Woolf. In those cases, you can add the |freearticle= parameter.

Hidden categories

This template places articles that incorporate it into an administrative hidden category:

Pages using both |id= and |doi= are tracked in Category:Pages using cite ODNB with both doi and id parameters

See also

  • {{ODNBsub}} — A subscription template used as a postscript by this template.
  • {{DNBfirst}} — Can be placed on the same line as {{Cite ODNB}} to allow readers who do not have access to ODNB to see older versions of the text now in the public domain. This is particularly useful if there is a version of the text available on Wikisource. Please refrain from using this template if the same DNB article is already available in the Wikipedia article via {{Cite DNB}} or {{DNB}}.
  • {{Who's Who}}
  • Wikipedia:WikiProject Dictionary of National Biography.
  • {{Subscription or libraries}} — A template for use when a subscription may be required or the source may be at a library.