Difference between revisions of "Template:Casserley-LocoGrouping3"
Jump to navigation
Jump to search
Template documentation
imported>Redrose64 (put documentation inside doc template; allow ref=) |
imported>Trappist the monk m (cite repair;) |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{cite book | {{cite book | ||
|last1=Casserley | |last1=Casserley | ||
| − | |first1=H.C. | + | |first1=H. C. |
| − | | | + | |author-link1=H. C. Casserley |
|last2=Johnston | |last2=Johnston | ||
|first2=Stuart W. | |first2=Stuart W. | ||
| − | | | + | |name-list-style=amp |
| − | | | + | |orig-date={{#switch:{{{year|}}} |
| − | |year=1974 | + | |1966= |
| + | |#default=1966 | ||
| + | }} | ||
| + | |year={{#if: {{{year|}}} | {{{year|}}} | 1974 }} | ||
|title=Locomotives at the Grouping 3: London, Midland and Scottish Railway | |title=Locomotives at the Grouping 3: London, Midland and Scottish Railway | ||
|location=Shepperton, Surrey | |location=Shepperton, Surrey | ||
| Line 14: | Line 17: | ||
|pages={{{pages|}}} | |pages={{{pages|}}} | ||
|isbn=0-7110-0554-0 | |isbn=0-7110-0554-0 | ||
| − | |ref={{{ref| | + | |ref={{{ref|}}} |
}}<noinclude>{{documentation |content= | }}<noinclude>{{documentation |content= | ||
| Line 23: | Line 26: | ||
<nowiki>{{Casserley-LocoGrouping3 | pages=FOO–BAR}}</nowiki> | <nowiki>{{Casserley-LocoGrouping3 | pages=FOO–BAR}}</nowiki> | ||
<nowiki>{{Casserley-LocoGrouping3 | ref=Baz}}</nowiki> | <nowiki>{{Casserley-LocoGrouping3 | ref=Baz}}</nowiki> | ||
| + | <nowiki>{{Casserley-LocoGrouping3 | year=1966}}</nowiki> | ||
Optional parameters: | Optional parameters: | ||
| Line 28: | Line 32: | ||
* '''pages''' - The relevant page numbers for a specific citation – the "pp." prefix is automatically added | * '''pages''' - The relevant page numbers for a specific citation – the "pp." prefix is automatically added | ||
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 | + | * '''ref''' - ID for anchor; if omitted, the default value {{para|ref|harv}} is used, so that {{tlx|harvnb|Casserley|Johnston|1974|5=p=FOO}} 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 three parameters are passed unchanged to {{tlx|cite book}} - see [[Template:Cite book/doc|that template's documentation]] for further information. | ||
| + | * '''year''' - Defaults to 1974 edition but if set to 1966 allows {{tlx|harvnb|Casserley|Johnston|1966|5=p=FOO}} etc. to link | ||
}} | }} | ||
| − | {{DEFAULTSORT:Casserley, H.C.; Johnston, S.W.}} | + | {{DEFAULTSORT:Casserley, H. C.; Johnston, S. W.}} |
[[Category:Rail transport book citation templates]] | [[Category:Rail transport book citation templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 21:37, 21 October 2020
Casserley, H. C.; Johnston, Stuart W. (1974). Locomotives at the Grouping 3: London, Midland and Scottish Railway. Shepperton, Surrey: Ian Allan. ISBN 0-7110-0554-0. Unknown parameter |orig-date= ignored (help); Unknown parameter |name-list-style= ignored (help)
This template generates a book citation as above, using the {{cite book}} template.
Usage
{{Casserley-LocoGrouping3 | page=FOO}}
{{Casserley-LocoGrouping3 | pages=FOO–BAR}}
{{Casserley-LocoGrouping3 | ref=Baz}}
{{Casserley-LocoGrouping3 | year=1966}}
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 default value
|ref=harvis used, so that{{harvnb|Casserley|Johnston|1974|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.
- year - Defaults to 1974 edition but if set to 1966 allows
{{harvnb|Casserley|Johnston|1966|p=FOO}}etc. to link
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |