From GamingWiki
Jump to: navigation, search
Line 1: Line 1:
 
<!--
 
<!--
 +
 +
-->{{#vardefine:campaign|{{{campaign|{{{1<noinclude>|Terra Φ</noinclude>}}}}}} }}<!--
 
   We can optionally specify different labels
 
   We can optionally specify different labels
 
-->{{#vardefine:booklabel|{{{booklabel|Book}}} }}<!--
 
-->{{#vardefine:booklabel|{{{booklabel|Book}}} }}<!--
Line 5: Line 7:
  
 
   Use intro and outro templates so we can use this with SMW.
 
   Use intro and outro templates so we can use this with SMW.
-->{{Campaign timeline intro | cssclass={{{cssclass|}}} | campaign={{{campaign}}} }}<!--
+
-->{{Campaign timeline intro | cssclass={{{cssclass|}}} | campaign={{#var:campaign}} }}<!--
 
 
-->{{#fornumargs: booknum | bookstring |<!--
 
  -->{{#arraydefine: bookarray | {{#var:bookstring}} | ;; }}<!--
 
  -->{{Campaign timeline bookline
 
      | label  = {{#var:booklabel}}  
 
      | ordinal = {{#var:booknum}}
 
      | title  = {{#arrayindex: bookarray | 0 }}
 
      }}<!--
 
 
 
  -->{{#arrayslice: chapterarray | bookarray | 1 }}<!--
 
  -->{{#vardefine: chapnum| 0 }}<!--
 
  -->{{#arrayprint: chapterarray | | @@@@ |<!--
 
      -->{{Campaign timeline chapterline
 
        | label  = {{#var:chapterlabel}}
 
        | ordinal = {{#vardefineecho: chapnum | {{#expr:{{#var:chapnum}}+1}} }}
 
        | title  = @@@@
 
        }}<!--
 
  -->}}<!-- end arrayprint
 
  
-->}}<!-- end fornumargs
+
-->{{#ask: [[Category: {{#var:campaign}}]] [[is a::chapter||book]]
 +
|?title
 +
|?ordinal
 +
|?blurb
 +
| sort          = ordinal
 +
| link          = none
 +
| format        = template
 +
| template      = SMW campaign timeline
 +
| outrotemplate = SMW campaign timeline outro
 +
}}<!--
  
 
   Use intro and outro templates so we can use this with SMW.
 
   Use intro and outro templates so we can use this with SMW.

Revision as of 19:01, 18 March 2011

Campaign Timeline
?title ?ordinal ?blurb sort = ordinal link = none format = template template = SMW campaign timeline outrotemplate = SMW campaign timeline outro

}}