Difference between revisions of "Template:Cite ANB"
imported>Jonesey95 (Fix empty citation, unnamed or unsupported parameter, or invalid parameter value; see Help:CS1 errors) |
imported>Howcheng (copy from sandbox) |
||
| Line 1: | Line 1: | ||
| − | {{ | + | {{#invoke:template wrapper|{{#if:{{{_debug|}}}|list|wrap}}|_template=cite encyclopedia |
| − | + | |_exclude=freearticle, id, _debug | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | |year={{{year|1999}}} | |
| − | + | |encyclopedia={{{encyclopedia|[[American National Biography]]}}} | |
| − | + | |edition={{#if:{{{id|}}}|{{{edition|online}}}|}} | |
| − | + | |publisher={{{publisher|Oxford University Press}}} | |
| + | |location={{{location|New York}}} | ||
| + | |ref={{{ref|harv}}} | ||
| − | + | |doi={{{doi|{{#if:{{{id|}}}|10.1093/anb/9780198606697.article.{{{id|}}}}}}}} | |
| − | |||
| − | + | |doi-access={{{doi-access|{{#if:{{{doi|}}}{{{id|}}}|{{#if:{{{freearticle|}}}|free}}}}}}} | |
| − | + | |url-access={{{url-access|{{#if:{{{url|}}}|{{#if:{{{freearticle|}}}||subscription}}}}}}} | |
| − | + | }}{{#if:{{{freearticle|}}} and {{{id|}}} | | {{subscription required}}}}<noinclude> | |
| − | |||
| − | |||
| − | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 20:06, 25 January 2020
American National Biography. New York: Oxford University Press. 1999. Missing or empty |title= (help)CS1 maint: ref=harv (link)
Purpose
This template facilitates the citation of articles from the American National Biography in the manner of {{Cite encyclopedia}}.
Usage
{{Cite ANB|title=ANB article name}}
Full list of implemented parameters:
- Filled out by this template (but may be overridden):
|year=1999(|date=will override this)|encyclopedia=[[American National Biography]]|location=New York|publisher=Oxford University Press|ref=harv
- Article titles and identifiers
|title=<name of the ANB article>|id=<number>– This is nonstandard and consists of the "article number" (the last set of digits of an ANB doi or biography URL); creates an internal doi if|doi=not present- In the following examples, the bold portion is the ID (1201523).
https://www.anb.org/view/10.1093/anb/9780198606697.001.0001/anb-9780198606697-e-1201523https://doi.org/10.1093/anb/9780198606697.article.1201523
- In the following examples, the bold portion is the ID (1201523).
|doi=<doi>– Can be used instead of the parameter|id=|url=<URL of the ANB article>– Can be used with or in place of the parameters|id=or|doi=
- Some articles are freely available to the public, such as Shirley Chisholm. In those cases, you can add the
freearticleparameter.|freearticle=y(or omit)
{{cite ANB |id=0700831 |title=Chisholm, Shirley |first=Edward L. |last=Lach Jr. |freearticle=y}}- Lach Jr., Edward L. (1999). "Chisholm, Shirley". American National Biography (online ed.). New York: Oxford University Press. doi:10.1093/anb/9780198606697.article.0700831.CS1 maint: ref=harv (link)
See the documentation at {{Cite encyclopedia}} for an explanation of other parameters.
Examples
{{Cite ANB|title=Jacobi, Abraham}}
displays as:
"Jacobi, Abraham". American National Biography. New York: Oxford University Press. 1999.CS1 maint: ref=harv (link)
and (parameter order does not matter)
{{Cite ANB |title=Jacobi, Abraham |volume=11 |pages=782-784 |year=2000 |first=Fred |last=Flintstone}}
displays as:
Flintstone, Fred (2000). "Jacobi, Abraham". American National Biography. 11. New York: Oxford University Press. pp. 782–784.CS1 maint: ref=harv (link)
| The above documentation is transcluded from Template:Cite ANB/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |