Template:Equipment page: Difference between revisions

Jump to navigation Jump to search
Added support for passives and controller icons
No edit summary
(Added support for passives and controller icons)
Line 2: Line 2:
| yes =
| yes =
| #default = {{PageSeo
| #default = {{PageSeo
   | image = {{{image}}}
   | image = {{#if:{{{controller icon|}}}|{{{controller icon}}}|{{#if:{{{image|}}}|{{{image}}}|{{{icon|}}}}}}}
   | description = {{{seo description|{{EquipmentPage/Description
   | description = {{{seo description|{{EquipmentPage/Description
     | type = {{{type}}}
     | type = {{{type}}}
Line 14: Line 14:
}}">
}}">


{{#if: {{{image|}}} | [[File:{{{image}}}|frameless|right||alt={{PAGENAME}} image]] | {{Main only|[[Category:Equipment pages without images]]}}}}{{#if:{{{icon|}}} ||{{Main only|[[Category:Item pages without icons]]}} }}
{{#if: {{{image|}}} | [[File:{{{image}}}|frameless|right||alt={{PAGENAME}} image]] | {{Main only|[[Category:Equipment pages without images]]}}}}{{#if:{{{icon|}}} ||{{Main only|[[Category:Item pages without icons]]}} }}{{#if:{{{controller icon|}}} ||{{Main only|[[Category:Item pages without controller icons]]}} }}


{{{description}}} <!-- No support for auto-generated equipment descriptions for now. -->
{{{description}}} <!-- No support for auto-generated equipment descriptions for now. -->
Line 39: Line 39:
<li> {{Price | {{{price}}} | {{{price honour|}}} }} </li>
<li> {{Price | {{{price}}} | {{{price honour|}}} }} </li>
{{#if:{{{uid|}}}{{{uuid|}}}{{{filename|}}}|<li>{{SmallIcon|Ico stats.png}}{{#if:{{{uid|}}}|{{Uid|{{{uid}}}}} }} {{#if:{{{uuid|}}}|{{Uuid|{{{uuid}}}}} }} {{#if: {{{filename|}}}|{{filename|{{{filename}}}}} }}</li>}}
{{#if:{{{uid|}}}{{{uuid|}}}{{{filename|}}}|<li>{{SmallIcon|Ico stats.png}}{{#if:{{{uid|}}}|{{Uid|{{{uid}}}}} }} {{#if:{{{uuid|}}}|{{Uuid|{{{uuid}}}}} }} {{#if: {{{filename|}}}|{{filename|{{{filename}}}}} }}</li>}}
</ul> {{#if: {{{special|}}}{{{stealth disadvantage|}}} | {{blank}}
</ul>
 
{{#if: {{{passives|}}}{{{special|}}}{{{stealth disadvantage|}}} | {{blank}}
{{h3|Special}}
{{h3|Special}}


The wearer of this item gains:
The wearer of this item gains:
{{{special}}}
{{#if: {{{passives|}}} | {{#invoke: ParseList | main | {{{passives}}} | useTemplate = Passive | type = htmlList }} |}}
{{{special|}}}
{{#if: {{{stealth disadvantage|}}} | * {{Disadvantage}} on [[Stealth]] checks. }}
{{#if: {{{stealth disadvantage|}}} | * {{Disadvantage}} on [[Stealth]] checks. }}
}}{{clear}}</div> {{#if: {{{condition|}}} |
}}{{clear}}</div> {{#if: {{{condition|}}} |
Line 91: Line 92:
|icon={{{icon|}}}
|icon={{{icon|}}}
|uid={{{uid|}}}
|uid={{{uid|}}}
|image={{{image|}}}  
|image={{{controller icon|}}}
|rarity={{{rarity|common}}}
|rarity={{{rarity|common}}}
}}{{#switch: {{{this is an example|}}}
}}{{#switch: {{{this is an example|}}}

Navigation menu