From GamingWiki
Jump to: navigation, search
(Created page with "<!-- Initial queries -->{{#vardefine: campaign | {{{campaign<noinclude>|Terra Φ</noinclude>}}} }}<!-- -->{{#vardefine: campaignimage | {{#ask: [[{{{campaign<noinclude>|Terra ...")
 
 
(17 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
   Initial queries
 
   Initial queries
-->{{#vardefine: campaign | {{{campaign<noinclude>|Terra Φ</noinclude>}}} }}<!--
+
-->{{#vardefine: campaign | {{{campaign|{{{1<noinclude>|Steel Town</noinclude>}}} }}} }}<!--
-->{{#vardefine: campaignimage | {{#ask: [[{{{campaign<noinclude>|Terra Φ</noinclude>}}}]] | mainlabel= | ?image# }} }}<!--
+
-->{{#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  =
 
{{#arraydefine: pcarray
 
|{{#ask: [[Category: {{#var:campaign}}]] [[Category: Player characters]]|format=list}}
 
}}{{#arrayprint: pcarray|::}} {{#if: {{{extra PCs|}}} | :: {{{extra PCs}}} }}
 
  
| group2 = Major NPCs
+
-->{{#arraydefine: pclist |<!--
| list2  =
+
  -->{{#ask: [[is PC in campaign :: {{#var:campaign}}]] | format=list | order=asc | sep=:: | link=none | limit=20 | searchlabel= }}<!--
{{#arraydefine: npcarray
+
-->|::}}<!--
|{{#ask: [[Category: {{#var:campaign}}]] [[Category: Non-player characters]]|format=list}}
+
-->{{#hashinclude: paramHash
}}{{#arrayprint: npcarray|::}} {{#if: {{{extra NPCs|}}} | :: {{{extra NPCs}}} }}
+
  | group1 = PCs
 +
  | list1  = {{#arrayprint:pclist| :: | $pc$ | [[$pc$]] }}
 +
  }}<!--
  
| group3 = Minor NPCs
+
-->{{#if: <!--
| list3 =  
+
  -->{{#arraydefine: facelist|<!--
 +
      -->{{#ask: [[face in campaign :: {{#var:campaign}}]] |format=list|order=asc|sep=::|link=none|limit=20|searchlabel=}}<!--
 +
  -->|::|print=list}}<!--
 +
-->|<!--
 +
  -->{{#hashinclude: paramHash
 +
      | group2 = Faces
 +
      | list2 = {{#arrayprint: facelist| :: | $face$ | [[$face]] }}
 +
      }}<!--
 +
-->}}<!--
  
| group4 = Groups and organizations
+
-->{{#if: <!--
| list4  =
+
  -->{{#arraydefine: npclist |<!--
{{#arraydefine: orgsarray
+
      -->{{#ask: [[NPC in campaign :: {{#var:campaign}}]] |format=list|order=asc|sep=::|link=none|limit=20|searchlabel=}}<!--
|{{#ask: [[Category: {{#var:campaign}}]] [[Category: Organizations]]|format=list}}
+
  -->| :: | print=list}}<!--
}}{{#arrayprint: orgsarray|::}} {{#if: {{{extra organizations|}}} | :: {{{extra organizations}}} }}
+
-->|<!--
 +
  -->{{#hashinclude: paramHash
 +
      | group3 = NPCs
 +
      | list3  = {{#arrayprint: npclist | :: | $npc$ | [[$npc$]] }}
 +
      }}<!--
 +
-->}}<!--
  
}}
+
-->{{#if: <!--
<includeonly><!--
+
  -->{{#arraydefine: Mnpclist |<!--
-->{{#if:<!--
+
      -->{{#ask: [[major NPC in campaign :: {{#var:campaign}}]] |format=list|order=asc|sep=::|link=none|limit=20|searchlabel=}}<!--
  -->{{#ifeq:{{{nocategory|M_NUL}}}|M_NUL||1}}<!--
+
   -->| :: | print=list}}<!--
   -->{{#ifeq:{{{1}}}|nocategory|1|}}<!--
+
-->|<!--
-->||[[Category: Characters in {{#var:campaign}}]]}}<!--
+
  -->{{#hashinclude: paramHash
-->{{#if:<!--
+
      | group3 = Major NPCs
   -->{{#ifeq:{{{npc|M_NUL}}}|M_NUL||1}}<!--
+
      | list3  = {{#arrayprint: Mnpclist | :: | $npc$ | [[$npc$]] }}
   -->{{#ifeq:{{{1}}}|npc|1|}}<!--
+
      }}<!--
-->|[[Category: Non-player characters]]}}<!--
+
-->}}<!--
-->{{#if:<!--
+
-->{{#if: <!--
   -->{{#ifeq:{{{pc|M_NUL}}}|M_NUL||1}}<!--
+
   -->{{#arraydefine: mnpclist |<!--
  -->{{#ifeq:{{{1}}}|pc|1|}}<!--
+
      -->{{#ask: [[minor NPC in campaign :: {{#var:campaign}}]] |format=list|order=asc|sep=::|link=none|limit=20|searchlabel=}}<!--
-->|[[Category: Player characters]]}}<!--
+
  -->|::|print=list}}<!--
-->{{#if:<!--
+
-->|<!--
   -->{{#ifeq:{{{organization|M_NUL}}}|M_NUL||1}}<!--
+
   -->{{#hashinclude: paramHash
  -->{{#ifeq:{{{1}}}|organization|1|}}<!--
+
      | group4 = Minor NPCs
-->|[[Category: Organizations]]}}<!--
+
      | list4  = {{#arrayprint: mnpclist | :: | $npc$ | [[$npc$]] }}
--></includeonly>
+
      }}<!--
 +
-->}}<!--
 +
 
 +
-->{{#if: <!--
 +
   -->{{#arraydefine: orglist|<!--
 +
      -->{{#ask: [[organization in campaign :: {{#var:campaign}}]] |format=list|order=asc|sep=::|link=none|limit=20|searchlabel=}}<!--
 +
  -->|::|print=list}}<!--
 +
-->|<!--
 +
   -->{{#hashinclude: paramHash
 +
      | group5 = Groups and organizations
 +
      | list5  = {{#arrayprint: orglist | :: | $org$ | [[$org$]] }}  
 +
      }}<!--
 +
-->}}<!--
 +
 
 +
 
 +
--><!-- {{#hashprint: paramHash}} --><!--  
 +
-->{{#hashtotemplate:Campaign navigation box | paramHash }} <!-- -->

Latest revision as of 18:22, 13 January 2016