From GamingWiki
Jump to: navigation, search
 
(13 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: [[{{#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: [[Category: {{#var:campaign}}]] [[Category: Player characters]]|format=list|sep=::}}<!--
 
-->{{#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= }}<!--
-->{{#ask: [[Category: {{#var:campaign}}]] [[Category: Non-player characters]]|format=list|sep=::}}<!--
+
-->|::}}<!--
-->{{#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|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 |<!--
-->{{#ask: [[Category: {{#var:campaign}}]] [[Category: Organizations]]|format=list|sep=::}}<!--
+
      -->{{#ask: [[NPC in campaign :: {{#var:campaign}}]] |format=list|order=asc|sep=::|link=none|limit=20|searchlabel=}}<!--
-->{{#if: {{{extra organizations|}}} | :: {{{extra organizations}}} }}
+
  -->| :: | print=list}}<!--
 +
-->|<!--
 +
  -->{{#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: {{#var:campaign}}]]<!--
+
  -->{{#hashinclude: paramHash
 +
      | group3 = Major NPCs
 +
      | list3  = {{#arrayprint: Mnpclist | :: | $npc$ | [[$npc$]] }}
 +
      }}<!--
 +
-->}}<!--
 +
-->{{#if: <!--
 +
   -->{{#arraydefine: mnpclist |<!--
 +
      -->{{#ask: [[minor NPC in campaign :: {{#var:campaign}}]] |format=list|order=asc|sep=::|link=none|limit=20|searchlabel=}}<!--
 +
  -->|::|print=list}}<!--
 +
-->|<!--
 +
  -->{{#hashinclude: paramHash
 +
      | group4 = Minor NPCs
 +
      | list4  = {{#arrayprint: mnpclist | :: | $npc$ | [[$npc$]] }}
 +
      }}<!--
 +
-->}}<!--
  
  -->{{#if:<!--
+
-->{{#if: <!--
      -->{{#ifeq:{{{npc|M_NUL}}}|M_NUL||1}}<!--
+
  -->{{#arraydefine: orglist|<!--
       -->{{#ifeq:{{{1}}}|npc|1|}}<!--
+
       -->{{#ask: [[organization in campaign :: {{#var:campaign}}]] |format=list|order=asc|sep=::|link=none|limit=20|searchlabel=}}<!--
  -->|[[Category: Characters in {{#var:campaign}}]][[Category: Non-player characters]]}}<!--
+
  -->|::|print=list}}<!--
  -->{{#if:<!--
+
-->|<!--
      -->{{#ifeq:{{{pc|M_NUL}}}|M_NUL||1}}<!--
+
   -->{{#hashinclude: paramHash
      -->{{#ifeq:{{{1}}}|pc|1|}}<!--
+
      | group5 = Groups and organizations
  -->|[[Category: Characters in {{#var:campaign}}]][[Category: Player characters]]}}<!--
+
       | list5  = {{#arrayprint: orglist | :: | $org$ | [[$org$]] }}  
   -->{{#if:<!--
+
       }}<!--
       -->{{#ifeq:{{{organization|M_NUL}}}|M_NUL||1}}<!--
+
-->}}<!--
       -->{{#ifeq:{{{1}}}|organization|1|}}<!--
 
  -->|[[Category: Organizations]]}}<!--
 
  
-->}}<!--
+
 
--></includeonly>
+
--><!-- {{#hashprint: paramHash}} --><!--  
 +
-->{{#hashtotemplate:Campaign navigation box | paramHash }} <!-- -->

Latest revision as of 18:22, 13 January 2016