Template:Perk: Difference between revisions

From MENACE Official Wiki
mNo edit summary
add links
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 0px 0px 5px;">[[File:{{#invoke:PerksData|getIconByTitle|{{{title}}}}}|80px]]</div>
<div style="float: left; width: 90px; height: 100px; margin: 0px 0px 0px 5px;">[[File:{{#invoke:PerksData|getIconByTitle|{{{title}}}}}|80px|link= {{{title}}} (Perk)]]</div>
<div style="flex: 1;">
<div style="margin 0px;">
<div style="font-weight: bold; font-size: 1.2em; {{#if: {{{case|}}} | {{#ifeq: {{{case}}} | starting_perk | color: #c7aa3f; | }} | }}">{{#invoke:StringUtils|toUpperCase|{{{title}}}}}</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="font-size: 1em; font-style: italic;margin-top: 5px;">{{#invoke:PerksData|getShortDescriptionByTitle|{{{title}}}}}</div></div></div></includeonly><noinclude>
<div style="margin: 5px 0px 0px 0px;">
[[{{{title}}} (Perk)|<span style="font-size: 1em; font-style: italic; color: #ffffff;">{{#invoke:PerksData|getShortDescriptionByTitle|{{{title}}}}}</span>]]</div></div></includeonly><noinclude>
== Usage & preview ==
== Usage & preview ==
Type in this:
Type in this:

Revision as of 10:07, 10 October 2025

Usage & preview

Type in this:

{{Perk
|title= High Value Target
}}

to see this:

[[File:|80px|link= High Value Target (Perk)]]

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:|80px|link= High Value Target (Perk)]]


Click here to refresh the preview above