Difference between revisions of "Template:DNB12"
imported>P.T. Aufrette (DNB12, not DNB01; use {{!}} template, as per its documentation) |
imported>P.T. Aufrette (copy and adapt from Template:DNBSupp) |
||
| Line 1: | Line 1: | ||
| − | + | {{#if: {{{no-icon|{{{noicon|}}}<!-- -->}}}|<!--empty-->| | |
| − | {{#if:{{{ | + | <!--else-->{{#ifeq: {{{wstitle|}}}|<!--eq to empty-->| |
| + | <!--then-->[[File:PD-icon.svg|12px|alt=]] | ||
| + | |<!--else-->[[File:Wikisource-logo.svg|12px|alt=]] }}<!--endif | ||
| + | -->}}{{{prescript|{{#ifeq: {{{inline|}}} |<!--eq to empty-->|<!-- | ||
| + | then display-->This article | ||
| + | |<!--else display-->One or more of the preceding sentences | ||
| + | }}<!-- no white space | ||
| + | --> incorporates text from a publication now in the [[public domain]]: }}}<!-- no white space | ||
| + | -->{{cite DNB12 | ||
| + | | no-icon=1 | ||
| + | | last = {{{last|}}} | ||
| + | | first = {{{first|}}} | ||
| + | | author = {{{author|}}} | ||
| + | | authorlink = {{{authorlink|}}} | ||
| + | | coauthors = {{{coauthors|}}} | ||
| + | | wstitle = {{{wstitle|}}} | ||
| + | | title = {{{title|}}} | ||
| + | | url = {{{url|}}} | ||
| + | | accessdate = {{{accessdate|}}} | ||
| + | | volume = {{{volume|}}} | ||
| + | | page = {{{page|}}} | ||
| + | | pages = {{{pages|}}} | ||
| + | | quote = {{{quote|}}} | ||
| + | | ref = harv | ||
| + | }}<includeonly> | ||
| + | {{#if:{{{wstitle|}}} | ||
|[[Category:Articles incorporating DNB12 text with Wikisource reference]] | |[[Category:Articles incorporating DNB12 text with Wikisource reference]] | ||
|[[Category:Articles incorporating DNB12 text without Wikisource reference]] | |[[Category:Articles incorporating DNB12 text without Wikisource reference]] | ||
| + | }}{{#if:{{{1|}}} | ||
| + | |[[Category:Articles incorporating DNB12 template with an unnamed parameter]] | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
[[Category:Dictionary of National Biography templates|{{PAGENAME}}]] | [[Category:Dictionary of National Biography templates|{{PAGENAME}}]] | ||
| − | [[Category:Attribution templates|DNB (1912 | + | [[Category:Attribution templates|DNB (1912 Supplement)]] |
</noinclude> | </noinclude> | ||
Revision as of 21:44, 27 March 2011
This article incorporates text from a publication now in the public domain: Dictionary of National Biography (2nd supplement). London: Smith, Elder & Co. 1912. Missing or empty |title= (help)CS1 maint: ref=harv (link)
Purpose
To apply a text tag to articles where the 1912 supplement to the DNB has been used as a point of reference for constructing the article.
Usage
There are two methods to apply:
Method one: Plain
The template without any parameters:
{{DNB12}}produces:
This article incorporates text from a publication now in the public domain: Dictionary of National Biography (2nd supplement). London: Smith, Elder & Co. 1912. Missing or empty |title=(help)CS1 maint: ref=harv (link)
Method two: Piped
The template with one parameter (pipe symbol and article name) that links to the associated article at Wikisource's Dictionary of National Biography, 1912 Supplement:
{{DNB12|wstitle=Perowne, Edward Henry}}produces:
This article incorporates text from a publication now in the public domain: "Perowne, Edward Henry". Dictionary of National Biography (2nd supplement). London: Smith, Elder & Co. 1912.CS1 maint: ref=harv (link)
Hidden category
This template includes one of two hidden subcategories of category Category:Wikipedia articles incorporating text from the Dictionary of National Biography. If a "Piped" template is used, Category:Articles incorporating DNB12 text with Wikisource reference is included. If a "plain" template is used, Category:Articles incorporating DNB12 text without Wikisource reference is included. In either case the category does not appear at the bottom of the article page, but the article is listed on the category page.
See also
{{#lst:Template:Cite DNB/doc|DNB_see_also}}
| The above documentation is transcluded from Template:DNB12/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. |