From GamingWiki
Jump to: navigation, search
 
(17 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
<onlyinclude><!--
 
<onlyinclude><!--
 +
 +
-->{{#if: {{{headerlevel|}}} <!--
 +
-->|<!--
 +
  -->{{#vardefine: hopen|<h{{{headerlevel}}}>}}<!--
 +
  -->{{#vardefine: hshut|</h{{{headerlevel}}}>}}<!--
 +
-->|<!--
 +
  -->{{#vardefine: hopen|'''}}<!--
 +
  -->{{#vardefine: hshut|'''}}<!--
 +
-->}}<!--
  
 
   We pull up the story data from SMW
 
   We pull up the story data from SMW
 
--><includeonly>{{#ifexist:{{#vardefineecho: page | {{{title|{{{1|}}}}}} }}|<!--
 
--><includeonly>{{#ifexist:{{#vardefineecho: page | {{{title|{{{1|}}}}}} }}|<!--
   -->{{#vardefine: title  | {{#ask: [[:{{#var:page}}]] |?title = }} }}<!--
+
   -->{{#arraydefine: storyarray |  
   -->{{#vardefine: blurb   | {{#ask: [[:{{#var:page}}]] |?blurb = <noinclude> | default =summary blurb </noinclude> }} }}<!--
+
      {{#ask: [[:{{#var:page}}]]  
   -->{{#vardefine: content | {{#ask: [[:{{#var:page}}]] |?content = }} }}<!--
+
      |?title =  
 +
      |?blurb =
 +
      |?content =
 +
      |mainlabel=-
 +
      |format=array | propsep=##SEP##}} | ##SEP## }}<!--
 +
   -->{{#vardefine: title   | {{#arrayindex: storyarray|0}} }}<!--
 +
  -->{{#vardefine: blurb  | {{#arrayindex: storyarray|1}} }}<!--
 +
   -->{{#vardefine: content | {{#arrayindex: storyarray|2}} }}<!--
 +
 
 +
    Define the edit link for our story page
 +
  -->{{#vardefine: editlink | &nbsp;<span class="plainlinks">[[{{fullurl:{{transclude|{{#var: page}}}}|action=edit}}<span title="Edit this story" class="editlink">edit</span>]]</span> }}<!--
 +
 
 
-->}}</includeonly><!--
 
-->}}</includeonly><!--
  
-->'''<!--
+
-->{{#var:hopen}}<!--
 
   -->{{#if:{{{header|}}}|{{{header}}}:}} <!--
 
   -->{{#if:{{{header|}}}|{{{header}}}:}} <!--
   -->{{#var:title | Title of story }}<!--
+
   -->{{#var:title | {{#var:page | Title of story }} }}<!--
-->'''
+
  -->{{#var: editlink | }}<!--
 +
-->{{#var:hshut}}
  
 
<!--
 
<!--
Line 19: Line 40:
 
: ''{{#var:blurb}}''<!--
 
: ''{{#var:blurb}}''<!--
 
-->}}<nowiki />
 
-->}}<nowiki />
{{#var:content | <includeonly>[[{{#var:page}}]]</includeonly><noinclude>story content here</noinclude> }}
+
{{#if:{{#var:content}}|<!--
 +
-->{{#var:content}}|<!--
 +
--><includeonly>{{#var:page}}</includeonly><noinclude>story content here</noinclude><!--
 +
-->}}<!--
 +
 
 +
-->{{#if:{{#vardefineecho:aspect|{{{aspect|{{{2|<noinclude>no aspect</noinclude>}}}}}}}}|<!--
 +
  --><!--
 +
  --><nowiki />
 +
 
 +
{{phase aspect|{{#var: aspect}}}}<!--
 +
-->}}<!--
  
{{#if:{{{aspect|{{{2|}}}}}}|'''Phase aspect:''' {{Aspect | {{{aspect|{{{2}}}}}} }} }}<!--
+
  Clean up
 +
-->{{#vardefine: page  |}}<!--
 +
-->{{#vardefine: title  |}}<!--
 +
-->{{#vardefine: blurb  |}}<!--
 +
-->{{#vardefine: content|}}<!--
  
 
--></onlyinclude>
 
--></onlyinclude>

Latest revision as of 01:18, 3 April 2012

Print out a section for a character background, on a character sheet.

Title of story

story content here


Phase aspect: {{#set: has aspect=no aspect}}no aspect