From GamingWiki
Jump to: navigation, search
Line 13: Line 13:
 
-->{{#vardefine: expandbook  | {{#hashvalue: userParams | expandbook}} }}<!--
 
-->{{#vardefine: expandbook  | {{#hashvalue: userParams | expandbook}} }}<!--
  
   We can optionally specify different labels
+
   We can optionally specify different labels. Here is a somewhat complicated set of defaults:
-->{{#vardefine: booklabel    | {{#hashvalue: userParams | booklabel}} }}<!--
+
-->{{#vardefine: booklabel    | {{{5|}}} }}<!--
-->{{#vardefine: chapterlabel | {{#hashvalue: userParams | chapterlabel}} }}<!--
+
-->{{#vardefine: booklabel    | {{#var:booklabel| {{#hashvalue: userParams | booklabel}} }}<!--
 +
-->{{#vardefine: booklabel    | {{#var:booklabel| Book }}<!--
  
 
-->{{Campaign timeline bookline  
 
-->{{Campaign timeline bookline  
       | label  = {{#if:{{{5|}}}|{{{5}}}|{{#var:booklabel|Booook}}}}
+
       | label  = {{#var:booklabel}}
 
       | ordinal = {{{3}}}
 
       | ordinal = {{{3}}}
 
       | title  = {{{2}}}
 
       | title  = {{{2}}}

Revision as of 17:23, 11 April 2014

Positional parameters for this template are:

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

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