Template:Armor: Difference between revisions

From Regnum Online Wiki
Jump to navigation Jump to search
ROWiki>-Mongoose-
add missing if
m 32 revisions imported
 
(4 intermediate revisions by 3 users not shown)
Line 24: Line 24:
</pre>
</pre>
<onlyinclude><includeonly><!--
<onlyinclude><includeonly><!--
-->
-->{{armor/{{#switch: {{FULLPAGENAME}}
 
                | {{{name}}} = fullpage
<!-- Only display template if fields match any query data sent -->
                | #default = {{#if: {{{1|}}} | {{#explode: {{{1}}} | ; }} | full }}
<!-- If query data is provided {{{2}}}, check that it matches -->
              }}
<!-- Otherwise, continue as normal -->
    | {{{1|}}}
{{#ifexpr:
    | name      = {{{name}}}
  {{#if: {{#explode: {{{1|}}} | ; | 1}}
    | type      = {{{type}}}
  | {{#if: {{#pos: {{{alsius|}}} | {{#explode: {{{1|}}} | ; | 1}} }} | 1 | 0}} or
    | armor    = {{{armor|}}}
    {{#if: {{#pos: {{{ignis|}}}  | {{#explode: {{{1|}}} | ; | 1}} }} | 1 | 0}} or
    | level    = {{{level|}}}
    {{#if: {{#pos: {{{syrtis|}}} | {{#explode: {{{1|}}} | ; | 1}} }} | 1 | 0}}
    | slashing  = {{{slashing|}}}
  | 1
    | piercing  = {{{piercing|}}}
    }}
    | blunt    = {{{blunt|}}}
|
    | fire      = {{{fire|}}}
 
    | ice      = {{{ice|}}}
  {{armor/{{#switch: {{FULLPAGENAME}}
    | lightning = {{{lightning|}}}
              | {{{name}}} = fullpage
    | weight    = {{{weight|}}}
              | #default = {{#if: {{{1|}}} | {{#explode: {{{1}}} | ; }} | full}}
    | bonuses  = {{{bonuses|}}}
          }}
    | wmcoins  = {{{wmcoins|}}}
      | {{{1|}}}
    | icon      = {{{icon|}}}
      | name      = {{{name}}}
    | image    = {{{image|}}}
      | type      = {{{type}}}
    | alsius    = {{{alsius|}}}
      | armor    = {{{armor|}}}
    | ignis    = {{{ignis|}}}
      | level    = {{{level|}}}
    | syrtis    = {{{syrtis|}}}
      | slashing  = {{{slashing|}}}
    | notes    = {{{notes|}}}
      | piercing  = {{{piercing|}}}
  }}<!--
      | blunt    = {{{blunt|}}}
--></includeonly></onlyinclude>
      | fire      = {{{fire|}}}
      | ice      = {{{ice|}}}
      | lightning = {{{lightning|}}}
      | weight    = {{{weight|}}}
      | bonuses  = {{{bonuses|}}}
      | icon      = {{{icon|}}}
      | image    = {{{image|}}}
      | alsius    = {{{alsius|}}}
      | ignis    = {{{ignis|}}}
      | syrtis    = {{{syrtis|}}}
      | notes    = {{{notes|}}}
    }}<!--
-->}}
</includeonly></onlyinclude>

Latest revision as of 18:08, 6 November 2020

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

  | notes     = 

}}