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

From blackwiki
Jump to navigation Jump to search
imported>PBS
(some changes including the edition parameter)
imported>PBS
(some changes including the edition parameter removed some less than obvious parameters)
Line 1: Line 1:
 
{{cite encyclopedia
 
{{cite encyclopedia
 +
|encyclopedia={{{encyclopedia|[[Oxford Dictionary of National Biography]]}}}
 +
|edition=online
 +
|publisher={{{publisher|[[Oxford University Press]]}}}
 +
 
  |{{#if:{{{last|}}}    |last    |HIDE_PARAMETER}}={{{last|}}}
 
  |{{#if:{{{last|}}}    |last    |HIDE_PARAMETER}}={{{last|}}}
 
  |{{#if:{{{last1|}}}    |last1    |HIDE_PARAMETER}}={{{last1|}}}
 
  |{{#if:{{{last1|}}}    |last1    |HIDE_PARAMETER}}={{{last1|}}}
Line 22: Line 26:
  
 
  |{{#if:{{{title|}}}    |title    |HIDE_PARAMETER}}={{{title|}}}
 
  |{{#if:{{{title|}}}    |title    |HIDE_PARAMETER}}={{{title|}}}
  |{{#if:{{{article|}}}  |article  |HIDE_PARAMETER}}={{{article|}}}
+
  |{{#if:{{{article|}}}  |title    |HIDE_PARAMETER}}={{{article|}}}
  |{{#if:{{{chapter-url|}}} |chapter-url |HIDE_PARAMETER}}={{{chapter-url|}}}
+
  |{{#if:{{{url|}}}     |url       |HIDE_PARAMETER}}={{{url|}}}
  
 
  |{{#if:{{{doi|}}}        |doi        |HIDE_PARAMETER}}={{{doi|}}}
 
  |{{#if:{{{doi|}}}        |doi        |HIDE_PARAMETER}}={{{doi|}}}
|encyclopedia={{{encyclopedia|[[Oxford Dictionary of National Biography]]}}}
+
 
|edition=online
 
 
  |{{#if:{{{origyear|}}}  |origyear    |HIDE_PARAMETER}}={{{origyear|}}}
 
  |{{#if:{{{origyear|}}}  |origyear    |HIDE_PARAMETER}}={{{origyear|}}}
 
  |{{#if:{{{year|}}}      |year        |HIDE_PARAMETER}}={{{year|}}}
 
  |{{#if:{{{year|}}}      |year        |HIDE_PARAMETER}}={{{year|}}}
 
  |{{#if:{{{date|}}}      |date        |HIDE_PARAMETER}}={{{date|}}}
 
  |{{#if:{{{date|}}}      |date        |HIDE_PARAMETER}}={{{date|}}}
 
  |{{#if:{{{month|}}}      |month      |HIDE_PARAMETER}}={{{month|}}}
 
  |{{#if:{{{month|}}}      |month      |HIDE_PARAMETER}}={{{month|}}}
|{{#if:{{{edition|}}}    |edition    |HIDE_PARAMETER}}={{{edition|}}}
 
 
  |{{#if:{{{accessdate|}}} |accessdate  |HIDE_PARAMETER}}={{{accessdate|}}}
 
  |{{#if:{{{accessdate|}}} |accessdate  |HIDE_PARAMETER}}={{{accessdate|}}}
| publisher={{{publisher|[[Oxford University Press]]}}}
 
 
  |{{#if:{{{archiveurl|}}} |archiveurl  |HIDE_PARAMETER}}={{{archiveurl|}}}
 
  |{{#if:{{{archiveurl|}}} |archiveurl  |HIDE_PARAMETER}}={{{archiveurl|}}}
 
  |{{#if:{{{archivedate|}}}|archivedate |HIDE_PARAMETER}}={{{archivedate|}}}
 
  |{{#if:{{{archivedate|}}}|archivedate |HIDE_PARAMETER}}={{{archivedate|}}}
Line 41: Line 42:
  
 
  <!-- This block is none standard -->
 
  <!-- This block is none standard -->
<!-- |{{#if:{{{id|}}}      |chapter-url |HIDE_PARAMETER}}=http://dx.doi.org/10.1093/ref:odnb/{{{id|}}}-->
 
 
  |{{#if:{{{id|}}}      |doi        |HIDE_PARAMETER}}=10.1093/ref:odnb/{{{id|}}}
 
  |{{#if:{{{id|}}}      |doi        |HIDE_PARAMETER}}=10.1093/ref:odnb/{{{id|}}}
<!--|{{#if:{{{urlname|}}}  |chapter-url |HIDE_PARAMETER}}=http://dx.doi.org/10.1093/ref:odnb/{{{urlname|}}}-->
 
 
<!-- These do not appear in "cite encyclopedia"-->
 
|{{#if:{{{author1link|}}}  |author1link  |HIDE_PARAMETER}}={{{author1link|}}}
 
|{{#if:{{{author2link|}}}  |author2link  |HIDE_PARAMETER}}={{{author2link|}}}
 
|{{#if:{{{deadurl|}}}      |deadurl      |HIDE_PARAMETER}}={{{deadurle|}}}
 
  
 
}} {{ODNBsub}}<noinclude>
 
}} {{ODNBsub}}<noinclude>

Revision as of 15:57, 15 January 2013

Oxford Dictionary of National Biography (online ed.). Oxford University Press. Unknown parameter |HIDE_PARAMETER= ignored (help); Missing or empty |title= (help) 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. 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.