Difference between revisions of "Template:Aldrich-LocosGER7/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Iain Bell
(Initial documentation)
 
blackwiki>Vanisaac
m (→‎Usage: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
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>

Revision as of 22:35, 23 April 2020

Usage

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

Usage

{{Aldrich-LocosGER7 | page=FOO}}
{{Aldrich-LocosGER7 | pages=FOO–BAR}}
{{Aldrich-LocosGER7 | 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|Aldrich|1969|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.