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 10px 0px 0px;">[[File:{{#invoke:PerksData|getIconByTitle|{{{title}}}}}]]</div>
<div style="float: left; width: 90px; height: 100px; margin: 0px 10px 0px 0px;">[[File:{{#invoke:PerksData|getIconByTitle|{{{title}}}}|80px}]]</div>
<div style="flex: 1;">
<div style="flex: 1;">
<div style="font-weight: bold; font-size: 1.2em; {{#if: {{{case|}}} | {{#ifeq: {{{case}}} | starting_perk | color: #c7aa3f; | }} | }}">{{#invoke:StringUtils|toUpperCase|{{{title}}}}}</div>
<div style="font-weight: bold; font-size: 1.2em; {{#if: {{{case|}}} | {{#ifeq: {{{case}}} | starting_perk | color: #c7aa3f; | }} | }}">{{#invoke:StringUtils|toUpperCase|{{{title}}}}}</div>

Revision as of 09:24, 10 October 2025

Usage & preview

Type in this:

{{Perk
|title= High Value Target
}}

to see this:

[[File:{{#invoke:PerksData|getIconByTitle|High Value Target}|80px}]]
HIGH VALUE TARGET

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:

[[File:{{#invoke:PerksData|getIconByTitle|High Value Target}|80px}]]
HIGH VALUE TARGET


Click here to refresh the preview above