From GamingWiki
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
# ordinal
 
# ordinal
 
# blurb
 
# blurb
# label
 
  
 
{{Campaign timeline intro}}
 
{{Campaign timeline intro}}
 
<onlyinclude><!--
 
<onlyinclude><!--
 +
 +
-->{{info/campaign|{{#var:campaign}}}}<!--
 +
-->{{#vardefine:campaignInfo|campaignInfo_{{#var:campaign}}}}<!--
  
 
-->{{#hashdefine: userParams | {{{userparam|}}} }}<!--
 
-->{{#hashdefine: userParams | {{{userparam|}}} }}<!--
Line 13: Line 15:
 
-->{{#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    | {{#hashvalue: {{#var:campaignInfo}}|Uses book label}}}}<!--
-->{{#vardefine: chapterlabel | {{#hashvalue: userParams | chapterlabel}} }}<!--
 
  
 
-->{{Campaign timeline bookline  
 
-->{{Campaign timeline bookline  
       | label  = {{#if:{{{5|}}}|{{{5}}}|{{#var:booklabel|Booook}}}}
+
       | label  = {{#var:booklabel}}
 
       | ordinal = {{{3}}}
 
       | ordinal = {{{3}}}
 
       | title  = {{{2}}}
 
       | title  = {{{2}}}

Latest revision as of 16:31, 5 October 2014

Positional parameters for this template are:

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

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