Template:ItemTag: Difference between revisions

From MENACE Official Wiki
mNo edit summary
simplified ItemTag. link parameter no longer required (will be set automatically)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{{#ifeq:{{{status|}}}| hidden |<span style="display:none"></span>|
{{#ifeq:{{{status|}}}| hidden |<span style="display:none"></span>|
[[{{{link| {{#invoke:StringUtils|toTitleCase|{{{name}}}(Tag)}}  }}}|
[[{{{link| {{#invoke:StringUtils|toTitleCase|{{{1|{{{name}}}}}}(Tag)}}  }}}|
<span class="item-tag">
<span class="item-tag">
{{#invoke:StringUtils|toUpperCase|{{{name}}}}}
{{#invoke:StringUtils|toUpperCase|{{{1|{{{name}}}}}}}}
</span>]]}}</includeonly><noinclude>
</span>]]}}</includeonly><noinclude>
== Usage & preview ==
== Usage & preview ==
Line 12: Line 12:
| 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>
| 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)'' || Link to a internal wiki page of the tag
| ''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)''
| ''status (optional)''
Line 21: Line 21:
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>
{{ItemTag|name=EXAMPLE NAME|status=hidden}}

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