Difference between revisions of "Template:Daniels-NoMore"

From blackwiki
Jump to navigation Jump to search
imported>Redrose64
(add info for 1st and 3rd editions plus trap for no |edition= specified)
imported>Redrose64
(OCLC for 3rd ed)
Line 12: Line 12:
 
| page      = {{{page|}}}
 
| page      = {{{page|}}}
 
| pages      = {{{pages|}}}
 
| pages      = {{{pages|}}}
| oclc      = {{#ifeq:{{{edition|}}}|2nd|2554248}}
+
| oclc      = {{#switch:{{{edition|}}}|2nd=2554248 |3rd=16551162 }}
 
| ref        = {{{ref|{{#if:{{{edition|}}}|harv}} }}}
 
| ref        = {{{ref|{{#if:{{{edition|}}}|harv}} }}}
 
|origyear={{#ifeq:{{{edition|}}}|1st||1964}}
 
|origyear={{#ifeq:{{{edition|}}}|1st||1964}}
Line 34: Line 34:
  
 
===Edition===
 
===Edition===
This book was first published in September 1964, and a second edition was published in May 1973 with a third in November 1980. Each successive edition expanded on the previous, to include stations that had closed in the meantime; accordingly, the pagination is very different.
+
This book was first published in September 1964, and a second edition (110 pages) was published in May 1973 with a third (144 pages) in November 1980. Each successive edition expanded on the previous, to include stations that had closed in the meantime; accordingly, the pagination is very different.
  
 
The {{para|edition}} parameter is used to set appropriate values for six of the parameters passed to {{tlx|cite book}}. Valid values are {{para|edition|1st}}, {{para|edition|2nd}} or {{para|edition|3rd}} If this parameter is not set, those six items are not shown.
 
The {{para|edition}} parameter is used to set appropriate values for six of the parameters passed to {{tlx|cite book}}. Valid values are {{para|edition|1st}}, {{para|edition|2nd}} or {{para|edition|3rd}} If this parameter is not set, those six items are not shown.

Revision as of 14:36, 20 March 2015

Daniels, Gerald; Dench, Les A. Passengers No More. Shepperton: Ian Allan. No |edition= specified (help)

Template documentation

This template generates a book citation as above, using the {{cite book}} template.

Usage

{{Daniels-NoMore |edition=1st |page=FOO }}
{{Daniels-NoMore |edition=2nd |pages=FOO–BAR }}
{{Daniels-NoMore |ref=Baz }}

Optional parameters:

  • edition – see below
  • page - The relevant page number for a specific citation — the "p." prefix is added automatically
  • pages - The relevant page numbers for a specific citation — the "pp." prefix is added automatically

If both |page= and |pages= are specified, |page= is ignored.

  • ref - ID for anchor; if omitted, and |edition= is set, the special value |ref=harv is used, so that {{harvnb|Daniels|Dench|1964|p=FOO}} {{harvnb|Daniels|Dench|1973|pp=FOO–BAR}} etc. will link.

Apart from the default value |ref=harv, the four parameters are passed unchanged to {{cite book}} - see that template's documentation for further information.

Edition

This book was first published in September 1964, and a second edition (110 pages) was published in May 1973 with a third (144 pages) in November 1980. Each successive edition expanded on the previous, to include stations that had closed in the meantime; accordingly, the pagination is very different.

The |edition= parameter is used to set appropriate values for six of the parameters passed to {{cite book}}. Valid values are |edition=1st, |edition=2nd or |edition=3rd If this parameter is not set, those six items are not shown.

  • Daniels, Gerald; Dench, Les A. (September 1964). Passengers No More (1st ed.). Shepperton: Ian Allan. VPNM/1354/138/CXX-964.CS1 maint: ref=harv (link)
  • Daniels, Gerald; Dench, Les A. (May 1973) [1964]. Passengers No More (2nd ed.). Shepperton: Ian Allan. ISBN 0-7110-0438-2. OCLC 2554248. 1513 CEC 573.CS1 maint: ref=harv (link)
  • Daniels, Gerald; Dench, Les A. (November 1980) [1964]. Passengers No More (3rd ed.). Shepperton: Ian Allan. ISBN 0-7110-0951-1. OCLC 16551162.CS1 maint: ref=harv (link)