From GamingWiki
Line 8: | Line 8: | ||
{{Campaign timeline intro}} | {{Campaign timeline intro}} | ||
<onlyinclude><!-- | <onlyinclude><!-- | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
-->{{#hashdefine: userParams | {{{userparam|}}} }}<!-- | -->{{#hashdefine: userParams | {{{userparam|}}} }}<!-- | ||
Line 22: | Line 16: | ||
-->{{#vardefine: booklabel | {{#hashvalue: userParams | booklabel}} }}<!-- | -->{{#vardefine: booklabel | {{#hashvalue: userParams | booklabel}} }}<!-- | ||
-->{{#vardefine: chapterlabel | {{#hashvalue: userParams | chapterlabel}} }}<!-- | -->{{#vardefine: chapterlabel | {{#hashvalue: userParams | chapterlabel}} }}<!-- | ||
− | |||
− | |||
− | |||
− | |||
− | |||
-->{{Campaign timeline bookline | -->{{Campaign timeline bookline | ||
Line 40: | Line 29: | ||
or we are told to expand all books | or we are told to expand all books | ||
-->{{#ifeq:{{#var:expandbook}}| all | 1 }}<!-- | -->{{#ifeq:{{#var:expandbook}}| all | 1 }}<!-- | ||
− | |||
− | --> | + | -->|<!-- then expand the current book |
− | |||
− | |||
− | |||
− | <!-- | ||
Run a subquery on the book's chapters | Run a subquery on the book's chapters | ||
Line 60: | Line 44: | ||
| userparam = {{{userparam|}}} | | userparam = {{{userparam|}}} | ||
}}}}<!-- | }}}}<!-- | ||
− | |||
− | --> | + | -->|<!-- else don't expand the current book |
− | + | ||
− | {{ | + | -->{{#vardefine:latestbook|{{{3|}}}}}<!-- this gets used higher up |
− | + | ||
− | <!-- | + | -->}}<!-- end #if |
− | |||
− | |||
--></onlyinclude> | --></onlyinclude> | ||
{{Campaign timeline outro}} | {{Campaign timeline outro}} |
Revision as of 15:50, 11 April 2014
Positional parameters for this template are:
- page
- title
- ordinal
- blurb
- label
Campaign Timeline | |
---|---|
Book {{{3}}}: [[{{{1}}}|{{{2}}}]] | |