Difference between revisions of "Template:Durrant-Garratt-Rev/doc"

From blackwiki
Jump to navigation Jump to search
imported>Bahnfrend
(new doc subpage)
 
imported>Vanisaac
m (→‎Usage: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 17: Line 17:
  
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
<includeonly>{{Sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
{{DEFAULTSORT:Durrant, A E; 1981}}
 
{{DEFAULTSORT:Durrant, A E; 1981}}
 
[[Category:Rail transport book citation templates]]
 
[[Category:Rail transport book citation templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 00:45, 25 April 2020

Usage

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

{{Durrant-Garratt-Rev | page=xx}}
{{Durrant-Garratt-Rev | pages=xx–yy}}
{{Durrant-Garratt-Rev | ref=ID}}
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|Durrant|1981|p=FOO}}, {{sfn|Durrant|1981|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.