From GamingWiki
Jump to: navigation, search
 
(8 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
<onlyinclude><!--
 
<onlyinclude><!--
-->{{#vardefine:cols|{{{columns|2}}}}}<!--
+
 
 +
-->{{#vardefine: campaign | {{{campaign | }}} }}<!--
 +
-->{{#vardefine: name    | {{{name    | }}}    }}<!--
 +
 
 +
-->{{#vardefine: cols     | {{{columns | 2 }}}                 }}<!--
 
-->{| class="infobox floatright" <!--
 
-->{| class="infobox floatright" <!--
  
Line 9: Line 13:
 
   If the campaign is specified we put it in the header
 
   If the campaign is specified we put it in the header
 
-->{{Character sheet/section | columns = {{#var:cols}}  
 
-->{{Character sheet/section | columns = {{#var:cols}}  
   | header  =  {{{name}}} <!--
+
   | header  =  <!--
  -->{{#if: {{{campaign<includeonly>|</includeonly>}}}|<!--
+
      -->{{#var:name | [[Property: Name]]}} <!--
       --><div class="campaign">[[{{{campaign}}}]]</div><!--
+
       --><div class="campaign">[[{{#var:campaign | Property: Campaign}}]]</div><!--
  -->}} <!--
 
 
-->}}<!-- end section --><!--
 
-->}}<!-- end section --><!--
  
 
   ASPECTS
 
   ASPECTS
-->{{#if: {{#arraydefine: aspectsarray | {{{aspects<includeonly>|</includeonly>}}} | ;; | print=list}}|<!--
+
-->{{#if: {{#arraydefine: aspectsarray | {{{aspects|}}} | ;; | print=list}}|<!--
 
   -->{{Character sheet/section | columns = {{#var:cols}}  
 
   -->{{Character sheet/section | columns = {{#var:cols}}  
 
       | subhead  = Aspects
 
       | subhead  = Aspects
Line 28: Line 31:
  
 
   BLURB
 
   BLURB
-->{{#if: {{{blurb|}}}|<!--
+
-->{{#vardefine: high concept|{{{high concept|{{{blurb|}}}}}} }}<!--
   -->{{Character sheet/section | columns = {{#var:cols}}  
+
-->{{#if: {{#var: high concept}}|<!--
 +
   -->{{Character sheet/section  
 +
      | columns = {{#var:cols}}  
 
       | label1    = M_NUL
 
       | label1    = M_NUL
       | data1    = {{{blurb}}}
+
       | data1    = {{#var: high concept}}
  }}<!-- end section --><!--
+
      }}<!-- end section --><!--
 
-->}}<!--
 
-->}}<!--
  
  
 
   LEADERS
 
   LEADERS
-->{{#if: {{#arraydefine: dataarray | {{{leaders|}}} | ;; | print=list}}|<!--
+
-->{{#arrayreset:dataarray}}<!--
 +
-->{{#if: {{#arraydefine: dataarray | {{{leaders|}}} | ; | print=list}}|<!--
 
   -->{{Character sheet/section | columns = {{#var:cols}}  
 
   -->{{Character sheet/section | columns = {{#var:cols}}  
 
       | label1    = Leaders
 
       | label1    = Leaders
Line 53: Line 59:
  
 
   MEMBERS
 
   MEMBERS
-->{{#if: {{#arraydefine: dataarray | {{{members|}}} | ;; | print=list }}|<!--
+
-->{{#arrayreset:dataarray}}<!--
 +
-->{{#if: {{#arraydefine: dataarray | {{{members|}}} | ; |print=list}}|<!--
 
   -->{{Character sheet/section | columns = {{#var:cols}}  
 
   -->{{Character sheet/section | columns = {{#var:cols}}  
 
       | label1    = Members
 
       | label1    = Members
 
       | data1    = {{#arrayprint:  dataarray || @@@@ |<nowiki />
 
       | data1    = {{#arrayprint:  dataarray || @@@@ |<nowiki />
* [[{{#vardefineecho: thename  | {{#explode:@@@@|//|0}}}}]] <!--
+
* [[{{#vardefineecho: thename  | {{#explode:@@@@|//|0}} }}]] <!--
  -->{{#if: {{#vardefineecho: thetitle  | {{#explode:@@@@|//|1}}}}<!--
+
      -->{{#if: {{#vardefineecho: thetitle  | {{#explode:@@@@|//|1}} }}<!--
  -->|<!-- Specific kind of member
+
      -->|<!-- Specific kind of member
      --> ({{#var:thetitle}}) <!--
+
        --> ({{#var:thetitle}}) <!--
      --> {{#set: has {{#var:thetitle}} = {{#var:thename}} }}<!--
+
        --> {{#set: has {{#var:thetitle}} = {{#var:thename}} }}<!--
  -->|<!-- General member
+
      -->|<!-- General member
      --> {{#set: has member = {{#var:thename}} }}<!--
+
        --> {{#set: has member = {{#var:thename}} }}<!--
   -->}}
+
      -->}}<!-- end if
 +
   -->}}<!-- end arrayprint -->
 
}}<!-- end section --><!--
 
}}<!-- end section --><!--
 
-->}}<!--
 
-->}}<!--
  
 
   ALLIES
 
   ALLIES
-->{{#if: {{#arraydefine: dataarray | {{{allies|}}} | ;; |print=list}}|<!--
+
-->{{#arrayreset:dataarray}}<!--
 +
-->{{#if: {{#arraydefine: dataarray | {{{allies|}}} | ; |print=list}}|<!--
 
   -->{{Character sheet/section | columns = {{#var:cols}}  
 
   -->{{Character sheet/section | columns = {{#var:cols}}  
 
       | label1    = Allies
 
       | label1    = Allies
Line 77: Line 86:
 
-->}}<!--
 
-->}}<!--
 
   RIVALS
 
   RIVALS
-->{{#if: {{#arraydefine: dataarray | {{{rivals|}}} | ;; |print=list}}|<!--
+
-->{{#arrayreset:dataarray}}<!--
 +
-->{{#if: {{#arraydefine: dataarray | {{{rivals|}}} | ; |print=list}}|<!--
 +
  -->{{#arrayunique: dataarray}}<!--
 
   -->{{Character sheet/section | columns = {{#var:cols}}  
 
   -->{{Character sheet/section | columns = {{#var:cols}}  
 
       | label1    = Rivals
 
       | label1    = Rivals
Line 86: Line 97:
  
 
   RELATIONSHIPS
 
   RELATIONSHIPS
-->{{#if: {{#arraydefine: dataarray | {{{relationships|}}} | ;; | print=list}}|<!--
+
-->{{#arrayreset:dataarray}}<!--
 +
-->{{#if: {{#arraydefine: dataarray | {{{relationships|}}} | ; | print=list}}|<!--
 
   -->{{Character sheet/section | columns = {{#var:cols}}  
 
   -->{{Character sheet/section | columns = {{#var:cols}}  
 
       | label1    = Relationships
 
       | label1    = Relationships
 
       | data1    = {{#arrayprint:  dataarray || @@@@ |<nowiki />
 
       | data1    = {{#arrayprint:  dataarray || @@@@ |<nowiki />
 
* [[{{#vardefineecho: thename  | {{#explode:@@@@|//|0}}}}]] <!--
 
* [[{{#vardefineecho: thename  | {{#explode:@@@@|//|0}}}}]] <!--
  -->{{#if:{{#vardefineecho: thelink  | {{#explode:@@@@|//|1}}}}<!--
+
      -->{{#if:{{#vardefineecho: thelink  | {{#explode:@@@@|//|1}}}}<!--
  -->|<!--
+
      -->|<!--
      --> ({{#var:thelink}}) <!--
+
        --> ({{#var:thelink}}) <!--
      --> {{#set: has {{#var:thelink}}  = {{#var:thename}} }}<!--
+
        --> {{#set: has {{#var:thelink}}  = {{#var:thename}} }}<!--
  -->|<!--
+
      -->|<!--
      --> {{#set: has relationship with = {{#var:thename}} }}<!--
+
        --> {{#set: has relationship with = {{#var:thename}} }}<!--
   -->}}
+
      -->}}<!-- end if
 +
   -->}}<!-- end arrayprint -->
 
}}<!-- end section --><!--
 
}}<!-- end section --><!--
 
-->}}<!--
 
-->}}<!--
Line 105: Line 118:
 
-->
 
-->
 
| colspan="{{#var:cols}}" | {{navbar|{{{template name|Character sheet/Organization}}}|mini=1}}  
 
| colspan="{{#var:cols}}" | {{navbar|{{{template name|Character sheet/Organization}}}|mini=1}}  
|}<includeonly><!--
+
|}<!--
  
 
   END SHEET
 
   END SHEET
Line 111: Line 124:
 
   Semantic MediaWiki keys and categories for any *page* using this template
 
   Semantic MediaWiki keys and categories for any *page* using this template
  
-->{{#set: <!--
+
--><includeonly><!--
   -->| name = {{{name|M_NUL}}} <!--
+
   -->{{#set:
  -->| is a = Organization <!--
+
      | name                     = {{#var: name }}
-->}}<!--
+
      | is a                     = Organization  
-->{{#if:{{{blurb|}}}       |{{#set: blurb          = {{{blurb}}}        }}}}<!--
+
      }}<!--
-->{{#if:{{{description|}}} |{{#set: description    = {{{description}}}   }}}}<!--
+
  -->{{#if: {{{description|}}}     | {{#set: description  = {{{description}}}     }} }}<!--
-->{{#if: {{{face of|}}}       | {{#set: face of      = {{{face of}}} }} }}<!--
+
  -->{{#if: {{{face of|}}}         | {{#set: face of      = {{{face of}}}         }} }}<!--
-->{{#if: {{{high concept|}}}  | {{#set: high concept = {{{high concept}}} }} }}<!--
+
  -->{{#if: {{#var: high concept}} | <!--
-->{{#if: {{{motivation|}}}    | {{#set: motivation  = {{{motivation}}} }} }}<!--
+
      -->{{#set: <!--
 
+
        -->| blurb        = {{#var:high concept}}<!--
-->{{#if:{{{campaign|}}}     |<!--
+
        -->| high concept = {{#var:high concept}}<!--
  -->{{#set:<!--
+
       -->}}<!--
      -->| campaign        = {{{campaign}}} <!--
 
       -->| organization in = {{{campaign}}<!--
 
 
   -->}}<!--
 
   -->}}<!--
   -->[[Category: Organizations in {{{campaign}}}]]<!--
+
   -->{{#if: {{{motivation|}}}     | {{#set: motivation  = {{{motivation}}}      }} }}<!--
-->|<!--
 
  -->[[Category: Organizations]]<!--
 
-->}}<!--
 
  
 +
  -->{{#if: {{#var: campaign}}    | <!--
 +
      -->{{#set:
 +
        | campaign                = {{#var: campaign}} 
 +
        | organization in campaign = {{#var: campaign}} 
 +
        }}<!--
 +
      -->[[Category: Organizations in {{#var:campaign}}]] }}<!--
 
--></includeonly><!--
 
--></includeonly><!--
 +
 
--></onlyinclude><!--
 
--></onlyinclude><!--
  
 
-->
 
-->

Latest revision as of 01:13, 15 December 2012

[create]
Error creating thumbnail: File missing
Template documentation
Property: Name