Difference between revisions of "Template:NPC infobox"

From Isleward Wiki
Jump to navigation Jump to search
Line 11: Line 11:
 
-->{{#set: Has faction = {{ucfirst:{{{faction}}}}} }}</dd>}}<!--
 
-->{{#set: Has faction = {{ucfirst:{{{faction}}}}} }}</dd>}}<!--
 
-->{{#if: {{{aggro|}}}|<dt>Aggression</dt><dd>{{ucfirst:{{{aggro}}}}}</dd>}}<!--
 
-->{{#if: {{{aggro|}}}|<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><!--

Revision as of 03:01, 1 November 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