From GamingWiki
Jump to: navigation, search
(Created page with "{{Documentation}} <onlyinclude><!-- -->{{#vardefine:cols|{{{columns|2}}}}}<!-- -->{| class="infobox floatright" <!-- HEADER If the campaign is specified we put it in the h...")
 
 
(19 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>}}}|<div class="campaign"><!--
+
      -->{{#var:name | [[Property: Name]]}} <!--
    --> [[{{{campaign}}}]] <!--
+
      --><div class="campaign">[[{{#var:campaign | Property: Campaign}}]]</div><!--
    --><includeonly>[[Category: {{{campaign}}}]]</includeonly><!--
 
  -->}} <!--
 
--></div>}}<!--
 
 
-->}}<!-- end section --><!--
 
-->}}<!-- end section --><!--
  
 
   ASPECTS
 
   ASPECTS
 
+
-->{{#if: {{#arraydefine: aspectsarray | {{{aspects|}}} | ;; | print=list}}|<!--
-->{{Character sheet/section | columns = {{#var:cols}}  
+
  -->{{Character sheet/section | columns = {{#var:cols}}  
  | subhead  = Aspects
+
      | subhead  = Aspects
  | label1    = M_NUL
+
      | label1    = M_NUL
  | data1    = <!--
+
      | data1    = <!--
-->{{#if: {{{image|}}} | [[Image:{{{image}}}{{!}}thumb{{!}}{{{caption|}}}]]}}<!--
+
  -->{{#if: {{{image|}}} | [[Image:{{{image}}}{{!}}thumb{{!}}{{{caption|}}}]]}}<!--
-->{{#arraydefine: aspectsarray | {{{aspects}}} | ;; }}<!--
+
  -->{{#arrayprint:  aspectsarray || @@@@ | <nowiki />
-->{{#arrayprint:  aspectsarray || @@@@ | <nowiki />
 
 
* <span class="aspect">@@@@</span> {{#set: has aspect = @@@@}} }}
 
* <span class="aspect">@@@@</span> {{#set: has aspect = @@@@}} }}
 
}}<!-- end section --><!--
 
}}<!-- end section --><!--
 +
-->}}<!--
 +
 +
  BLURB
 +
-->{{#vardefine: high concept|{{{high concept|{{{blurb|}}}}}} }}<!--
 +
-->{{#if: {{#var: high concept}}|<!--
 +
  -->{{Character sheet/section
 +
      | columns = {{#var:cols}}
 +
      | label1    = M_NUL
 +
      | data1    = {{#var: high concept}}
 +
      }}<!-- end section --><!--
 +
-->}}<!--
  
  
 
   LEADERS
 
   LEADERS
-->{{#if: {{{leaders|}}}|<!--
+
-->{{#arrayreset:dataarray}}<!--
-->{{Character sheet/section | columns = {{#var:cols}}  
+
-->{{#if: {{#arraydefine: dataarray | {{{leaders|}}} | ; | print=list}}|<!--
  | label1    = Leaders
+
  -->{{Character sheet/section | columns = {{#var:cols}}  
  | data1    = <!--
+
      | label1    = Leaders
-->{{#arraydefine: dataarray | {{{leaders}}} | ;; }}<!--
+
      | data1    = {{#arrayprint:  dataarray || @@@@ |<nowiki />
-->{{#arrayprint:  dataarray || @@@@ | <nowiki />
+
* [[{{#vardefineecho: thename  | {{#explode:@@@@|//|0}}}}]] <!--
* [[@@@@]] {{#set: has leader = @@@@}} }}
+
  -->{{#if:{{#vardefineecho: thetitle  | {{#explode:@@@@|//|1}}}}<!--
 +
  -->|<!--
 +
      --> ({{#var:thetitle}}) <!--
 +
      --> {{#set: has {{#var:thetitle}} = {{#var:thename}}}} }}<!--
 +
  -->|<!--
 +
      --> {{#set: has leader = {{#var:thename}}}} }}<!--
 +
  -->}}
 +
}}<!-- end section --><!--
 +
-->}}<!--
 +
 
 +
  MEMBERS
 +
-->{{#arrayreset:dataarray}}<!--
 +
-->{{#if: {{#arraydefine: dataarray | {{{members|}}} | ; |print=list}}|<!--
 +
  -->{{Character sheet/section | columns = {{#var:cols}}
 +
      | label1    = Members
 +
      | data1    = {{#arrayprint:  dataarray || @@@@ |<nowiki />
 +
* [[{{#vardefineecho: thename  | {{#explode:@@@@|//|0}} }}]] <!--
 +
      -->{{#if: {{#vardefineecho: thetitle  | {{#explode:@@@@|//|1}} }}<!--
 +
      -->|<!-- Specific kind of member
 +
        --> ({{#var:thetitle}}) <!--
 +
        --> {{#set: has {{#var:thetitle}} = {{#var:thename}} }}<!--
 +
      -->|<!-- General member
 +
        --> {{#set: has member = {{#var:thename}} }}<!--
 +
      -->}}<!-- end if
 +
  -->}}<!-- end arrayprint -->
 
}}<!-- end section --><!--
 
}}<!-- end section --><!--
 
-->}}<!--
 
-->}}<!--
  
   BLURB
+
   ALLIES
-->{{#if: {{{blurb|}}}|<!--
+
-->{{#arrayreset:dataarray}}<!--
-->{{Character sheet/section | columns = {{#var:cols}}  
+
-->{{#if: {{#arraydefine: dataarray | {{{allies|}}} | ; |print=list}}|<!--
   | label1    = M_NUL
+
  -->{{Character sheet/section | columns = {{#var:cols}}  
  | data1    = {{{blurb}}}
+
      | label1   = Allies
 +
      | data1    = {{#arrayprint:  dataarray || @@@@ | <nowiki />
 +
* [[@@@@]] {{#set: has ally = @@@@}} }}
 +
}}<!-- end section --><!--
 +
-->}}<!--
 +
  RIVALS
 +
-->{{#arrayreset:dataarray}}<!--
 +
-->{{#if: {{#arraydefine: dataarray | {{{rivals|}}} | ; |print=list}}|<!--
 +
  -->{{#arrayunique: dataarray}}<!--
 +
  -->{{Character sheet/section | columns = {{#var:cols}}
 +
      | label1    = Rivals
 +
      | data1    = {{#arrayprint:  dataarray || @@@@ | <nowiki />
 +
* [[@@@@]] {{#set: has rival = @@@@}} }}
 
}}<!-- end section --><!--
 
}}<!-- end section --><!--
 
-->}}<!--
 
-->}}<!--
  
   Relationships
+
   RELATIONSHIPS
-->{{#if: {{{relationships|}}}|<!--
+
-->{{#arrayreset:dataarray}}<!--
-->{{Character sheet/section | columns = {{#var:cols}}  
+
-->{{#if: {{#arraydefine: dataarray | {{{relationships|}}} | ; | print=list}}|<!--
  | label1    = Relationships
+
  -->{{Character sheet/section | columns = {{#var:cols}}  
  | data1    = <!--
+
      | label1    = Relationships
-->{{#arraydefine: dataarray | {{{relationships}}} | ;; }}<!--
+
      | data1    = {{#arrayprint:  dataarray || @@@@ |<nowiki />
-->{{#arrayprintdataarray || @@@@ | <nowiki />
+
* [[{{#vardefineecho: thename  | {{#explode:@@@@|//|0}}}}]] <!--
* @@@@ {{#set: has relationship = @@@@}} }}
+
      -->{{#if:{{#vardefineecho: thelink  | {{#explode:@@@@|//|1}}}}<!--
 +
      -->|<!--
 +
        --> ({{#var:thelink}}) <!--
 +
        --> {{#set: has {{#var:thelink}} = {{#var:thename}} }}<!--
 +
      -->|<!--
 +
        --> {{#set: has relationship with = {{#var:thename}} }}<!--
 +
      -->}}<!-- end if
 +
  -->}}<!-- end arrayprint -->
 
}}<!-- end section --><!--
 
}}<!-- end section --><!--
 
-->}}<!--
 
-->}}<!--
Line 64: 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 70: 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}}} <!--
+
   -->{{#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:{{{campaign|}}}    |<!--
+
  -->{{#if: {{{face of|}}}         | {{#set: face of      = {{{face of}}}         }} }}<!--
  -->{{#set:<!--
+
  -->{{#if: {{#var: high concept}} | <!--
      -->| campaign       = {{{campaign}}} <!--
+
      -->{{#set: <!--
      -->| organization in = {{{campaign}}} <!--
+
        -->| blurb       = {{#var:high concept}}<!--
 +
        -->| high concept = {{#var:high concept}}<!--
 +
      -->}}<!--
 
   -->}}<!--
 
   -->}}<!--
   -->[[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