Template:Build equipment: Difference between revisions
No edit summary |
|||
Line 1: | Line 1: | ||
<includeonly><div class="d-flex flex-wrap"> | <includeonly><div class="d-flex flex-wrap"> | ||
<div class="gear-entry d-flex align-items-center">{{#if: {{{main hand weapon|}}}|<div class="me-2">[[File:{{{main hand weapon|}}}.webp|90px|alt={{{main hand weapon|}}}|link=]]</div><div><small class="mb-1">Main Hand</small><div class="mb-1" style="font-weight: 500; color: #fff;">{{{main hand weapon|}}}</div><div class="d-flex">{{#arraymap:{{{main hand weapon skills|}}}|,|@@@|{{Skill no text|@@@}}|}}</div></div>|<div>Missing "main hand weapon" property.</div>}}</div> | <div class="gear-entry d-flex align-items-center">{{#if: {{{main hand weapon|}}}|<div class="me-2">[[File:{{{main hand weapon|}}}.webp|90px|alt={{{main hand weapon|}}}|link=]]</div><div><small class="mb-1">Main Hand</small><div class="mb-1" style="font-weight: 500; color: #fff;">{{{main hand weapon|}}}</div><div class="d-flex">{{#arraymap:{{{main hand weapon skills|}}}|,|@@@|{{Skill no text|@@@}}|}}</div></div>|<div>Missing "main hand weapon" 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: {{{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: {{{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> | ||
<div class="gear-entry d-flex align-items-center">{{#if: {{{shoes|}}}|<div class="me-2">[[File:{{{shoes|}}}.webp|90px|alt={{{shoes|}}}|link=]]</div><div><small class="mb-1">Shoes</small><div class="mb-1" style="font-weight: 500; color: #fff;">{{{shoes|}}}</div><div class="d-flex">{{#arraymap:{{{shoes skills|}}}|,|@@@|{{Skill no text|@@@}}|}}</div></div>|<div>Missing "shoes" property.</div>}}</div> | <div class="gear-entry d-flex align-items-center">{{#if: {{{shoes|}}}|<div class="me-2">[[File:{{{shoes|}}}.webp|90px|alt={{{shoes|}}}|link=]]</div><div><small class="mb-1">Shoes</small><div class="mb-1" style="font-weight: 500; color: #fff;">{{{shoes|}}}</div><div class="d-flex">{{#arraymap:{{{shoes skills|}}}|,|@@@|{{Skill no text|@@@}}|}}</div></div>|<div>Missing "shoes" property.</div>}}</div> | ||
<div class="gear-entry d-flex align-items-center">{{#if: {{{potion|}}}|<div class="me-2">[[File:{{{potion|}}}.webp|90px|alt={{{potion|}}}|link=]]</div><div><small class="mb-1">Potion</small><div class="mb-1" style="font-weight: 500; color: #fff;">{{{potion|}}}</div></div>|<div>Missing "potion" property.</div>}}</div> | <div class="gear-entry d-flex align-items-center">{{#if: {{{potion|}}}|<div class="me-2">[[File:{{{potion|}}}.webp|90px|alt={{{potion|}}}|link=]]</div><div><small class="mb-1">Potion</small><div class="mb-1" style="font-weight: 500; color: #fff;">{{{potion|}}}</div></div>|<div>Missing "potion" 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=@@@}}|}}}} | <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> | ||
{{#if: {{{head skills|}}}|{{#arraymap:{{{head skills}}}|,|@@@|{{#set:Has head item skills=@@@}}|}}}} | |||
{{#if: {{{armor skills|}}}|{{#arraymap:{{{armor skills}}}|,|@@@|{{#set:Has armor item skills=@@@}}|}}}} | </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> | ||
{{#if: {{{shoes skills|}}}|{{#arraymap:{{{shoes skills}}}|,|@@@|{{#set:Has shoes item skills=@@@}}|}}}}</includeonly> |