Difference between revisions of "Template:NPC infobox"
Jump to navigation
Jump to search
(hide default aggro) |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
--><div class="wrapper"><dl><!-- | --><div class="wrapper"><dl><!-- | ||
-->{{#if: {{{level|}}}|<dt>Level</dt><dd>[[Has level::{{{level}}}]]</dd>}}<!-- | -->{{#if: {{{level|}}}|<dt>Level</dt><dd>[[Has level::{{{level}}}]]</dd>}}<!-- | ||
− | -->{{#if: {{{rank|}}}|<dt>Rank</dt><dd>{{ucfirst:{{{rank}}}}}<!-- | + | -->{{#if: {{{rank|}}}|{{#ifeq: {{lc:{{{rank}}}}}|normal||<dt>Rank</dt><dd>{{ucfirst:{{{rank}}}}}}}<!-- |
-->{{#set: Has NPC rank = {{ucfirst:{{{rank}}}}} }}</dd>}}<!-- | -->{{#set: Has NPC rank = {{ucfirst:{{{rank}}}}} }}</dd>}}<!-- | ||
− | |||
-->{{#if: {{{faction|}}}|<dt>Faction</dt><dd>{{ucfirst:{{{faction}}}}}<!-- | -->{{#if: {{{faction|}}}|<dt>Faction</dt><dd>{{ucfirst:{{{faction}}}}}<!-- | ||
-->{{#set: Has faction = {{ucfirst:{{{faction}}}}} }}</dd>}}<!-- | -->{{#set: Has faction = {{ucfirst:{{{faction}}}}} }}</dd>}}<!-- | ||
+ | -->{{#if: {{{aggro|}}}|{{#ifeq: {{lc:{{{aggro}}}}}|default||<dt>Aggression</dt><dd>{{ucfirst:{{{aggro}}}}}</dd>}}}}<!-- | ||
+ | -->{{#if: {{{variantof|}}}|<dt>Variant of</dt><dd>{{#ask: [[Has canonical name::{{{variantof}}}]]}}<!-- | ||
+ | -->{{#set: Is NPC variant of = {{{variantof}}}}}</dd>}}<!-- | ||
--></dl></div></div><!-- | --></dl></div></div><!-- | ||
Line 47: | Line 49: | ||
| aggro = | | aggro = | ||
| faction = | | faction = | ||
+ | | variantof = | ||
}}</pre> | }}</pre> | ||
Line 63: | Line 66: | ||
;faction | ;faction | ||
: NPC faction | : NPC faction | ||
+ | ;variantof | ||
+ | : If applicable, the page of the normal mob that this rare mob is related to | ||
</noinclude> | </noinclude> |
Latest revision as of 23:46, 9 December 2022
Description[edit]
Outlines an NPC or monster page, including the title and infobox. Sets SMW properties.
Usage[edit]
{{NPC infobox | name = | image = | level = | rank = | aggro = | faction = | variantof = }}
Parameters[edit]
All parameters are optional.
- name
- NPC name. Defaults to
{{PAGENAME}}
. - image
- NPC image filename. Defaults to
File:<name>.png
- level
- NPC level
- rank
- NPC rank (normal, rare, boss)
- aggro
- NPC aggression (default, aggressive, friendly)
- faction
- NPC faction
- variantof
- If applicable, the page of the normal mob that this rare mob is related to