Template:Bookref: Difference between revisions

From Gallowpedia, the MediEvil Wiki. You'll be dying to read!
mNo edit summary
No edit summary
Tag: Reverted
Line 1: Line 1:
<includeonly>{{#if:{{{2|}}}|{{#tag: ref | <cite class="book">{{#ifeq:{{Bookref/names|{{{1}}}}}|MED-Script|{{{2}}}<span class="refpreviewonly"> in {{Bookref/core|{{{1}}}}}</span>|Page {{{2}}}<span class="refpreviewonly"> of {{Bookref/core|{{{1}}}}}</span>}}</cite> | name="{{Bookref/names|{{{1}}}}}-{{{2}}}" | extends="{{Bookref/names|{{{1}}}}}" }}|{{#switch:{{{1}}}
<includeonly>{{#if:{{{2|}}}|{{#tag: ref | <cite class="book">{{#ifeq:{{Bookref/names|{{{1}}}}}|MED-Script|{{{2}}}<span class="refpreviewonly"> in {{Bookref/core|{{{1}}}}}</span>|Page {{{2}}} | name="{{Bookref/names|{{{1}}}}}-{{{2}}}" | extends="{{Bookref/names|{{{1}}}}}" }}|{{#switch:{{{1}}}
<!-- MediEvil: The Game Prequel -->
<!-- MediEvil: The Game Prequel -->
| MediEvil: The Game Prequel
| MediEvil: The Game Prequel

Revision as of 09:49, 23 November 2023

About this template

Use this template to quickly reference physical MediEvil books, including manuals and comics. This template is not intended for referencing in-game books. Please use the {{Gameref}} template for that instead.

Usage

{{Bookref|<bookName>|<pageNumber>}}

The first accepted parameter is the name of the book in question. All the currently valid parameters are 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

{{Bookref|Medievil-Times}}
{{Bookref|Medievil-Times|4}}

{{#if:|[1]{{#if:4|[2]

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 {{Reflist}} on the page as well!

  1. Page {{{2}}}
  2. Page 4

Valid parameters

See also


Visit Template:Bookref/doc to edit this text! (How does this work?)