Difference between revisions of "Template:ClementsMcMahon-GSR Locomotives/doc"

From blackwiki
Jump to navigation Jump to search
imported>Pppery
imported>Slambo
m (update after template page move)
 
(One intermediate revision by one other user not shown)
Line 6: Line 6:
  
 
== Usage ==
 
== Usage ==
  <nowiki>{{978-1-906578-26-8 | page=FOO}}</nowiki>
+
  <nowiki>{{ClementsMcMahon-GSR Locomotives | page=FOO}}</nowiki>
  <nowiki>{{978-1-906578-26-8 | pages=FOO–BAR}}</nowiki>
+
  <nowiki>{{ClementsMcMahon-GSR Locomotives | pages=FOO–BAR}}</nowiki>
  <nowiki>{{978-1-906578-26-8 | ref=Baz}}</nowiki>
+
  <nowiki>{{ClementsMcMahon-GSR Locomotives | ref=Baz}}</nowiki>
  
 
Optional parameters:
 
Optional parameters:
Line 18: Line 18:
  
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- Categories and interwikis go here: -->
 
<!-- Categories and interwikis go here: -->
 
[[Category:Rail transport book citation templates]]
 
[[Category:Rail transport book citation templates]]
  
</includeonly>
+
}}</includeonly>

Latest revision as of 18:01, 19 October 2020

Usage

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

Usage

{{ClementsMcMahon-GSR Locomotives | page=FOO}}
{{ClementsMcMahon-GSR Locomotives | pages=FOO–BAR}}
{{ClementsMcMahon-GSR Locomotives | ref=Baz}}

Optional parameters:

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

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

  • ref - ID for anchor; if omitted, the special value |ref=harv is used, so that {{harvnb|Clements|McMahon|2008|p=FOO}} etc. will link.

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