From GamingWiki
Jump to: navigation, search
 
(8 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
# blurb
 
# blurb
 
# content (optional)
 
# content (optional)
 +
# label  (optional)
 
# image  (optional)
 
# image  (optional)
 +
# parent ordinal (optional)
  
 
<onlyinclude><!--
 
<onlyinclude><!--
Line 16: Line 18:
 
-->{{#hashinclude: tmplParams
 
-->{{#hashinclude: tmplParams
 
   | depth  = {{#var:depth}}
 
   | depth  = {{#var:depth}}
   | label  = {{#hashvalue: userParams | label | {{{6|Chapter}}} }}
+
   | label  = {{#hashvalue: userParams | label | {{#if:{{{6|}}}|{{{6}}}|Chapter}} }}
 
   | page    = {{{1|M_NUL}}}
 
   | page    = {{{1|M_NUL}}}
 
   | title  = {{{2|M_NUL}}}
 
   | title  = {{{2|M_NUL}}}
 
   | ordinal = {{{3|0}}}
 
   | ordinal = {{{3|0}}}
   | parentordinal = {{{7|}}}
+
   | parentordinal = {{{8|}}}
 
   | blurb  = {{{4|}}}
 
   | blurb  = {{{4|}}}
   | content = {{{5|}}}
+
   | content = {{#hashkeyexists: userParams | nocontent || {{{5|}}} }}
   | image  = {{{6|}}}
+
   | image  = {{{7|}}}
 
   |}}<!--
 
   |}}<!--
  
Line 31: Line 33:
 
-->{{#ifeq:{{#hashvalue: userParams | children}}|yes|<!--
 
-->{{#ifeq:{{#hashvalue: userParams | children}}|yes|<!--
 
   -->{{#vardefine:depth | {{#expr: {{#var: depth}} + 1 }} }}<!--
 
   -->{{#vardefine:depth | {{#expr: {{#var: depth}} + 1 }} }}<!--
   -->{{#ask: [[parent::{{{2|M_NUL}}}||{{{1|M_NUL}}}]]
+
   -->{{#vardefine:nocontent | {{#hashkeyexists: userParams | childcontent || nocontent;true}} }}<!--
 +
  -->
 +
{{#ask: [[parent::{{{2|M_NUL}}}||{{{1|M_NUL}}}]]
 
   |?title
 
   |?title
  |?book number
 
 
   |?chapter number
 
   |?chapter number
 
   |?blurb
 
   |?blurb
 +
  |?content
 +
  |?label
 +
  |?image
 +
  |?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 3
+
   | template      = SMW campaign chapters level N
 
   }}<!--
 
   }}<!--
 
-->}}<!--
 
-->}}<!--
  
--></onlyinclude>
+
-->
 +
</onlyinclude>

Latest revision as of 01:06, 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

'