From GamingWiki
Jump to: navigation, search
Line 5: Line 5:
 
Pass this off to another template. First find out if this is a book or a chapter:
 
Pass this off to another template. First find out if this is a book or a chapter:
  
-->{{#vardefine: parent |<!--
+
-->{{#if:<!--
    If it looks like we have the number of the parent book, query it.
+
  -->{{#vardefineecho: parent |<!--
  -->{{#if: {{{parentordinal|}}} |<!--
+
        If it looks like we have the number of the parent book, query it.
      -->{{#ask: [[book of::{{{campaign|M_NUL}}}]] [[book number::{{{parentordinal}}}]] | ?= |link=none}}<!--
+
      -->{{#if: {{{parentordinal|}}} |<!--
  -->|<!--
+
        -->{{#ask: [[book of::{{{campaign|M_NUL}}}]] [[book number::{{{parentordinal}}}]] | ?= |link=none}}<!--
        If there was no parent detected before, or if the previous query returned  
+
      -->|<!--
        no results, assume the parameter is a page name:
+
          If there was no parent detected before, or if the previous query returned  
      -->{{{parent|}}}<!--
+
          no results, assume the parameter is a page name:
 +
        -->{{{parent|}}}<!--
 +
      -->}}<!--
 
   -->}}<!--
 
   -->}}<!--
 +
-->|{{#hashinclude: paramsHash | parent = {{#var:parent}} }}<!--
 +
-->|{{#hashinclude: paramsHash | touch  = touch }}<!--
 
-->}}<!--
 
-->}}<!--
-->{{#hashinclude: paramsHash | parent = {{#var:parent}} }}<!--
 
  
 
-->{{#hashtotemplate: <!--
 
-->{{#hashtotemplate: <!--

Revision as of 17:04, 17 April 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 ; 

}}

Template:Campaign book