Template:Infobox NPC: Difference between revisions
From OpenSpell Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| 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 | {{Infobox NPC | ||
| name | | name = Knight | ||
| image | | image = [[File:Knight.png|250px]] | ||
| caption | | caption = A Knight patrolling the overworld | ||
| description | | description = A noble warrior | ||
| combat_level = | | combat_level = 60 | ||
| hitpoints | | hitpoints = 65 | ||
| accuracy | | accuracy = 40 | ||
| strength | | strength = 45 | ||
| defense | | defense = 40 | ||
| magic | | magic = 1 | ||
| range | | range = 1 | ||
| speed | | speed = 1 | ||
| aggro | | aggro = no | ||
| respawn | | respawn = 75 | ||
| pickpocketable = | | pickpocketable = yes | ||
| can_shop | | can_shop = no | ||
}} | }} | ||
</pre> | </pre> | ||
See also: [[Template:NPC/preload]] for the full NPC page skeleton. | |||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
</noinclude> | </noinclude> | ||
| Line 33: | Line 72: | ||
|- | |- | ||
| colspan="2" style="text-align:center; padding:10px; background:#1a1a1a;" | | | colspan="2" style="text-align:center; padding:10px; background:#1a1a1a;" | | ||
{{{image| | {{{image|}}} | ||
{{{caption|}}} | {{{caption|}}} | ||
| Line 51: | Line 90: | ||
|- | |- | ||
! style="padding:4px 8px; background:#f8f9fa;" | Combat level | ! style="padding:4px 8px; background:#f8f9fa;" | Combat level | ||
| style="padding:4px 8px;" | {{{combat_level|}}} | | style="padding:4px 8px;" | {{{combat_level|—}}} | ||
|- | |- | ||
! style="padding:4px 8px; background:#f8f9fa;" | Hitpoints | ! style="padding:4px 8px; background:#f8f9fa;" | Hitpoints | ||
| style="padding:4px 8px;" | {{{hitpoints|}}} | | style="padding:4px 8px;" | {{{hitpoints|—}}} | ||
|- | |- | ||
! style="padding:4px 8px; background:#f8f9fa;" | Accuracy | ! style="padding:4px 8px; background:#f8f9fa;" | Accuracy | ||
| style="padding:4px 8px;" | {{{accuracy|}}} | | style="padding:4px 8px;" | {{{accuracy|—}}} | ||
|- | |- | ||
! style="padding:4px 8px; background:#f8f9fa;" | Strength | ! style="padding:4px 8px; background:#f8f9fa;" | Strength | ||
| style="padding:4px 8px;" | {{{strength|}}} | | style="padding:4px 8px;" | {{{strength|—}}} | ||
|- | |- | ||
! style="padding:4px 8px; background:#f8f9fa;" | Defense | ! style="padding:4px 8px; background:#f8f9fa;" | Defense | ||
| style="padding:4px 8px;" | {{{defense|}}} | | style="padding:4px 8px;" | {{{defense|—}}} | ||
|- | |- | ||
! style="padding:4px 8px; background:#f8f9fa;" | Magic | ! style="padding:4px 8px; background:#f8f9fa;" | Magic | ||
| style="padding:4px 8px;" | {{{magic|}}} | | style="padding:4px 8px;" | {{{magic|—}}} | ||
|- | |- | ||
! style="padding:4px 8px; background:#f8f9fa;" | Ranged | ! style="padding:4px 8px; background:#f8f9fa;" | Ranged | ||
| style="padding:4px 8px;" | {{{range|}}} | | style="padding:4px 8px;" | {{{range|—}}} | ||
|- | |- | ||
! style="padding:4px 8px; background:#f8f9fa;" | Speed | ! style="padding:4px 8px; background:#f8f9fa;" | Speed | ||
| style="padding:4px 8px;" | {{{speed|}}} | | style="padding:4px 8px;" | {{{speed|—}}} | ||
|- | |- | ||
! style="padding:4px 8px; background:#f8f9fa;" | Aggressive | ! style="padding:4px 8px; background:#f8f9fa;" | Aggressive | ||
| style="padding:4px 8px;" | {{{aggro|}}} | | style="padding:4px 8px;" | {{{aggro|—}}} | ||
|- | |- | ||
! style="padding:4px 8px; background:#f8f9fa;" | Respawn (ticks) | ! style="padding:4px 8px; background:#f8f9fa;" | Respawn (ticks) | ||
| style="padding:4px 8px;" | {{{respawn|}}} | | 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.