Difference between revisions of "Template:DNBfirst/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>PBS
(copy of new experimental code)
 
imported>PBS
(whoops)
Line 5: Line 5:
 
     or if title not set then set comment to arg2 is available.
 
     or if title not set then set comment to arg2 is available.
 
-->
 
-->
  | comment = {{{comment| {{#if: {{{wstitle|title|}}} }}} | {{{1|}}} | {{{2|}}} }} }}}
+
  | comment = {{{comment| {{#if: {{{wstitle|{{{title|}}} }}} | {{{1|}}} | {{{2|}}} }} }}}
 
<!--if title parameter is set use it;
 
<!--if title parameter is set use it;
 
     if not set then set title to arg1 if available
 
     if not set then set title to arg1 if available

Revision as of 00:07, 19 September 2010

The first edition of this text is available as an article on Wikisource: 

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