Template:ItemTag: Difference between revisions

From MENACE Official Wiki
m add more accurate colors
simplified ItemTag. link parameter no longer required (will be set automatically)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
[[{{{link|Tags}}}|
{{#ifeq:{{{status|}}}| hidden |<span style="display:none"></span>|
<span style="display: inline-block;
[[{{{link| {{#invoke:StringUtils|toTitleCase|{{{1|{{{name}}}}}}(Tag)}}  }}}|
            margin: 2px 0px;
<span class="item-tag">
            padding: 0px 12px;
{{#invoke:StringUtils|toUpperCase|{{{1|{{{name}}}}}}}}
            border: 3px solid #404A31;
</span>]]}}</includeonly><noinclude>
            background-color: #20211D;
            font-family: Noto sans, sans-serif;
            font-size: 16px;
            color: #6E7B62;
            line-height: 1.8; ">
{{{name}}}
</span>]]</includeonly><noinclude>
== Usage & preview ==
== Usage & preview ==
{| class="wikitable"
! Parameter !! Description
|-
| 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>
|-
| ''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
|}


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}}
----


{{ItemTag|name=EXAMPLE NAME}}
If you want to hide an ItemTag, type this:
 
or specify a link like this:


<pre>
<pre>
{{ItemTag|name=EXAMPLE NAME|link=Example Name (Tag)}}
{{ItemTag|Area of Effect|status=hidden}}
</pre>
</pre>
to see this:
{{ItemTag|name=EXAMPLE NAME|link=Example Name (Tag)}}
<div style="font-style: italic; font-size: 1em; color: #bb1166"> For now, the style of the ItemTag is defined in this template for convenience, but it will later be added to Common.css. </div>

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}}