From GamingWiki
Jump to: navigation, search
Line 8: Line 8:
 
{{Campaign timeline intro}}
 
{{Campaign timeline intro}}
 
<onlyinclude><!--
 
<onlyinclude><!--
 
-->
 
{{!}}-
 
{{!}} {{{1|M_NUL}}}-{{{2|M_NUL}}}-{{{3|M_NUL}}}-{{{4|M_NUL}}}-{{{5|M_NUL}}}
 
{{!}}-
 
<!-- debug
 
  
 
-->{{#hashdefine: userParams | {{{userparam|}}} }}<!--
 
-->{{#hashdefine: userParams | {{{userparam|}}} }}<!--
Line 22: Line 16:
 
-->{{#vardefine: booklabel    | {{#hashvalue: userParams | booklabel}} }}<!--
 
-->{{#vardefine: booklabel    | {{#hashvalue: userParams | booklabel}} }}<!--
 
-->{{#vardefine: chapterlabel | {{#hashvalue: userParams | chapterlabel}} }}<!--
 
-->{{#vardefine: chapterlabel | {{#hashvalue: userParams | chapterlabel}} }}<!--
 
-->
 
{{!}} {{#var:campaign}}-{{#var:booklabel}}-
 
{{!}}-
 
<!-- debug
 
  
 
-->{{Campaign timeline bookline  
 
-->{{Campaign timeline bookline  
Line 40: Line 29:
 
     or we are told to expand all books
 
     or we are told to expand all books
 
   -->{{#ifeq:{{#var:expandbook}}| all | 1 }}<!--
 
   -->{{#ifeq:{{#var:expandbook}}| all | 1 }}<!--
-->|<!--
 
  
-->
+
-->|<!-- then expand the current book
{{!}}-
 
{{!}} tsct - Expanding book {{{3|M_NUL}}}
 
{{!}}-
 
<!-- debug
 
  
 
     Run a subquery on the book's chapters
 
     Run a subquery on the book's chapters
Line 60: Line 44:
 
       | userparam    = {{{userparam|}}}
 
       | userparam    = {{{userparam|}}}
 
       }}}}<!--
 
       }}}}<!--
-->|<!--
 
  
-->
+
-->|<!-- else don't expand the current book
{{!}}-
+
 
{{!}} tsct - Not expanding book {{{3|M_NUL}}}
+
  -->{{#vardefine:latestbook|{{{3|}}}}}<!-- this gets used higher up
{{!}}-
+
 
<!-- debug
+
-->}}<!-- end #if
  
  -->{{#vardefine:latestbook|{{{3|}}}}}<!--
 
-->}}<!--
 
 
--></onlyinclude>
 
--></onlyinclude>
 
{{Campaign timeline outro}}
 
{{Campaign timeline outro}}

Revision as of 15:50, 11 April 2014

Positional parameters for this template are:

  1. page
  2. title
  3. ordinal
  4. blurb
  5. label

Campaign Timeline
Book {{{3}}}: [[{{{1}}}|{{{2}}}]]