Template:Perk: Difference between revisions
From MENACE Official Wiki
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<includeonly><div style="display: inline-block; width: 30%; margin: 10px; border: 1px solid #ccc; border-radius: 5px; padding: 5px 5px 10px 5px; text-align: left;"> | <includeonly><div style="display: inline-block; width: 30%; margin: 10px; border: 1px solid #ccc; border-radius: 5px; padding: 5px 5px 10px 5px; text-align: left;"> | ||
<div style="float: left; width: 90px; height: 100px; margin: 0px 5px 0px 5px;">[[File:{{#invoke:PerksData|getIconByTitle|{{{title}}}}}|90px|link= {{{title}}} (Perk)]]</div> | <div style="float: left; width: 90px; height: 100px; margin: 0px 5px 0px 5px;">[[File:{{#invoke:PerksData|getIconByTitle|{{{title}}}}}|90px|link= {{{title}}} (Perk)]]</div> | ||
<div style="margin: 0px"> | <div style="margin: 0px; display: inline-block"> | ||
[[{{{title}}} (Perk)|<span style="font-weight: bold; font-size: 1.2em; color: #ffffff; {{#if: {{{case|}}} | {{#ifeq: {{{case}}} | starting_perk | color: #c7aa3f; | }} | }}">{{#invoke:StringUtils|toUpperCase|{{{title}}}}}</span>]]</div> | [[{{{title}}} (Perk)|<span style="font-weight: bold; font-size: 1.2em; color: #ffffff; {{#if: {{{case|}}} | {{#ifeq: {{{case}}} | starting_perk | color: #c7aa3f; | }} | }}">{{#invoke:StringUtils|toUpperCase|{{{title}}}}}</span>]]</div> | ||
<div style="margin: 5px"> | <div style="margin: 5px"> | ||
Revision as of 14:04, 30 October 2025
Usage & preview
Type in this:
{{Perk
|title= High Value Target
}}
to see this:
Or add the case = starting_perk to change the color of the title:
{{Perk
|title=High Value Target Icon
|case=starting_perk
}}
to see this:


