From GamingWiki
(2 intermediate revisions by the same user not shown) | |||
Line 33: | Line 33: | ||
-->{{#ifeq:{{#hashvalue: userParams | children}}|yes|<!-- | -->{{#ifeq:{{#hashvalue: userParams | children}}|yes|<!-- | ||
-->{{#vardefine:depth | {{#expr: {{#var: depth}} + 1 }} }}<!-- | -->{{#vardefine:depth | {{#expr: {{#var: depth}} + 1 }} }}<!-- | ||
− | -->{{#vardefine:nocontent | {{# | + | -->{{#vardefine:nocontent | {{#hashkeyexists: userParams | childcontent || nocontent;true}} }}<!-- |
--> | --> | ||
{{#ask: [[parent::{{{2|M_NUL}}}||{{{1|M_NUL}}}]] | {{#ask: [[parent::{{{2|M_NUL}}}||{{{1|M_NUL}}}]] | ||
Line 41: | Line 41: | ||
|?content | |?content | ||
|?label | |?label | ||
+ | |?image | ||
|?book number | |?book number | ||
| sort = ordinal | | sort = ordinal | ||
| link = none | | link = none | ||
| format = template | | format = template | ||
− | | userparam = depth;{{#var:depth}}, | + | | userparam = depth;{{#var:depth}},{{#var:nocontent}} |
| template = SMW campaign chapters level N | | template = SMW campaign chapters level N | ||
}}<!-- | }}<!-- |
Latest revision as of 01:06, 22 September 2011
Positional parameters for this template are:
- page
- title
- ordinal
- blurb
- content (optional)
- label (optional)
- image (optional)
- parent ordinal (optional)
Chapter: M_NUL
- '