From GamingWiki
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Positional parameters for this template are: | Positional parameters for this template are: | ||
# page | # page | ||
Line 19: | Line 6: | ||
# content (optional) | # content (optional) | ||
# image (optional) | # image (optional) | ||
− | </ | + | |
+ | <onlyinclude><!-- | ||
+ | |||
+ | We may have a "userparam" specified. This will be of the form "key1;value1,key2;value2...". | ||
+ | -->{{#hashdefine: userParams | {{{userparam|}}} }}<!-- | ||
+ | -->{{#hashdefine: tmplParams}}<!-- | ||
+ | -->{{#vardefine: depth | {{#hashvalue: userParams | depth | 3 }} }}<!-- | ||
+ | |||
+ | -->{{#hashinclude: tmplParams | ||
+ | | depth = {{#var:depth}} | ||
+ | | label = {{#hashvalue: userParams | label | {{{6|Chapter}}} }} | ||
+ | | page = {{{1|M_NUL}}} | ||
+ | | title = {{{2|M_NUL}}} | ||
+ | | ordinal = {{{3|0}}} | ||
+ | | parentordinal = {{{7|}}} | ||
+ | | blurb = {{{4|}}} | ||
+ | | content = {{{5|}}} | ||
+ | | image = {{{6|}}} | ||
+ | |}}<!-- | ||
+ | |||
+ | -->{{#hashtotemplate: SMW campaign chapters | tmplParams }}<!-- | ||
+ | |||
+ | If we've asked for children, we print them here. | ||
+ | -->{{#ifeq:{{#hashvalue: userParams | children}}|yes|<!-- | ||
+ | -->{{#vardefine:depth | {{#expr: {{#var: depth}} + 1 }} }}<!-- | ||
+ | -->{{#ask: [[parent::{{{2|M_NUL}}}||{{{1|M_NUL}}}]] | ||
+ | |?title | ||
+ | |?book number | ||
+ | |?chapter number | ||
+ | |?blurb | ||
+ | | sort = ordinal | ||
+ | | link = none | ||
+ | | format = template | ||
+ | | userparam = depth;{{#var:depth}} | ||
+ | | template = SMW campaign chapters level 3 | ||
+ | }}<!-- | ||
+ | -->}}<!-- | ||
+ | |||
+ | --></onlyinclude> |
Revision as of 00:04, 22 September 2011
Positional parameters for this template are:
- page
- title
- ordinal
- blurb
- content (optional)
- image (optional)
Chapter: M_NUL
- '