Template:ItemTag: Difference between revisions

From MENACE Official Wiki
itemtags can now be hidden
simplified ItemTag. link parameter no longer required (will be set automatically)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifeq:{{{status|}}}| hidden |<span style="display:none"></span>|
<includeonly>
[[{{{link| {{#invoke:StringUtils|toTitleCase|{{{name}}}(Tag)}}  }}}|
{{#ifeq:{{{status|}}}| hidden |<span style="display:none"></span>|
[[{{{link| {{#invoke:StringUtils|toTitleCase|{{{1|{{{name}}}}}}(Tag)}}  }}}|
<span class="item-tag">
<span class="item-tag">
{{{name}}}
{{#invoke:StringUtils|toUpperCase|{{{1|{{{name}}}}}}}}
</span>]]}}</includeonly><noinclude>
</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}}
----
 
or specify a link like this:
 
<pre>
{{ItemTag|name=EXAMPLE NAME|link=Example Name (Tag)}}
</pre>
 
to see this:
 
{{ItemTag|name=EXAMPLE NAME|link=Example Name (Tag)}}


If you want to hide an ItemTag, type this:
If you want to hide an ItemTag, type this:


<pre>
<pre>
{{ItemTag|name=EXAMPLE NAME|status=hidden}}
{{ItemTag|Area of Effect|status=hidden}}
</pre>
</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}}