Template:ItemTag: Difference between revisions
From MENACE Official Wiki
ItemTags without a link attribute will now automatically have their corresponding page link |
simplified ItemTag. link parameter no longer required (will be set automatically) |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <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| | {{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: | |||
<pre> | <pre> | ||
{{ItemTag| | {{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) |
|
Type in this:
{{ItemTag|Area of Effect}}
to see this:
If you want to hide an ItemTag, type this:
{{ItemTag|Area of Effect|status=hidden}}


