Difference between revisions of "Template:NPC infobox"

From Isleward Wiki
Jump to navigation Jump to search
(hide default aggro)
 
(One intermediate revision 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>{{{variantof}}}<!--
+
-->{{#if: {{{variantof|}}}|<dt>Variant of</dt><dd>{{#ask: [[Has canonical name::{{{variantof}}}]]}}<!--
 
-->{{#set: Is NPC variant of = {{{variantof}}}}}</dd>}}<!--
 
-->{{#set: Is NPC variant of = {{{variantof}}}}}</dd>}}<!--
 
--></dl></div></div><!--
 
--></dl></div></div><!--

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