From GamingWiki
Jump to: navigation, search
Line 1: Line 1:
 
<!--
 
<!--
 
 
   We can optionally specify different labels
 
   We can optionally specify different labels
 
-->{{#vardefine:booklabel|{{{booklabel|Book}}} }}<!--
 
-->{{#vardefine:booklabel|{{{booklabel|Book}}} }}<!--
 
-->{{#vardefine:chapterlabel|{{{chapterlabel|Chapter}}} }}<!--
 
-->{{#vardefine:chapterlabel|{{{chapterlabel|Chapter}}} }}<!--
  
-->{| class="infobox floatright {{{cssclass|}}}"
+
  Use intro and outro templates so we can use this with SMW.
! colspan="2" | Campaign Timeline <!--
+
-->{{Campaign timeline intro | cssclass={{{cssclass|}}} | campaign={{{campaign}}} }}<!--
-->{{#if: {{{campaign<includeonly>|</includeonly>}}}|<div class="campaign"><!--
 
  --> [[{{{campaign}}}]] <!--
 
  --><includeonly>[[Category: {{{campaign}}}]]</includeonly><!--
 
--></div>}}<!-- end if campaign
 
  
 
-->{{#fornumargs: booknum | bookstring |<!--
 
-->{{#fornumargs: booknum | bookstring |<!--
 
   -->{{#arraydefine: bookarray | {{#var:bookstring}} | ;; }}<!--
 
   -->{{#arraydefine: bookarray | {{#var:bookstring}} | ;; }}<!--
   -->{{#vardefine: booktitle | {{#arrayindex: bookarray | 0 }} }}<!--
+
   -->{{Campaign timeline bookline
 +
      | label  = {{#var:booklabel}}
 +
      | ordinal = {{#var:booknum}}
 +
      | title  = {{#arrayindex: bookarray | 0 }}
 +
      }}<!--
 +
 
 
   -->{{#arrayslice: chapterarray | bookarray | 1 }}<!--
 
   -->{{#arrayslice: chapterarray | bookarray | 1 }}<!--
  --><nowiki />
 
{{!}}-
 
{{!}} colspan="2" class="subhead" {{!}} {{#var:booklabel}} {{#var: booknum}}: <!--
 
  --> {{#ifexist:{{#var: booktitle}}|{{#var: booktitle}}|[[Content:{{#var: booktitle}}|{{#var: booktitle}}]]}} <!--
 
 
 
   -->{{#vardefine: chapnum| 0 }}<!--
 
   -->{{#vardefine: chapnum| 0 }}<!--
   -->{{#arrayprint: chapterarray | | @@@@ |<nowiki />
+
   -->{{#arrayprint: chapterarray | | @@@@ |<!--
{{!}}-
+
      -->{{Campaign timeline chapterline
{{!}} class="label" {{!}} {{#var:chapterlabel}} <!--
+
        | label  = {{#var:chapterlabel}}  
      -->{{#vardefineecho: chapnum | {{#expr:{{#var:chapnum}}+1}} }} <!--
+
        | ordinal = {{#vardefineecho: chapnum | {{#expr:{{#var:chapnum}}+1}} }}
      --> {{!}}{{!}} {{#ifexist:@@@@|@@@@|[[Content:@@@@|@@@@]]}} <!--
+
        | title  = @@@@
 +
        }}<!--
 
   -->}}<!-- end arrayprint
 
   -->}}<!-- end arrayprint
  
 
-->}}<!-- end fornumargs
 
-->}}<!-- end fornumargs
 +
 +
  Use intro and outro templates so we can use this with SMW.
 +
-->{{Campaign timeline outro | colspan={{#var:cols}} | template name={{{template name|Campaign timeline}}} }}<!--
  
 
-->
 
-->
|-
 
| colspan="{{#var:cols}}" | {{navbar|{{{template name|Campaign timeline}}}|mini=1}}
 
|}
 

Revision as of 02:48, 18 March 2011

Campaign Timeline
[[{{{campaign}}}]]