Template:Infobox Object: Difference between revisions
Add documented Sarim infobox library; optional verified fields |
Organize infobox templates and documentation for editors |
||
| Line 1: | Line 1: | ||
<includeonly><templatestyles src="Infobox/styles.css" /><table class="infobox sarim-infobox sarim-infobox-object {{#switch:{{{alignment|right}}}|left=sarim-infobox-left|none=sarim-infobox-none|#default=sarim-infobox-right}}"><caption class="sarim-infobox-heading"><span class="sarim-infobox-kind">Object</span><span class="sarim-infobox-name">{{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}</span>{{#if:{{{variant|}}}|<span class="sarim-infobox-variant">{{{variant|}}}</span>}}</caption>{{#if:{{{context|}}}|<tr><td colspan="2" class="sarim-infobox-context">{{{context|}}}</td></tr>}}{{#if:{{{image|}}}|<tr><td colspan="2" class="sarim-infobox-image">[[File:{{{image|}}}|220x220px|frameless|alt={{#if:{{{image_alt|}}}|{{{image_alt|}}}|{{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}}}]]{{#if:{{{caption|}}}|<div class="sarim-infobox-caption">{{{caption|}}}</div>}}</td></tr>}}{{#if:{{{object_type|}}}{{{location|}}}{{{examine|}}}{{{options|}}}{{{size|}}}|<tr><th colspan="2" class="sarim-infobox-section" scope="colgroup">Details</th></tr>{{#if:{{{object_type|}}}|<tr><th scope="row">Object type</th><td>{{{object_type|}}}</td></tr>}}{{#if:{{{location|}}}|<tr><th scope="row">Location</th><td>{{{location|}}}</td></tr>}}{{#if:{{{examine|}}}|<tr><th scope="row">Examine</th><td>{{{examine|}}}</td></tr>}}{{#if:{{{options|}}}|<tr><th scope="row">Options</th><td>{{{options|}}}</td></tr>}}{{#if:{{{size|}}}|<tr><th scope="row">Size</th><td>{{{size|}}}</td></tr>}}}}{{#if:{{{requirements|}}}{{{cost|}}}{{{skills|}}}{{{experience|}}}{{{outputs|}}}{{{respawn_ticks|}}}{{{transforms|}}}{{{availability|}}}|<tr><th colspan="2" class="sarim-infobox-section" scope="colgroup">Interaction</th></tr>{{#if:{{{requirements|}}}|<tr><th scope="row">Requirements</th><td>{{{requirements|}}}</td></tr>}}{{#if:{{{cost|}}}|<tr><th scope="row">Cost</th><td>{{{cost|}}}</td></tr>}}{{#if:{{{skills|}}}|<tr><th scope="row">Skills involved</th><td>{{{skills|}}}</td></tr>}}{{#if:{{{experience|}}}|<tr><th scope="row">Experience</th><td>{{{experience|}}}</td></tr>}}{{#if:{{{outputs|}}}|<tr><th scope="row">Outputs</th><td>{{{outputs|}}}</td></tr>}}{{#if:{{{respawn_ticks|}}}|<tr><th scope="row">Respawn interval <span class="sarim-infobox-unit">(ticks)</span></th><td>{{{respawn_ticks|}}}</td></tr>}}{{#if:{{{transforms|}}}|<tr><th scope="row">Transforms</th><td>{{{transforms|}}}</td></tr>}}{{#if:{{{availability|}}}|<tr><th scope="row">Availability</th><td>{{{availability|}}}</td></tr>}}}}{{#if:{{{object_id|}}}|<tr><th colspan="2" class="sarim-infobox-section" scope="colgroup">Advanced data</th></tr>{{#if:{{{object_id|}}}|<tr><th scope="row">Object ID</th><td>{{{object_id|}}}</td></tr>}}}}{{#if:{{{notes|}}}|<tr><td colspan="2" class="sarim-infobox-notes">{{{notes|}}}</td></tr>}}</table></includeonly><noinclude> | <includeonly><templatestyles src="Infobox/styles.css" /><table class="infobox sarim-infobox sarim-infobox-object {{#switch:{{{alignment|right}}}|left=sarim-infobox-left|none=sarim-infobox-none|#default=sarim-infobox-right}}"><caption class="sarim-infobox-heading"><span class="sarim-infobox-kind">Object</span><span class="sarim-infobox-name">{{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}</span>{{#if:{{{variant|}}}|<span class="sarim-infobox-variant">{{{variant|}}}</span>}}</caption>{{#if:{{{context|}}}|<tr><td colspan="2" class="sarim-infobox-context">{{{context|}}}</td></tr>}}{{#if:{{{image|}}}|<tr><td colspan="2" class="sarim-infobox-image">[[File:{{{image|}}}|220x220px|frameless|alt={{#if:{{{image_alt|}}}|{{{image_alt|}}}|{{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}}}]]{{#if:{{{caption|}}}|<div class="sarim-infobox-caption">{{{caption|}}}</div>}}</td></tr>}}{{#if:{{{object_type|}}}{{{location|}}}{{{examine|}}}{{{options|}}}{{{size|}}}|<tr><th colspan="2" class="sarim-infobox-section" scope="colgroup">Details</th></tr>{{#if:{{{object_type|}}}|<tr><th scope="row">Object type</th><td>{{{object_type|}}}</td></tr>}}{{#if:{{{location|}}}|<tr><th scope="row">Location</th><td>{{{location|}}}</td></tr>}}{{#if:{{{examine|}}}|<tr><th scope="row">Examine</th><td>{{{examine|}}}</td></tr>}}{{#if:{{{options|}}}|<tr><th scope="row">Options</th><td>{{{options|}}}</td></tr>}}{{#if:{{{size|}}}|<tr><th scope="row">Size</th><td>{{{size|}}}</td></tr>}}}}{{#if:{{{requirements|}}}{{{cost|}}}{{{skills|}}}{{{experience|}}}{{{outputs|}}}{{{respawn_ticks|}}}{{{transforms|}}}{{{availability|}}}|<tr><th colspan="2" class="sarim-infobox-section" scope="colgroup">Interaction</th></tr>{{#if:{{{requirements|}}}|<tr><th scope="row">Requirements</th><td>{{{requirements|}}}</td></tr>}}{{#if:{{{cost|}}}|<tr><th scope="row">Cost</th><td>{{{cost|}}}</td></tr>}}{{#if:{{{skills|}}}|<tr><th scope="row">Skills involved</th><td>{{{skills|}}}</td></tr>}}{{#if:{{{experience|}}}|<tr><th scope="row">Experience</th><td>{{{experience|}}}</td></tr>}}{{#if:{{{outputs|}}}|<tr><th scope="row">Outputs</th><td>{{{outputs|}}}</td></tr>}}{{#if:{{{respawn_ticks|}}}|<tr><th scope="row">Respawn interval <span class="sarim-infobox-unit">(ticks)</span></th><td>{{{respawn_ticks|}}}</td></tr>}}{{#if:{{{transforms|}}}|<tr><th scope="row">Transforms</th><td>{{{transforms|}}}</td></tr>}}{{#if:{{{availability|}}}|<tr><th scope="row">Availability</th><td>{{{availability|}}}</td></tr>}}}}{{#if:{{{object_id|}}}|<tr><th colspan="2" class="sarim-infobox-section" scope="colgroup">Advanced data</th></tr>{{#if:{{{object_id|}}}|<tr><th scope="row">Object ID</th><td>{{{object_id|}}}</td></tr>}}}}{{#if:{{{notes|}}}|<tr><td colspan="2" class="sarim-infobox-notes">{{{notes|}}}</td></tr>}}</table></includeonly><noinclude> | ||
{{:Template:Infobox Object/doc}} | {{:Template:Infobox Object/doc}} | ||
[[Category:Infobox templates]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 04:52, 2 October 2026
This template displays Interactable game object identity and implemented action summary.
Usage
Supply only verified fields. Empty rows and empty sections are hidden; zero and No are displayed.
Do not enter zero or No as a substitute for unknown data. Leave unverified parameters empty.
Use one box per variant when values differ; label variant and context explicitly.
{{Infobox Object
|name =
|image =
|image_alt =
|variant =
|context =
|object_type =
|location =
|examine =
|options =
|size =
|requirements =
|cost =
|skills =
|experience =
|outputs =
|respawn_ticks =
|transforms =
|availability =
|object_id =
|notes =
}}
Parameters
| Parameter | Meaning |
|---|---|
name |
Display name. Defaults to the current page title when omitted. |
image |
Existing local File name, without brackets; do not use an external image URL. |
image_alt |
Plain description of the illustration for screen readers. |
caption |
Optional caption explaining the illustration. |
variant |
Phase, charge state, difficulty or other variant represented by this box. |
context |
Scope such as solo, world mode or season; supply only verified conditions. |
notes |
Short qualifying note; longer mechanics belong in the article body. |
alignment |
right (default), left or none; none keeps the box in normal document flow. |
object_type |
Verified object classification. |
location |
Verified placements or spawning contexts. |
examine |
Verified examine text. |
options |
Verified object actions for the described state. |
size |
Verified footprint in game tiles, with dimensions. |
requirements |
Verified interaction levels, unlocks, tools or account conditions. |
cost |
Verified materials, fees or other inputs consumed. |
skills |
Verified skills used by interactions. |
experience |
Verified XP per action and applicable conditions; avoid inferred rates. |
outputs |
Verified items, rewards, travel destinations or other action results. |
respawn_ticks |
Verified replenishment or respawn delay and conditions. Unit: ticks; do not add that unit to a numeric value. |
transforms |
Verified alternate states and the conditions that select them. |
availability |
World, mode, season, spawn or instance restrictions. |
object_id |
Verified numeric object ID or explicitly labelled state ID list. |
Editing notes
Images must already exist on this wiki. Set image to the File name without brackets or an external URL.
Boolean fields accept explicit Yes or No. Tick, XP, weight and percentage units are stated in row labels where applicable.
No values, drop probabilities, alchemy prices or eligibility conditions are calculated by this display template.
Links and short formatted text may be used in values. Keep long lists, drop tables and detailed mechanics in the article body.
See Help:Infoboxes for the template directory and machine-generation workflow.
Interactable game object identity and implemented action summary.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | Display name. Defaults to the current page title when omitted. | String | suggested |
| Image | image | Existing local File name, without brackets; do not use an external image URL. | File | optional |
| Image alternative text | image_alt | Plain description of the illustration for screen readers. | String | optional |
| Image caption | caption | Optional caption explaining the illustration. | String | optional |
| Variant | variant | Phase, charge state, difficulty or other variant represented by this box. | String | optional |
| Context | context | Scope such as solo, world mode or season; supply only verified conditions. | String | optional |
| Notes | notes | Short qualifying note; longer mechanics belong in the article body. | String | optional |
| Alignment | alignment | right (default), left or none; none keeps the box in normal document flow.
| String | optional |
| Object type | object_type | Verified object classification. | String | optional |
| Location | location | Verified placements or spawning contexts. | String | optional |
| Examine | examine | Verified examine text. | String | optional |
| Options | options | Verified object actions for the described state. | String | optional |
| Size | size | Verified footprint in game tiles, with dimensions. | String | optional |
| Requirements | requirements | Verified interaction levels, unlocks, tools or account conditions. | String | optional |
| Cost | cost | Verified materials, fees or other inputs consumed. | String | optional |
| Skills involved | skills | Verified skills used by interactions. | String | optional |
| Experience | experience | Verified XP per action and applicable conditions; avoid inferred rates. | String | optional |
| Outputs | outputs | Verified items, rewards, travel destinations or other action results. | String | optional |
| Respawn interval | respawn_ticks | Verified replenishment or respawn delay and conditions. Unit: ticks; do not add that unit to a numeric value. | String | optional |
| Transforms | transforms | Verified alternate states and the conditions that select them. | String | optional |
| Availability | availability | World, mode, season, spawn or instance restrictions. | String | optional |
| Object ID | object_id | Verified numeric object ID or explicitly labelled state ID list. | String | optional |