Template:Infobox NPC: Difference between revisions
From OpenSpell Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
== | == Infobox NPC == | ||
Use this template at the top of every NPC article. | |||
=== Parameters === | |||
{| class="wikitable" | |||
! Parameter !! Required !! Description | |||
|- | |||
| <code>name</code> || Yes || The NPC's in-game name, exactly as it appears | |||
|- | |||
| <code>image</code> || No || Full image syntax, e.g. <code><nowiki>[[File:Knight.png|250px]]</nowiki></code>. Upload images via [[Special:Upload]]. | |||
|- | |||
| <code>caption</code> || No || Short caption shown below the image | |||
|- | |||
| <code>description</code> || No || The in-game description/examine text | |||
|- | |||
| <code>combat_level</code> || No || Leave empty for non-combat NPCs | |||
|- | |||
| <code>hitpoints</code> || No || | |||
|- | |||
| <code>accuracy</code> || No || | |||
|- | |||
| <code>strength</code> || No || | |||
|- | |||
| <code>defense</code> || No || | |||
|- | |||
| <code>magic</code> || No || | |||
|- | |||
| <code>range</code> || No || | |||
|- | |||
| <code>speed</code> || No || | |||
|- | |||
| <code>aggro</code> || No || <code>yes</code> or <code>no</code> | |||
|- | |||
| <code>respawn</code> || No || Respawn time in game ticks | |||
|- | |||
| <code>pickpocketable</code> || No || <code>yes</code> or <code>no</code> | |||
|- | |||
| <code>can_shop</code> || No || <code>yes</code> or <code>no</code> | |||
|} | |||
=== Example === | |||
<pre> | <pre> | ||
{{ | {{Infobox NPC | ||
| name = Knight | |||
| image = [[File:Knight.png|250px]] | |||
| caption = A Knight patrolling the overworld | |||
| description = A noble warrior | |||
| combat_level = 60 | |||
| hitpoints = 65 | |||
| accuracy = 40 | |||
| strength = 45 | |||
| defense = 40 | |||
| magic = 1 | |||
| range = 1 | |||
| speed = 1 | |||
| aggro = no | |||
| respawn = 75 | |||
| pickpocketable = yes | |||
| can_shop = no | |||
}} | |||
</pre> | </pre> | ||
See also: [[Template:NPC/preload]] for the full NPC page skeleton. | |||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
</noinclude><includeonly> | </noinclude> | ||
<includeonly> | |||
{| class="wikitable" style="float:right; clear:right; margin:0 0 1em 1.5em; text-align:left; width:300px; font-size:13px; border:1px solid #a2a9b1;" | |||
|- | |||
! colspan="2" style="background:#2c2c2c; color:#f0e6c8; font-size:1.15em; padding:8px 12px; text-align:center; border-bottom:2px solid #c8a96e;" | {{{name|Unknown NPC}}} | |||
|- | |||
| colspan="2" style="text-align:center; padding:10px; background:#1a1a1a;" | | |||
{{{image|}}} | |||
{{{caption|}}} | |||
|- | |||
! colspan="2" style="background:#3a3a3a; color:#c8a96e; text-align:center; padding:4px;" | General | |||
|- | |||
! style="width:45%; padding:4px 8px; background:#f8f9fa;" | Description | |||
| style="padding:4px 8px;" | ''{{{description|}}}'' | |||
|- | |||
! style="padding:4px 8px; background:#f8f9fa;" | Pickpocketable | |||
| style="padding:4px 8px;" | {{{pickpocketable|}}} | |||
|- | |||
! style="padding:4px 8px; background:#f8f9fa;" | Shop | |||
| style="padding:4px 8px;" | {{{can_shop|}}} | |||
|- | |||
! colspan="2" style="background:#3a3a3a; color:#c8a96e; text-align:center; padding:4px;" | Combat stats | |||
|- | |||
! style="padding:4px 8px; background:#f8f9fa;" | Combat level | |||
| style="padding:4px 8px;" | {{{combat_level|—}}} | |||
|- | |||
! style="padding:4px 8px; background:#f8f9fa;" | Hitpoints | |||
| style="padding:4px 8px;" | {{{hitpoints|—}}} | |||
|- | |||
! style="padding:4px 8px; background:#f8f9fa;" | Accuracy | |||
| style="padding:4px 8px;" | {{{accuracy|—}}} | |||
|- | |||
! style="padding:4px 8px; background:#f8f9fa;" | Strength | |||
| style="padding:4px 8px;" | {{{strength|—}}} | |||
|- | |||
! style="padding:4px 8px; background:#f8f9fa;" | Defense | |||
| style="padding:4px 8px;" | {{{defense|—}}} | |||
|- | |||
! style="padding:4px 8px; background:#f8f9fa;" | Magic | |||
| style="padding:4px 8px;" | {{{magic|—}}} | |||
|- | |||
! style="padding:4px 8px; background:#f8f9fa;" | Ranged | |||
| style="padding:4px 8px;" | {{{range|—}}} | |||
|- | |||
! style="padding:4px 8px; background:#f8f9fa;" | Speed | |||
| style="padding:4px 8px;" | {{{speed|—}}} | |||
|- | |||
! style="padding:4px 8px; background:#f8f9fa;" | Aggressive | |||
| style="padding:4px 8px;" | {{{aggro|—}}} | |||
|- | |||
! style="padding:4px 8px; background:#f8f9fa;" | Respawn (ticks) | |||
| style="padding:4px 8px;" | {{{respawn|—}}} | |||
|} | |||
</includeonly> | </includeonly> | ||
Latest revision as of 09:17, 28 February 2026
Infobox NPC
[edit]Use this template at the top of every NPC article.
Parameters
[edit]| Parameter | Required | Description |
|---|---|---|
name |
Yes | The NPC's in-game name, exactly as it appears |
image |
No | Full image syntax, e.g. [[File:Knight.png|250px]]. Upload images via Special:Upload.
|
caption |
No | Short caption shown below the image |
description |
No | The in-game description/examine text |
combat_level |
No | Leave empty for non-combat NPCs |
hitpoints |
No | |
accuracy |
No | |
strength |
No | |
defense |
No | |
magic |
No | |
range |
No | |
speed |
No | |
aggro |
No | yes or no
|
respawn |
No | Respawn time in game ticks |
pickpocketable |
No | yes or no
|
can_shop |
No | yes or no
|
Example
[edit]{{Infobox NPC
| name = Knight
| image = [[File:Knight.png|250px]]
| caption = A Knight patrolling the overworld
| description = A noble warrior
| combat_level = 60
| hitpoints = 65
| accuracy = 40
| strength = 45
| defense = 40
| magic = 1
| range = 1
| speed = 1
| aggro = no
| respawn = 75
| pickpocketable = yes
| can_shop = no
}}
See also: Template:NPC/preload for the full NPC page skeleton.