Template:Perk: Difference between revisions

From MENACE Official Wiki
mNo edit summary
Khitrir (talk | contribs)
Redlinks
 
(7 intermediate revisions by one other user not shown)
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: flex; border: 2px solid;margin: 10px; width: 30%;min-width: 250px;max-width:350px;">
<div style="float: left; width: 90px; height: 100px; margin: 0px 0px 0px 5px;">[[File:{{#invoke:PerksData|getIconByTitle|{{{title}}}}}|80px]]</div>
<div style="float: left; margin: 0px 5px 0px 5px">[[File:{{#invoke:PerksData|getIconByTitle|{{{title}}}}}|90px|link= {{{title}}} (Perk)]]</div>
<div style="flex: 1;">
[[{{{title}}} (Perk)|<div style="display: grid"><div style="margin: 2px 2px 0px 0px; display: run-in">
<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-size: 1.1em; {{#if: {{{case|}}}|color:#c7aa3f|color: #ffffff;}}">{{#invoke:StringUtils|toUpperCase|{{{title}}}}}</div></div>
<div style="font-size: 1em; font-style: italic;margin-top: 5px;">{{#invoke:PerksData|getShortDescriptionByTitle|{{{title}}}}}</div></div></div></includeonly><noinclude>
<div style="margin: 2px 5px 2px 2px">
<div style="color: #c7aa3f;">{{#invoke:PerksData|getShortDescriptionByTitle|{{{title}}}}}</div></div></div>]]</div></includeonly><noinclude>
== Usage & preview ==
== Usage & preview ==
Type in this:
Type in this:
Line 9: Line 10:
<pre>
<pre>
{{Perk
{{Perk
|title= High Value Target
|title= High Value Targets
}}
}}
</pre>
</pre>
Line 16: Line 17:


{{Perk
{{Perk
|title= High Value Target
|title= High Value Targets
}}
}}


Line 23: Line 24:
<pre>
<pre>
{{Perk
{{Perk
|title=High Value Target Icon
|title=High Value Targets Icon
|case=starting_perk
|case=starting_perk
}}
}}
Line 31: Line 32:


{{Perk
{{Perk
|title=High Value Target
|title=High Value Targets
|case=starting_perk
|case=starting_perk
}}
}}

Latest revision as of 03:33, 19 April 2026

Usage & preview

Type in this:

{{Perk
|title= High Value Targets
}}

to see this:

Or add the case = starting_perk to change the color of the title:

{{Perk
|title=High Value Targets Icon
|case=starting_perk
}}

to see this:


Click here to refresh the preview above