Difference between revisions of "Template:NPC infobox"

From Isleward Wiki
Jump to navigation Jump to search
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}}}}}<!--

Revision as of 01:11, 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 =
}}

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