Template:ItemTag: Difference between revisions

From MENACE Official Wiki
add item tag template
 
simplified ItemTag. link parameter no longer required (will be set automatically)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="display: inline-block;
{{#ifeq:{{{status|}}}| hidden |<span style="display:none"></span>|
            padding: 0px 12px;
[[{{{link| {{#invoke:StringUtils|toTitleCase|{{{1|{{{name}}}}}}(Tag)}}  }}}|
            border: 3px solid #45483D;
<span class="item-tag">
            border-radius: 0;
{{#invoke:StringUtils|toUpperCase|{{{1|{{{name}}}}}}}}
            background-color: #20231A;
</span>]]}}</includeonly><noinclude>
            font-family: Verdana;
== Usage & preview ==
            font-size: 16px;
 
            color: #6E7168;
{| class="wikitable"
            /*height: auto;*/
! Parameter !! Description
            line-height: 0; ">
|-
{{{name}}}
| name || Name of the Tag <div style="color: #00aa00; display:inline">[You don't need to write the name in upper case – it will be converted automatically]</div>
</div>
|-
</includeonly>
| ''link (optional)'' || Only use this, if you want to link to a different page. Default link will always be: <code><name of the tag>(Tag)</code>
|-
| ''status (optional)''
|
*hidden → hide the tag so it doesn't display
|}


<noinclude>
== Usage & preview ==
Type in this:
Type in this:
<pre>
<pre>
{{ItemTag|name=EXAMPLE NAME}}
{{ItemTag|Area of Effect}}
</pre>
</pre>


to see this:
to see this:
{{ItemTag|Area of Effect}}
----
If you want to hide an ItemTag, type this:


{{ItemTag|name=EXAMPLE NAME}}
<pre>
{{ItemTag|Area of Effect|status=hidden}}
</pre>

Latest revision as of 10:25, 17 February 2026

Usage & preview

Parameter Description
name Name of the Tag
[You don't need to write the name in upper case – it will be converted automatically]
link (optional) Only use this, if you want to link to a different page. Default link will always be: <name of the tag>(Tag)
status (optional)
  • hidden → hide the tag so it doesn't display

Type in this:

{{ItemTag|Area of Effect}}

to see this:

AREA OF EFFECT


If you want to hide an ItemTag, type this:

{{ItemTag|Area of Effect|status=hidden}}