Difference between revisions of "Template:DNBfirst"

From blackwiki
Jump to navigation Jump to search
imported>PBS
(fix for alterations to the code in DNB Cite, but only a half way fix until title and wstitle are seperated out.)
imported>PBS
(simplified with vanilla parameters)
Line 1: Line 1:
The first edition of this text is available as an article on Wikisource:&nbsp;<includeonly>{{DNB Cite
+
{{#if:{{{wstitle|}}}|The first edition of this text is available as an article on Wikisource:|The first edition of this text:}}&nbsp;{{DNB Cite
<!--deal with the two parameters that may not have a lead argument-->
+
  | comment = {{{comment|}}}
<!-- if comment parameter is set use it;
+
  | wstitle = {{{wstitle|}}}
    or if title set    then set comment to arg1 if available;
 
    or if title not set then set comment to arg2 is available.
 
-->
 
  | comment = {{{comment| {{#if: {{{wstitle|{{{title|}}} }}} | {{{1|}}} | {{{2|}}} }} }}}
 
<!--if title parameter is set use it;
 
    if not set then set title to arg1 if available
 
-->
 
  | wstitle = {{{wstitle|{{{title|{{{1|}}} }}} }}}
 
 
<!--Deal with the standard parameters-->
 
<!--Deal with the standard parameters-->
 +
| title = {{{title|}}}
 
  | last = {{{last|}}}
 
  | last = {{{last|}}}
 
  | first = {{{first|}}}
 
  | first = {{{first|}}}
Line 19: Line 12:
 
  | volume = {{{volume|}}}
 
  | volume = {{{volume|}}}
 
  | pages = {{{pages|}}}
 
  | pages = {{{pages|}}}
 +
| page = {{{page|}}}
 
  | quote = {{{quote|}}}
 
  | quote = {{{quote|}}}
}}</includeonly><noinclude>
+
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
[[Category:Missing encyclopedic articles (Dictionary of National Biography)]]
 
[[Category:Missing encyclopedic articles (Dictionary of National Biography)]]
 
</noinclude>
 
</noinclude>

Revision as of 06:00, 19 September 2010

The first edition of this text:  Dictionary of National Biography. London: Smith, Elder & Co. 1885–1900. Missing or empty |title= (help)

Template documentation[view] [edit] [history] [purge]

Usage

Minimum:

  • {{DNBfirst|wstitle=}}

Common:

  • {{DNBfirst|last=|first=|wstitle=|volume=|page=|pages=|display=}}

Parameter description:

  • wstitle or title. Required.
    • wstitle: DNB article name on Wikisource or
    • title: DNB article name (can be coupled with url=)
  • last: Surname of author.
  • first: Firstname(s) of author.
  • volume: Volume in which the entry appears. Used to generate the year and editor information.
  • page or pages: First page and optional last page: e.g. 5–7.
  • ref: defaults to none
  • mode: defaults to cs1 ({{cite book}} style), but can be set to cs2 ({{citation}} style) — effects element separator etc.

Two none standard parameters:

  • display=text — It will display the text on the wikipedia page masking the content of the wstitle= parameter.
  • short=x — to reduce what is displayed.

For a full list of parameters see Template:DNB Cite/doc

See also