Difference between revisions of "Template:NPC infobox"

From Isleward Wiki
Jump to navigation Jump to search
(Created page with "<includeonly><!-- Page top level heading -->= {{PAGENAME}} = <div class="infobox"><!-- --><div class="heading">[[Has canonical name::{{{name|{{PAGENAME}}}}}]]</div><!-- --><di...")
 
Line 8: Line 8:
 
-->{{#if: {{{rank|}}}|<dt>Rank</dt><dd>{{ucfirst:{{{rank}}}}}<!--
 
-->{{#if: {{{rank|}}}|<dt>Rank</dt><dd>{{ucfirst:{{{rank}}}}}<!--
 
-->{{#set: Has NPC rank = {{ucfirst:{{{rank}}}}} }}</dd>}}<!--
 
-->{{#set: Has NPC rank = {{ucfirst:{{{rank}}}}} }}</dd>}}<!--
-->{{#if: {{{aggro|}}}|<dt>Aggression</dt><dd>{{ucfirst:{{{level}}}}}</dd>}}<!--
+
-->{{#if: {{{aggro|}}}|<dt>Aggression</dt><dd>{{ucfirst:{{{aggro}}}}}</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>}}<!--

Revision as of 00:59, 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