Template:Bookref/doc: Difference between revisions

no edit summary
(→‎Valid parameters: Not a Prima guide I think, so changing to MED-Guide.)
Tags: Mobile edit Mobile web edit
No edit summary
Line 3: Line 3:
{{t|Bookref|bookName|pageNumber}}
{{t|Bookref|bookName|pageNumber}}


The first accepted parameter is the name of the book in question. All the currently valid parameters are [[Template:Bookref/doc#Valid parameters|listed below]]. The second parameter is optional and can be used to specify a page in the book.
The first accepted parameter is the name of the book in question. All the currently valid parameters are [[Template:Bookref/doc#Valid parameters|listed below]]. The second parameter is optional and can be used to specify a page in the book. Please note that before the page can be specified, the template '''must''' be used without the second parameter first to create the primary reference.
===Example===
===Example===
<nowiki>{{Bookref|Medievil-Times|4}}</nowiki>{{Bookref|Medievil-Times|4}}
<pre>
{{Bookref|Medievil-Times}}
{{Bookref|Medievil-Times|4}}
</pre>
{{Bookref|Medievil-Times}}
{{Bookref|Medievil-Times|4}}


The above example will produce a reference to page 4 of the [[Medievil Times]] newspaper, like the one below. Don't forget to include a {{t|Reflist}} on the page as well!
The above example will produce a reference to page 4 of the [[Medievil Times]] newspaper, like the one below. Don't forget to include a {{t|Reflist}} on the page as well!