Difference between revisions of "Template:Daniels-NoMore"

From blackwiki
Jump to navigation Jump to search
imported>Redrose64
(year, isbn and oclc all relate to the second edition)
imported>Redrose64
(add info for 1st and 3rd editions plus trap for no |edition= specified)
Line 3: Line 3:
 
| first1      = Gerald   
 
| first1      = Gerald   
 
| last2  = Dench
 
| last2  = Dench
| first2 = L. A.
+
| first2 = Les A.
| date      = May 1973  
+
| date      = {{#switch:{{{edition|}}} |1st=September 1964 |2nd=May 1973 |3rd=November 1980 }}
| edition    = 2nd
+
| edition    = {{{edition|}}}
 
| title      = Passengers No More
 
| title      = Passengers No More
 
| location  = Shepperton  
 
| location  = Shepperton  
 
| publisher  = [[Ian Allan]]
 
| publisher  = [[Ian Allan]]
| isbn      = 0-7110-0438-2
+
| isbn      = {{#switch:{{{edition|}}} |2nd=0-7110-0438-2 |3rd=0-7110-0951-1 }}
 
| page      = {{{page|}}}
 
| page      = {{{page|}}}
 
| pages      = {{{pages|}}}
 
| pages      = {{{pages|}}}
| oclc      = 2554248
+
| oclc      = {{#ifeq:{{{edition|}}}|2nd|2554248}}
| ref        = {{{ref|harv}}}
+
| ref        = {{{ref|{{#if:{{{edition|}}}|harv}} }}}
|origyear=1964
+
|origyear={{#ifeq:{{{edition|}}}|1st||1964}}
|id=1513 CEC 573
+
|id={{#switch:{{{edition|}}} |1st=VPNM/1354/138/CXX-964 |2nd=1513 CEC 573 <!-- reprints may be 182 CM 674 --> |3rd= }}
}}<noinclude>{{documentation |content=
+
}}{{#if:{{{edition|}}}||&#32;<span style="font-size:100%" class="error citation-comment">No <code style="color:inherit; border:inherit; padding:inherit;">&#x7C;edition=</code> specified ([[Template:Daniels-NoMore#Edition|help]])</span>}}<noinclude>{{documentation |content=
  
 
This template generates a book citation as above, using the {{tlx|cite book}} template.
 
This template generates a book citation as above, using the {{tlx|cite book}} template.
  
 
==Usage==
 
==Usage==
  <nowiki>{{Daniels-NoMore |page=FOO }}</nowiki>
+
  <nowiki>{{Daniels-NoMore |edition=1st |page=FOO }}</nowiki>
  <nowiki>{{Daniels-NoMore |pages=FOO–BAR }}</nowiki>
+
  <nowiki>{{Daniels-NoMore |edition=2nd |pages=FOO–BAR }}</nowiki>
 
  <nowiki>{{Daniels-NoMore |ref=Baz }}</nowiki>
 
  <nowiki>{{Daniels-NoMore |ref=Baz }}</nowiki>
  
 
Optional parameters:
 
Optional parameters:
 
+
* '''edition''' – see [[#Edition|below]]
 
* '''page''' - The relevant page number for a specific citation — the "p." prefix is added automatically
 
* '''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
 
* '''pages''' - The relevant page numbers for a specific citation — the "pp." prefix is added automatically
 
If both {{para|page}} and {{para|pages}} are specified, {{para|page}} is ignored.
 
If both {{para|page}} and {{para|pages}} are specified, {{para|page}} is ignored.
* '''ref''' - ID for anchor; if omitted, the special value {{para|ref|harv}} is used.
+
* '''ref''' - ID for anchor; if omitted, and {{para|edition}} is set, the special value {{para|ref|harv}} is used, so that {{tlx|harvnb|Daniels|Dench|1964|5=p=FOO}} {{tlx|harvnb|Daniels|Dench|1973|5=pp=FOO–BAR}} etc. will link.
Apart from the default value {{para|ref|harv}}, the three parameters are passed unchanged to {{tlx|cite book}} - see [[Template:Cite book/doc|that template's documentation]] for further information.
+
Apart from the default value {{para|ref|harv}}, the four parameters are passed unchanged to {{tlx|cite book}} - see [[Template:Cite book/doc|that template's documentation]] for further information.
 +
 
 +
===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.
 +
 
 +
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.
 +
*{{Daniels-NoMore |edition=1st }}
 +
*{{Daniels-NoMore |edition=2nd }}
 +
*{{Daniels-NoMore |edition=3rd }}
 
}}
 
}}
 
{{DEFAULTSORT:Daniels, Gerald}}
 
{{DEFAULTSORT:Daniels, Gerald}}
 
[[Category:Rail transport book citation templates]]
 
[[Category:Rail transport book citation templates]]
 
</noinclude>
 
</noinclude>

Revision as of 14:22, 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 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.

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.CS1 maint: ref=harv (link)