Template:Armor: Difference between revisions

From Regnum Online Wiki
Jump to navigation Jump to search
ROWiki>Eiram
No edit summary
ROWiki>-Mongoose-
test logic to allow npc to list items
Line 24: Line 24:
</pre>
</pre>
<onlyinclude><includeonly><!--
<onlyinclude><includeonly><!--
-->{{armor/{{#switch: {{FULLPAGENAME}}
-->
                | {{{name}}} = fullpage
 
                | #default = {{#if: {{{1|}}} | {{#explode: {{{1}}} | ; }} | full }}
<!-- Only display template if fields match any query data sent -->
              }}
<!-- If query data is provided {{{2}}}, check that it matches -->
    | {{{1|}}}
<!-- Otherwise, continue as normal -->
    | name      = {{{name}}}
{{#ifexpr:
    | type      = {{{type}}}
    {{#if: {{{2|}}}
    | armor    = {{{armor|}}}
      | {{#if: {{#pos: {{{alsius|}}} | {{{2}}} }} | 1 | 0}} or
    | level    = {{{level|}}}
        {{#if: {{#pos: {{{ignis|}}}  | {{{2}}} }} | 1 | 0}} or
    | slashing  = {{{slashing|}}}
        {{#if: {{#pos: {{{syrtis|}}} | {{{2}}} }} | 1 | 0}}
    | piercing  = {{{piercing|}}}
      | 1
    | blunt    = {{{blunt|}}}
    }}
    | fire      = {{{fire|}}}
|
    | ice      = {{{ice|}}}
 
    | lightning = {{{lightning|}}}
  {{armor/{{#switch: {{FULLPAGENAME}}
    | weight    = {{{weight|}}}
              | {{{name}}} = fullpage
    | bonuses  = {{{bonuses|}}}
              | #default = {{#if: {{{1|}}} | {{#explode: {{{1}}} | ; }} | full}}
    | icon      = {{{icon|}}}
          }}
    | image    = {{{image|}}}
      | {{{1|}}}
    | alsius    = {{{alsius|}}}
      | name      = {{{name}}}
    | ignis    = {{{ignis|}}}
      | type      = {{{type}}}
    | syrtis    = {{{syrtis|}}}
      | armor    = {{{armor|}}}
    | notes    = {{{notes|}}}
      | level    = {{{level|}}}
  }}<!--
      | slashing  = {{{slashing|}}}
--></includeonly></onlyinclude>
      | piercing  = {{{piercing|}}}
      | blunt    = {{{blunt|}}}
      | fire      = {{{fire|}}}
      | ice      = {{{ice|}}}
      | lightning = {{{lightning|}}}
      | weight    = {{{weight|}}}
      | bonuses  = {{{bonuses|}}}
      | icon      = {{{icon|}}}
      | image    = {{{image|}}}
      | alsius    = {{{alsius|}}}
      | ignis    = {{{ignis|}}}
      | syrtis    = {{{syrtis|}}}
      | notes    = {{{notes|}}}
    }}<!--
-->}}
</includeonly></onlyinclude>

Revision as of 21:17, 14 July 2013

{{armor | {{{1|}}}
  | name      = {{subst:PAGENAME}}
  | type      = 
  | armor     = 
  | level     = 
  | slashing  = 
  | piercing  = 
  | blunt     = 
  | fire      = 
  | ice       = 
  | lightning = 
  | weight    = 
  | bonuses   = 
  | wmcoins   = 
<!-- Obtained from: -->
  | alsius    = 
  | ignis     = 
  | syrtis    = 

  | notes     = 

}}