Template:Build equipment: Difference between revisions
No edit summary |
|||
Line 4: | Line 4: | ||
<div class="gear-entry d-flex align-items-center">{{#if: {{{head|}}}|<div class="me-2">[[File:{{{head|}}}.webp|90px|alt={{{head|}}}|link=]]</div><div><small class="mb-1">Head</small><div class="mb-1" style="font-weight: 500; color: #fff;">{{{head|}}}</div><div class="d-flex">{{#arraymap:{{{head skills|}}}|,|@@@|{{Skill no text|@@@}}|}}</div></div>|<div>Missing "head" property.</div>}}</div> | <div class="gear-entry d-flex align-items-center">{{#if: {{{head|}}}|<div class="me-2">[[File:{{{head|}}}.webp|90px|alt={{{head|}}}|link=]]</div><div><small class="mb-1">Head</small><div class="mb-1" style="font-weight: 500; color: #fff;">{{{head|}}}</div><div class="d-flex">{{#arraymap:{{{head skills|}}}|,|@@@|{{Skill no text|@@@}}|}}</div></div>|<div>Missing "head" property.</div>}}</div> | ||
<div class="gear-entry d-flex align-items-center">{{#if: {{{cape|}}}|<div class="me-2">[[File:{{{cape|}}}.webp|90px|alt={{{cape|}}}|link=]]</div><div><small class="mb-1">Cape</small><div class="mb-1" style="font-weight: 500; color: #fff;">{{{cape|}}}</div><div class="d-flex">{{#arraymap:{{{cape skills|}}}|,|@@@|{{Skill no text|@@@}}|}}</div></div>|<div>Missing "cape" property.</div>}}</div> | |||
<div class="gear-entry d-flex align-items-center">{{#if: {{{armor|}}}|<div class="me-2">[[File:{{{armor|}}}.webp|90px|alt={{{armor|}}}|link=]]</div><div><small class="mb-1">Armor</small><div class="mb-1" style="font-weight: 500; color: #fff;">{{{armor|}}}</div><div class="d-flex">{{#arraymap:{{{armor skills|}}}|,|@@@|{{Skill no text|@@@}}|}}</div></div>|<div>Missing "armor" property.</div>}}</div> | <div class="gear-entry d-flex align-items-center">{{#if: {{{armor|}}}|<div class="me-2">[[File:{{{armor|}}}.webp|90px|alt={{{armor|}}}|link=]]</div><div><small class="mb-1">Armor</small><div class="mb-1" style="font-weight: 500; color: #fff;">{{{armor|}}}</div><div class="d-flex">{{#arraymap:{{{armor skills|}}}|,|@@@|{{Skill no text|@@@}}|}}</div></div>|<div>Missing "armor" property.</div>}}</div> | ||
Line 13: | Line 15: | ||
<div class="gear-entry d-flex align-items-center">{{#if: {{{food|}}}|<div class="me-2">[[File:{{{food|}}}.webp|90px|alt={{{food|}}}|link=]]</div><div><small class="mb-1">Food</small><div class="mb-1" style="font-weight: 500; color: #fff;">{{{food|}}}</div></div>|<div>Missing "food" property.</div>}}</div> | <div class="gear-entry d-flex align-items-center">{{#if: {{{food|}}}|<div class="me-2">[[File:{{{food|}}}.webp|90px|alt={{{food|}}}|link=]]</div><div><small class="mb-1">Food</small><div class="mb-1" style="font-weight: 500; color: #fff;">{{{food|}}}</div></div>|<div>Missing "food" property.</div>}}</div> | ||
</div>{{#if: {{{main hand weapon|}}}|{{#set:Has main hand weapon={{ucfirst:{{{main hand weapon}}}}}}}}}{{#if: {{{main hand weapon skills|}}}|{{#arraymap:{{{main hand weapon skills}}}|,|@@@|{{#set:Has main weapon skills=@@@}}|}}}}{{#if: {{{head skills|}}}|{{#arraymap:{{{head skills}}}|,|@@@|{{#set:Has head item skills=@@@}}|}}}}{{#if: {{{armor skills|}}}|{{#arraymap:{{{armor skills}}}|,|@@@|{{#set:Has armor item skills=@@@}}|}}}}{{#if: {{{shoes skills|}}}|{{#arraymap:{{{shoes skills}}}|,|@@@|{{#set:Has shoes item skills=@@@}}|}}}}</includeonly> | </div>{{#if: {{{main hand weapon|}}}|{{#set:Has main hand weapon={{ucfirst:{{{main hand weapon}}}}}}}}}{{#if: {{{main hand weapon skills|}}}|{{#arraymap:{{{main hand weapon skills}}}|,|@@@|{{#set:Has main weapon skills=@@@}}|}}}}{{#if: {{{cape|}}}|{{#set:Has cape item={{ucfirst:{{{cape}}}}}}}}}{{#if: {{{cape skills|}}}|{{#arraymap:{{{cape skills}}}|,|@@@|{{#set:Has cape item skills=@@@}}|}}}}{{#if: {{{head|}}}|{{#set:Has head item={{ucfirst:{{{head}}}}}}}}}{{#if: {{{head skills|}}}|{{#arraymap:{{{head skills}}}|,|@@@|{{#set:Has head item skills=@@@}}|}}}}{{#if: {{{armor|}}}|{{#set:Has armor item={{ucfirst:{{{armor}}}}}}}}}{{#if: {{{armor skills|}}}|{{#arraymap:{{{armor skills}}}|,|@@@|{{#set:Has armor item skills=@@@}}|}}}}{{#if: {{{shoes|}}}|{{#set:Has shoes item={{ucfirst:{{{shoes}}}}}}}}}{{#if: {{{shoes skills|}}}|{{#arraymap:{{{shoes skills}}}|,|@@@|{{#set:Has shoes item skills=@@@}}|}}}}</includeonly> |