From GamingWiki
Jump to: navigation, search
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 | {{#if:{{#hashvalue:userParams|childcontent}}||true}} }}<!--
 
   -->
 
   -->
 
{{#ask: [[parent::{{{2|M_NUL}}}||{{{1|M_NUL}}}]]
 
{{#ask: [[parent::{{{2|M_NUL}}}||{{{1|M_NUL}}}]]
Line 44: Line 45:
 
   | link          = none
 
   | link          = none
 
   | format        = template
 
   | format        = template
   | userparam    = depth;{{#var:depth}},nocontent;true
+
   | userparam    = depth;{{#var:depth}},nocontent;{{#var:nocontent}}
 
   | template      = SMW campaign chapters level N
 
   | template      = SMW campaign chapters level N
 
   }}<!--
 
   }}<!--

Revision as of 00:59, 22 September 2011

Positional parameters for this template are:

  1. page
  2. title
  3. ordinal
  4. blurb
  5. content (optional)
  6. label (optional)
  7. image (optional)
  8. parent ordinal (optional)

Chapter: M_NUL

'