From GamingWiki
Jump to: navigation, search
Line 5: Line 5:
 
-->{{#vardefine: campaignimage | {{#ask: [[{{#var:campaign}}]] | mainlabel= | ?image= | link=none }} }}<!--
 
-->{{#vardefine: campaignimage | {{#ask: [[{{#var:campaign}}]] | mainlabel= | ?image= | link=none }} }}<!--
  
-->{{Campaign navigation box
+
-->{{#hashdefine:paramHash}}<!--
 +
-->{{#hashinclude: paramHash
 
| title    = Characters in [[{{#var:campaign}}]]
 
| title    = Characters in [[{{#var:campaign}}]]
 
| template name = {{{template name|Campaign characters box}}}
 
| template name = {{{template name|Campaign characters box}}}
| image    = {{#if: {{#var: campaignimage}} | [[{{#var: campaignimage}}|100px]] }}
+
| collapse_state = <includeonly>{{{1|autocollapse}}}</includeonly><noinclude>expanded</noinclude>
<includeonly>| collapse_state = {{{1|autocollapse}}}</includeonly><noinclude>| collapse_state = expanded</noinclude>
+
}}<!--
  
| group1 = PCs
+
-->{{#if: {{#var: campaignimage}} | {{#hashinclude: paramHash | image = {{#var: campaignimage}} }} }}<!--
| list1  = <!--
 
-->{{#ask: [[PC in :: {{#var:campaign}}]] |format=list|sep=::}}<!--
 
-->{{#if: {{{extra PCs|}}} | :: {{{extra PCs}}} }}
 
  
| group2 = Major NPCs
+
-->{{#arraydefine: pclist |<!--
| list2  = <!--
+
  -->{{#ask: [[PC in campaign :: {{#var:campaign}}]] |format=list|sep=::|link=none}}<!--
-->{{#ask: [[NPC in :: {{#var:campaign}}]] |format=list|sep=::}}<!--
+
  -->{{#if: {{{extra PCs|}}} | :: {{{extra PCs}}} }}<!--
-->{{#if: {{{extra NPCs|}}} | :: {{{extra NPCs}}} }}
+
-->|::}}<!--
 +
-->{{#hashinclude: paramHash
 +
  | group1 = PCs
 +
  | list1  = {{#arrayprint:pclist| :: | $pc$ | [[$pc$]] }}
 +
}}<!--
  
| group3 = Minor NPCs
+
-->{{#if: <!--
| list3 =  
+
  -->{{#arraydefine: facelist|<!--
 +
      -->{{#ask: [[face in campaign :: {{#var:campaign}}]] |format=list|sep=::|link=none}}<!--
 +
      -->{{#if: {{{extra faces|}}} | :: {{{extra faces}}} }}<!--
 +
  -->|::|print=list}}<!--
 +
-->|<!--
 +
  -->{{#hashinclude: paramHash
 +
      | group2 = Faces
 +
      | list2 = {{#arrayprint: facelist| :: | $face$ | [[$face]] }}<!--
 +
  -->}}<!--
 +
-->}}<!--
  
| group4 = Groups and organizations
+
-->{{#if: <!--
| list4  = <!--
+
  -->{{#arraydefine: Mnpclist |<!--
-->{{#ask: [[Organization in :: {{#var:campaign}}]] |format=list|sep=::}}<!--
+
      -->{{#ask: [[major NPC in campaign :: {{#var:campaign}}]] |format=list|sep=::|link=none}}<!--
-->{{#if: {{{extra organizations|}}} | :: {{{extra organizations}}} }}
+
      -->{{#if: {{{extra major NPCs|}}} | :: {{{extra major NPCs}}} }}<!--
 +
  -->| :: | print=list}}<!--
 +
-->|<!--
 +
  -->{{#hashinclude: paramHash
 +
      | group3 = Major NPCs
 +
      | list3  = {{#arrayprint: Mnpclist | :: | $npc$ | [[$npc$]] }}<!--
 +
  -->}}<!--
 +
-->}}<!--
  
}}
+
-->{{#if: <!--
<includeonly><!--
+
  -->{{#arraydefine: mnpclist |<!--
-->{{#if:<!--
+
      -->{{#ask: [[minor NPC in campaign :: {{#var:campaign}}]] |?=|format=list|sep=::|link=none}}<!--
   -->{{#ifeq:{{{nocategory|M_NUL}}}|M_NUL||1}}<!--
+
      -->{{#if: {{{extra minor NPCs|}}} | :: {{{extra minor NPCs}}} }}<!--
  -->{{#ifeq:{{{1}}}|nocategory|1|}}<!--
+
  -->|::|print=list;}}<!--
-->||[[Category: {{#var:campaign}}]]<!--
+
-->|<!--
 +
  -->{{#hashinclude: paramHash
 +
      | group4 = Minor NPCs
 +
      | list4  = {{#arrayprint: mnpclist | :: | $npc$ | [[$npc$]] }}
 +
      }}<!--
 +
-->}}<!--
 +
 
 +
-->{{#if: <!--
 +
   -->{{#arraydefine: orglist|<!--
 +
      -->{{#ask: [[organization in campaign :: {{#var:campaign}}]] |format=list|sep=::|link=none}}<!--
 +
      -->{{#if: {{{extra organizations|}}} | :: {{{extra organizations}}} }}<!--
 +
  -->|::|print=list}}<!--
 +
-->|<!--
 +
  -->{{#hashinclude: paramHash
 +
      | group5 = Groups and organizations
 +
      | list5  = {{#arrayprint: orglist | :: | $org$ | [[$org$]] }}
 +
      }}<!--
 +
-->}}<!--
  
  -->{{#if:<!--
 
      -->{{#ifeq:{{{npc|M_NUL}}}|M_NUL||1}}<!--
 
      -->{{#ifeq:{{{1}}}|npc|1|}}<!--
 
  -->|<!--
 
      -->[[Category: Characters in {{#var:campaign}}]]<!--
 
      -->[[Category: Non-player characters]]<!--
 
      -->{{#set: NPC in = {{#var:campaign}} }}<!--
 
  -->}}<!--
 
  -->{{#if:<!--
 
      -->{{#ifeq:{{{pc|M_NUL}}}|M_NUL||1}}<!--
 
      -->{{#ifeq:{{{1}}}|pc|1|}}<!--
 
  -->|<!--
 
      -->[[Category: Characters in {{#var:campaign}}]]<!--
 
      -->[[Category: Player characters]]<!--
 
      -->{{#set: PC in = {{#var:campaign}} }}<!--
 
  -->}}<!--
 
  -->{{#if:<!--
 
      -->{{#ifeq:{{{organization|M_NUL}}}|M_NUL||1}}<!--
 
      -->{{#ifeq:{{{1}}}|organization|1|}}<!--
 
  -->|<!--
 
      -->[[Category: Organizations]]<!--
 
      -->{{#set: Organization in = {{#var:campaign}} }}<!--
 
  -->}}<!--
 
  
-->}}<!--
+
-->{{#hashtotemplate:Campaign navigation box | paramHash }}
--></includeonly>
 

Revision as of 04:32, 16 April 2011