From GamingWiki
Jump to: navigation, search
Line 7: Line 7:
 
-->{{#vardefine: expandbook | {{{expandbook| {{#show: {{PAGENAME}} | ?book number | link=none | default=latest }} }}} }}<!--
 
-->{{#vardefine: expandbook | {{{expandbook| {{#show: {{PAGENAME}} | ?book number | link=none | default=latest }} }}} }}<!--
 
-->{{#if:{{#var:expandbook}}||{{#vardefine:expandbook|latest}} }}<!--
 
-->{{#if:{{#var:expandbook}}||{{#vardefine:expandbook|latest}} }}<!--
 +
--><noinclude>{{#vardefine:expandbook|latest}}</noinclude><!--
  
 
   Use intro and outro templates so we can use this with SMW.
 
   Use intro and outro templates so we can use this with SMW.
Line 23: Line 24:
  
 
-->{{#ifeq:{{#var:expandbook}}|latest|{{#if:{{#var:latestbook}}|<!--
 
-->{{#ifeq:{{#var:expandbook}}|latest|{{#if:{{#var:latestbook}}|<!--
     Run a subquery on the book's chapters
+
     Run a subquery on the last book's chapters
 
   -->{{#vardefineecho:innerqueryresult|{{#ask: [[chapter of campaign::{{#var:campaign}}]][[book number::{{#var:latestbook}}]]
 
   -->{{#vardefineecho:innerqueryresult|{{#ask: [[chapter of campaign::{{#var:campaign}}]][[book number::{{#var:latestbook}}]]
 
       |?title
 
       |?title

Revision as of 16:41, 29 November 2011

Campaign Timeline
?title= ?ordinal= ?blurb= ?label= sort = ordinal link = none format = template template = SMW campaign timeline userparam = expandbook ; latest

}}