From GamingWiki
Jump to: navigation, search
Line 2: Line 2:
  
 
-->{{#vardefine: campaign | {{{campaign<noinclude>|Steel Town</noinclude>}}} }}<!--
 
-->{{#vardefine: campaign | {{{campaign<noinclude>|Steel Town</noinclude>}}} }}<!--
 +
 
   Find out if this is a book or a chapter:
 
   Find out if this is a book or a chapter:
 
-->{{#vardefine: parent |<!--
 
-->{{#vardefine: parent |<!--
 
     If it looks like we have the number of the parent book, query it.
 
     If it looks like we have the number of the parent book, query it.
 
   -->{{#if: {{{parentordinal|}}} |<!--
 
   -->{{#if: {{{parentordinal|}}} |<!--
       -->{{#ask: [[book of::{{#var: campaign}}]] [[book number::{{{parentordinal}}}]] | mainlabel=- |link=none|limit=1}}<!--
+
       -->{{#ask: [[book of::{{#var: campaign}}]] [[book number::{{{parentordinal}}}]] |link=none|limit=1}}<!--
 
   -->|<!--
 
   -->|<!--
 
         If there was no parent detected before, or if the previous query returned  
 
         If there was no parent detected before, or if the previous query returned  
Line 13: Line 14:
 
   -->}}<!--
 
   -->}}<!--
 
-->}}<!--
 
-->}}<!--
 +
 
-->{{#vardefine: title | {{{title|<includeonly>{{PAGENAME}}</includeonly><noinclude>Story title</noinclude>}}} }}<!--
 
-->{{#vardefine: title | {{{title|<includeonly>{{PAGENAME}}</includeonly><noinclude>Story title</noinclude>}}} }}<!--
  
Line 37: Line 39:
 
-->[[Category: {{{category|{{#var:campaign}} stories}}}]]<!--
 
-->[[Category: {{{category|{{#var:campaign}} stories}}}]]<!--
 
-->{{#if: {{{ordinal|}}}      | {{#set: {{#var:storytype}} number = {{{ordinal}}} | ordinal = {{{ordinal}}} }} }}<!--
 
-->{{#if: {{{ordinal|}}}      | {{#set: {{#var:storytype}} number = {{{ordinal}}} | ordinal = {{{ordinal}}} }} }}<!--
-->{{#if: {{#var:parent}}        | {{#set: parent = gg{{#var:parent}}gg | chapter in book = {{#var:parent}} }} }}<!--
+
-->{{#if: {{#var:parent}}        | {{#set: parent = {{#var:parent}} | chapter in book = {{#var:parent}} }} }}<!--
 
-->{{#if: {{{parentordinal|}}} <!--
 
-->{{#if: {{{parentordinal|}}} <!--
 
   -->| {{#set: book number = {{{parentordinal}}} }} <!--
 
   -->| {{#set: book number = {{{parentordinal}}} }} <!--

Revision as of 17:00, 29 November 2011

Campaign Timeline
?has title= ?has ordinal= ?has blurb= sort = ordinal link = none format = template template = SMW campaign timeline ?book number# | default=latest }}
               , booklabel ;  
               , chapterlabel ; 

}}

{{#set:

  | title  = Story title
  | is a   = book
  | book of = Steel Town

}}{{#set: book number = {{#ask: M_NUL |?ordinal= | link=none }} }}

Story title

(played [[session date::{{{date}}}]])

{{#ask: |Story title |?title |?chapter number |?blurb | sort = chapter number | link = none | format = template | template = SMW campaign chapters level 3 }}