8,290
edits
(add additional fields from Template:Item that were missing and should apply to certain Character pages now) |
m (don't show tier for creatures) |
||
Line 303: | Line 303: | ||
<!--tinkering--> | <!--tinkering--> | ||
{{#if: {{{complexity|}}}| {{infobox row|Complexity|{{{complexity}}} }} }} | {{#if: {{{complexity|}}}| {{infobox row|Complexity|{{{complexity}}} }} }} | ||
{{#if: {{{tier|}}} | {{#vardefine:TIER|{{{tier}}}}} | | {{#if: {{{xpvalue|}}} |<!--only output this here if there is NOT an xpvalue-->| | ||
{{#if: {{{tier|}}} | {{#vardefine:TIER|{{{tier}}}}} | | |||
{{#if: {{{bits|}}} | {{#vardefine:TIER|{{#sub:{{{bits}}}| -1 }} }} }} }}<!-- | |||
-->{{#varexists:TIER | {{infobox row|Tier|{{#if:{{{modcount|}}} | {{#expr:{{#var:TIER}} + {{{modcount}}} }} {{Color|K|({{#var_final:TIER}}+{{{modcount}}}) }} | Determine tier from bits if not specified. Then, check for final value | ||
-->{{#varexists:TIER | {{infobox row|Tier|{{#if:{{{modcount|}}} | {{#expr:{{#var:TIER}} + {{{modcount}}} }} {{Color|K|({{#var_final:TIER}}+{{{modcount}}}) }} | |||
| {{#var_final:TIER}} }} }} | |||
}} | |||
}} | |||
{{#if: {{{bits|}}} | {{#if:{{{canbuild|}}}{{{candisassemble|}}}| {{infobox row|[[Bits]]|{{Bits|{{{bits}}}}} }} }} }} | {{#if: {{{bits|}}} | {{#if:{{{canbuild|}}}{{{candisassemble|}}}| {{infobox row|[[Bits]]|{{Bits|{{{bits}}}}} }} }} }} | ||
{{#if: {{{candisassemble|}}}| {{infobox row|Can Disassemble|{{{candisassemble}}} }} }} | {{#if: {{{candisassemble|}}}| {{infobox row|Can Disassemble|{{{candisassemble}}} }} }} |