From GamingWiki
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Display a timeline table for a campaign.
 
 
 
{{Documentation}}
 
{{Documentation}}
 
 
<!--
 
<!--
  
--><onlyinclude><!--
+
--><includeonly><onlyinclude><!--
 
-->{{#vardefine: campaign    | {{{campaign|{{{1| {{#show: {{PAGENAME}} | ?campaign#}} }}} }}} }}<!--
 
-->{{#vardefine: campaign    | {{{campaign|{{{1| {{#show: {{PAGENAME}} | ?campaign#}} }}} }}} }}<!--
 
--><noinclude>{{#vardefine: campaign | Steel Town }}</noinclude><!--
 
 
  We can optionally specify different labels
 
-->{{#vardefine: booklabel    | {{{booklabel|Book}}} }}<!--
 
-->{{#vardefine: chapterlabel | {{{chapterlabel|Chapter}}} }}<!--
 
  
 
-->{{#vardefine: expandbook  | {{{expandbook| {{#show: {{PAGENAME}} | ?book number# | default=latest }} }}} }}<!--
 
-->{{#vardefine: expandbook  | {{{expandbook| {{#show: {{PAGENAME}} | ?book number# | default=latest }} }}} }}<!--
Line 21: Line 12:
 
-->{{#vardefineecho:intro|{{Campaign timeline intro | cssclass={{{cssclass|}}} | campaign={{#var:campaign}} }} }}<!--
 
-->{{#vardefineecho:intro|{{Campaign timeline intro | cssclass={{{cssclass|}}} | campaign={{#var:campaign}} }} }}<!--
 
-->{{#ask: [[book of campaign::{{#var:campaign}}]]
 
-->{{#ask: [[book of campaign::{{#var:campaign}}]]
|?title=
+
|?has title=
|?ordinal=
+
|?has ordinal=
|?blurb=
+
|?has blurb=
|?label=
 
 
| sort          = ordinal
 
| sort          = ordinal
 
| link          = none
 
| link          = none
Line 42: Line 32:
 
         |?ordinal
 
         |?ordinal
 
         |?blurb
 
         |?blurb
        |?label
 
 
         | sort          = ordinal
 
         | sort          = ordinal
 
         | link          = none
 
         | link          = none
Line 56: Line 45:
 
-->{{Campaign timeline outro | colspan={{#var:cols}} | template name={{{template name|Campaign timeline}}} }}<!--
 
-->{{Campaign timeline outro | colspan={{#var:cols}} | template name={{{template name|Campaign timeline}}} }}<!--
  
--></onlyinclude>
+
--></onlyinclude></includeonly>
  
 
[[Category: campaign templates]]
 
[[Category: campaign templates]]

Latest revision as of 16:33, 5 October 2014

[edit] [purge]
Error creating thumbnail: File missing
Template documentation

Display a timeline table for a campaign.

The main argument to this template is the campaign name, and if that is omitted the "campaign" property of the current page will be used.

Here are the arguments available to this template (all optional):

parameter default description
campaign "campaign" property of the current page The name of the campaign to use.
booklabel Book The label to use for a major (top-level) story arc. An alternate label could be "season".
chapterlabel Chapter The label to use for a small story arc. An alternate label could be "episode".
expandbook latest By default, the latest book will be rendered with its chapters below it, and the other books without. By setting this to a book number you can change which book gets its chapters listed. Other legal values are "latest" "all" and "none".

The usual way of calling this template is simply:

  {{Campaign timeline}}

However, here is what this template looks like with parameters specified:

Campaign Timeline
?has title= ?has ordinal= ?has blurb= sort = ordinal link = none format = template template = SMW campaign timeline userparam = expandbook ; all
               , booklabel ;  
               , chapterlabel ; 

}}

  {{Campaign timeline
  | campaign     = Ghost Town
  | booklabel    = elephant
  | chapterlabel = strawberry
  | expandbook   = all
  }}