Revision as of 07:51, 17 October 2011 editGadget850 (talk | contribs)115,579 edits accessdate← Previous edit | Latest revision as of 13:36, 19 March 2024 edit undoSilverLocust (talk | contribs)Autopatrolled, Administrators25,273 edits sandboxing current text plus suggested edit with modification | ||
(25 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#invoke:template wrapper|{{#if:{{{_debug|}}}|list|wrap}}|_template=cite encyclopedia | |||
{{cite encyclopedia | |||
|_exclude=freearticle, id, _debug | |||
| last={{{last|{{{last1|{{{author|{{{author1|{{{authors|}}}}}}}}}}}}}}} | |||
|_alias-map=accessdate:access-date,authorlink:author-link,origyear:orig-date | |||
| first={{{first|{{{first1|}}}}}} | |||
| authorlink={{{author-link|{{{authorlink|{{{author1-link|{{{authorlink1|{{{author1link|}}}}}}}}}}}}}}} | |||
⚫ | |encyclopedia=] | ||
| last2={{{last2|{{{author2|}}}}}} | |||
|edition=online | |||
| first2={{{first2|}}} | |||
⚫ | |publisher=Oxford University Press | ||
| authorlink2={{{author2-link|{{{authorlink2|{{{author2link|}}}}}}}}} | |||
|doi={{#if:{{{id|}}}|10.1093/ref:odnb/{{{id|}}}}} | |||
|doi-access={{#if:{{{doi|}}}{{{id|}}}|{{#if:{{{freearticle|}}}|free}}}} | |||
|url-access={{#if:{{{url|}}}|{{#if:{{{freearticle|}}}||subscription}}}} | |||
| doi={{{doi|}}} | |||
}}{{#if:{{{freearticle|}}}| | {{ODNBsub|sentence=yes}}}}<!-- | |||
⚫ | |||
-->{{main other|]}}<!-- | |||
| year={{{year|{{ <!-- attempt to derive year from date, if possible --> | |||
-->{{#if:{{both|{{{id|}}}|{{{doi|}}}}}|]|<!-- id with doi | |||
#if: {{{date|}}} | |||
--> {{#if:{{{id|}}}|]}}}}<!-- id without doi | |||
|{{ | |||
--></includeonly><noinclude> | |||
#iferror:{{#time:Y|{{{date|}}} }} | |||
{{Cite ODNB|title={{{title}}}}} | |||
|{{#iferror:{{#time:Y|{{{publication-date|einval}}} }}||{{#time:Y|{{{publication-date|}}} }}}} | |||
|{{#time:Y|{{{date|}}} }} | |||
}} | |||
|{{{publication-date|}}} <!-- last resort --> | |||
}} | |||
}}} | |||
| date={{#if:{{{date|}}}|{{{date}}}|{{{day|}}} {{{month|}}} {{{year|{{{publication-date|}}}}}}}} | |||
| edition={{{edition|}}} | |||
| accessdate={{{access-date|{{{accessdate|}}}}}} | |||
| ref={{{ref|}}} | |||
⚫ | |||
| archiveurl={{{archiveurl|}}} | |||
| archivedate={{{archivedate|}}} | |||
| deadurl= {{{deadurl|}}} | |||
| quote = {{{quote|}}} | |||
| ref={{{ref|}}} | |||
}} ({{ODNBsub}})<noinclude> | |||
] | |||
{{Documentation}} | {{Documentation}} | ||
{{template sandbox notice}} | |||
</noinclude> | </noinclude> |
Latest revision as of 13:36, 19 March 2024
"{{{title}}}". Oxford Dictionary of National Biography (online ed.). Oxford University Press. (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. |
This 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:
|title=name of the ODNB article
|doi=doi
—use where available on the ODNB page|id=number
—Use ONLY if a doi is not available. This is a nonstandard parameter and consists of the "article number" (often the last set of digits of a biography URL). Avoid if possible as it as it does not always generate the correct link|url=URL of the ODNB article
—Can be used with or in place of the parameterid=
. Is essential for ODNB some non-biography articles such as "Themes" which neither have a doi nor conform to the usual ODNB url biography format.- Example:
- Patrick Little, ‘Major-generals (act. 1655–1657)’, Oxford Dictionary of National Biography, Oxford University Press. http://www.oxforddnb.com/view/theme/95468
- This can be handled like this (url):
{{Cite ODNB|first=Patrick|last=Little|title=Major-generals (act. 1655–1657)|url=http://www.oxforddnb.com/view/theme/95468}}
- Little, Patrick. "Major-generals (act. 1655–1657)". Oxford Dictionary of National Biography (online ed.). Oxford University Press. (Subscription or UK public library membership required.)
- or like this (doi):
{{Cite ODNB|first=Patrick|last=Little|title=Major-generals (act. 1655–1657)|doi=10.1093/ref:odnb/95468}}
- Little, Patrick. "Major-generals (act. 1655–1657)". Oxford Dictionary of National Biography (online ed.). Oxford University Press. doi:10.1093/ref:odnb/95468. (Subscription or UK public library membership required.)
- or like this (id):
{{Cite ODNB|first=Patrick|last=Little|title=Major-generals (act. 1655–1657)|id=95468}}
- Little, Patrick. "Major-generals (act. 1655–1657)". Oxford Dictionary of National Biography (online ed.). Oxford University Press. doi:10.1093/ref:odnb/95468. (Subscription or UK public library membership required.)
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.
|freearticle=y
{{Cite ODNB|id=37018|title=Woolf , (Adeline) Virginia|first=Lyndall|last=Gordon|freearticle=y}}
- Gordon, Lyndall. "Woolf , (Adeline) Virginia". Oxford Dictionary of National Biography (online ed.). Oxford University Press. doi:10.1093/ref:odnb/37018.
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.
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template. Category: