From GamingWiki
(14 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude><!-- | <onlyinclude><!-- | ||
+ | |||
-->{{#vardefine: h|h{{{depth|2}}}}}<!-- | -->{{#vardefine: h|h{{{depth|2}}}}}<!-- | ||
− | -->{{#vardefine: | + | -->{{#vardefine: ordinal| {{{ordinal|{{{chapter|{{{book|}}} }}} }}} }}<!-- |
− | + | -->{{#vardefine: label | {{{label|{{#if:{{{chapter|}}}|Chapter|Book}} }}} }}<!-- | |
+ | -->{{#ifeq:{{#var:ordinal}}|0|{{#vardefine:ordinal|}} }}<!-- | ||
+ | -->{{#vardefine: prefix | <!-- | ||
+ | -->{{#if: {{#var:ordinal}}|{{#var:label}} {{#var:ordinal}}:|{{#var:label}}:}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
− | --><{{#var:h}} | + | --><{{#var:h}}> {{#var:prefix}} [[{{{page}}}|{{{title}}}]] </{{#var:h}}> |
− | + | : ''{{{blurb}}}''<nowiki /> | |
− | + | <!-- | |
− | + | -->{{#if: {{{content|}}} |<!-- | |
− | {{#if: {{{ | + | -->{{#if:{{{image|}}}|[[<!-- |
− | + | -->{{#ifexist:{{{image}}}||Image:}}<!-- | |
− | {{# | + | -->{{{image}}}|right|thumb|120px<!-- |
− | --> | + | -->]]<nowiki /> |
− | -->}}<!-- | + | <!-- |
+ | -->}}<!-- | ||
+ | -->{{{content}}}<!-- | ||
+ | -->}}<nowiki /> | ||
+ | <!-- | ||
--></onlyinclude> | --></onlyinclude> | ||
Line 21: | Line 29: | ||
* page | * page | ||
* title | * title | ||
− | * | + | * book (number) |
+ | * chapter (number) | ||
* blurb | * blurb | ||
* content (optional) | * content (optional) |
Latest revision as of 01:04, 22 September 2011
Book: [[{{{page}}}|{{{title}}}]]
- {{{blurb}}}
Parameters for this template are:
- page
- title
- book (number)
- chapter (number)
- blurb
- content (optional)