From GamingWiki
| Line 7: | Line 7: | ||
{{Campaign timeline intro}} | {{Campaign timeline intro}} | ||
<onlyinclude><!-- | <onlyinclude><!-- | ||
| + | |||
| + | -->{{#hashdefine: userParams | {{{userparam|}}} }}<!-- | ||
| + | |||
-->{{Campaign timeline bookline | -->{{Campaign timeline bookline | ||
| label = {{#if:{{{5|}}}|{{{5}}}|Book}} | | label = {{#if:{{{5|}}}|{{{5}}}|Book}} | ||
| Line 14: | Line 17: | ||
}}<!-- | }}<!-- | ||
| − | -->{{# | + | -->{{#if: <!-- |
| − | |?title | + | The current "expandbook" is set to the current book number |
| − | |?ordinal | + | -->{{#ifeq:{{#hashvalue: userParams | expandbook }} | {{{3|M_NUL}}} }} }}<!-- |
| − | |?blurb | + | We are told to expand all books |
| − | |?label | + | -->{{#ifeq:{{#hashvalue: userParams | expandbook }} | all }} }}<!-- |
| − | | sort = ordinal | + | -->|<!-- |
| − | | link = none | + | Run a subquery on the book's chapters |
| − | | format = template | + | -->{{#vardefineecho:innerqueryresult|{{#ask: [[chapter in book::{{{1|Null}}}]] |
| − | | template = SMW campaign chapter | + | |?title |
| − | }}}}<!-- | + | |?ordinal |
| − | -->{{#var:innerqueryresult}}<!-- | + | |?blurb |
| + | |?label | ||
| + | | sort = ordinal | ||
| + | | link = none | ||
| + | | format = template | ||
| + | | template = SMW campaign chapter | ||
| + | }}}}<!-- | ||
| + | --><!--{{#var:innerqueryresult}}--><!-- | ||
| + | -->}}<!-- | ||
--></onlyinclude> | --></onlyinclude> | ||
{{Campaign timeline outro}} | {{Campaign timeline outro}} | ||
Revision as of 15:57, 25 October 2011
Positional parameters for this template are:
- page
- title
- ordinal
- blurb
| Campaign Timeline | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Book {{{3}}}: [[{{{1}}}|{{{2}}}]] | |||||||||
| ?title | ?ordinal | ?blurb | ?label | sort = ordinal | link = none | format = template | template = SMW campaign chapter
}}}}
|
||