Template:NPC infobox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
hide default aggro |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 10: | Line 10: | ||
-->{{#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|}}}|<dt>Aggression</dt><dd>{{ucfirst:{{{aggro}}}}}</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
Outlines an NPC or monster page, including the title and infobox. Sets SMW properties.
Usage
{{NPC infobox
| name =
| image =
| level =
| rank =
| aggro =
| faction =
| variantof =
}}
Parameters
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