Misplaced Pages

Template:Cite ODNB/sandbox: Difference between revisions

Article snapshot taken from[REDACTED] with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< Template:Cite ODNB Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 22:16, 5 November 2011 editPBS (talk | contribs)Autopatrolled116,854 edits add origyear← Previous edit Revision as of 23:43, 5 November 2011 edit undoPBS (talk | contribs)Autopatrolled116,854 edits alternative format with no built in logic. Instead all the set parameters are passed on to cite encyclopediaNext edit →
Line 1: Line 1:
{{cite encyclopedia {{cite encyclopedia
|{{#if:{{{last|}}} |last |HIDE_PARAMETER}}={{{last|}}}
| last={{{last|{{{last1|{{{author|{{{author1|{{{authors|}}}}}}}}}}}}}}}
|{{#if:{{{last1|}}} |last1 |HIDE_PARAMETER}}={{{last1|}}}
| first={{{first|{{{first1|}}}}}}
|{{#if:{{{author|}}} |author |HIDE_PARAMETER}}={{author|}}}
| authorlink={{{author-link|{{{authorlink|{{{author1-link|{{{authorlink1|{{{author1link|}}}}}}}}}}}}}}}
|{{#if:{{{author1|}}} |author1 |HIDE_PARAMETER}}={{author1|}}}
| last2={{{last2|{{{author2|}}}}}}
|{{#if:{{{authors|}}} |authors |HIDE_PARAMETER}}={{authors|}}}
| first2={{{first2|}}}

| authorlink2={{{author2-link|{{{authorlink2|{{{author2link|}}}}}}}}}
|{{#if:{{{first|}}} |first |HIDE_PARAMETER}}={{first|}}}
| title={{{title|{{{article|{{PAGENAME}}}}}}}}

| chapter-url={{#if:{{{id|}}}|http://dx.doi.org/10.1093/ref:odnb/{{{id|{{{urlname|default}}}}}}}}
|{{#if:{{{authorlink|}}} |authorlink |HIDE_PARAMETER}}={{authorlink|}}}
| doi={{{doi|}}}
|{{#if:{{{author-link|}}} |author-link |HIDE_PARAMETER}}={{author-link|}}}
| encyclopedia=]
|{{#if:{{{origyear|}}} |origyear |HIDE_PARAMETER}}={{{origyear|}}} |{{#if:{{{author1-link|}}} |author1-link |HIDE_PARAMETER}}={{author1-link|}}}
|{{#if:{{{authorlink1|}}} |authorlink1 |HIDE_PARAMETER}}={{authorlink1|}}}
| year={{{year|}}}
| date={{{date|}}}
|{{#if:{{{last2|}}} |last2 |HIDE_PARAMETER}}={{{last2|}}}
| month={{{month|}}}
|{{#if:{{{author2|}}} |author2 |HIDE_PARAMETER}}={{{author2|}}}
| edition={{{edition|}}}
|{{#if:{{{first2|}}} |first2 |HIDE_PARAMETER}}={{first2|}}}
| accessdate={{{accessdate|}}}

| publisher=]
|{{#if:{{{authorlink2|}}} |authorlink2 |HIDE_PARAMETER}}={{authorlink2|}}}
| archiveurl={{{archiveurl|}}}
|{{#if:{{{author2-link|}}} |author2-link |HIDE_PARAMETER}}={{author2-link|}}}
| archivedate={{{archivedate|}}}

| deadurl= {{{deadurl|}}}
|{{#if:{{{title|}}} |title |HIDE_PARAMETER}}={{{title|}}}
| quote = {{{quote|}}}
|{{#if:{{{article|}}} |article |HIDE_PARAMETER}}={{{article|}}}
| ref={{{ref|}}}
|{{#if:{{{chapter-url|}}} |chapter-url |HIDE_PARAMETER}}={{{chapter-url|}}}

|{{#if:{{{doi|}}} |doi |HIDE_PARAMETER}}={{{doi|}}}
| encyclopedia={{{encyclopedia|]}}}
|{{#if:{{{origyear|}}} |origyear |HIDE_PARAMETER}}={{{origyear|}}}
|{{#if:{{{year|}}} |year |HIDE_PARAMETER}}={{{year|}}}
|{{#if:{{{date|}}} |date |HIDE_PARAMETER}}={{{date|}}}
|{{#if:{{{month|}}} |month |HIDE_PARAMETER}}={{{month|}}}
|{{#if:{{{edition|}}} |edition |HIDE_PARAMETER}}={{{edition|}}}
|{{#if:{{{accessdate|}}} |accessdate |HIDE_PARAMETER}}={{{accessdate|}}}
| publisher={{{publisher|]}}}
|{{#if:{{{archiveurl|}}} |archiveurl |HIDE_PARAMETER}}={{{archiveurl|}}}
|{{#if:{{{archivedate|}}}|archivedate |HIDE_PARAMETER}}={{{archivedate|}}}
|{{#if:{{{quote|}}} |quote |HIDE_PARAMETER}}={{{quote|}}}
|{{#if:{{{ref|}}} |ref |HIDE_PARAMETER}}={{{ref|}}}

<!-- This block is none standard -->
|{{#if:{{{id|}}} |chapter-url |HIDE_PARAMETER}}=http://dx.doi.org/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 23:43, 5 November 2011

Oxford Dictionary of National Biography. Oxford University Press. {{cite encyclopedia}}: Cite has empty unknown parameter: |HIDE_PARAMETER= (help); Missing or empty |title= (help) ((subscription or UK public library membership required))

This is the template sandbox page for Template:Cite ODNB (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 20,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
This template is a Citation Style 1 wrapper template based on {{Cite encyclopedia}}. For centralised Citation Style 1 discussions, see Help talk:Citation Style 1.


Usage

{{Cite ODNB|doi=ODNB doi|title=ODNB article name}}

For example, {{Cite ODNB|doi=10.1093/ref:odnb/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. (Subscription or UK public library membership required.)

List of supported parameters

This template supports all parameters that are supported by {{cite encyclopedia}}.

Several parameters have pre-set defaults (but may be overridden):

  • |encyclopedia=]
  • |edition=online
  • |publisher=]

To override the defaults, type the parameter and a value, like {{Cite ODNB|encyclopedia=Oxford Dictionary of National Biography|edition=14th}}

Article author (for the full set of author parameters, see {{cite encyclopedia}}):

  • |first=first name of the article author, if present
  • |last=last name of the article author, if present

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—Only set both date and year parameters if date is in YYYY-MM-DD format. In such cases the 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 optional |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 Misplaced Pages article via {{Cite DNB}} or {{DNB}}.
  • {{Who's Who}}
  • Misplaced Pages: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.
The above documentation is transcluded from Template:Cite ODNB/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
This is the template sandbox page for Template:Cite ODNB (diff). See also the companion subpage for test cases.
Categories:
Template:Cite ODNB/sandbox: Difference between revisions Add topic