Template:Infobox Location: 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-location {{#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">Location</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:{{{location_type|}}}{{{region|}}}{{{coordinates|}}}{{{plane|}}}{{{access|}}}{{{requirements|}}}{{{entry_cost|}}}|<tr><th colspan="2" class="sarim-infobox-section" scope="colgroup">Details</th></tr>{{#if:{{{location_type|}}}|<tr><th scope="row">Location type</th><td>{{{location_type|}}}</td></tr>}}{{#if:{{{region|}}}|<tr><th scope="row">Region</th><td>{{{region|}}}</td></tr>}}{{#if:{{{coordinates|}}}|<tr><th scope="row">Coordinates</th><td>{{{coordinates|}}}</td></tr>}}{{#if:{{{plane|}}}|<tr><th scope="row">Plane</th><td>{{{plane|}}}</td></tr>}}{{#if:{{{access|}}}|<tr><th scope="row">Getting there</th><td>{{{access|}}}</td></tr>}}{{#if:{{{requirements|}}}|<tr><th scope="row">Requirements</th><td>{{{requirements|}}}</td></tr>}}{{#if:{{{entry_cost|}}}|<tr><th scope="row">Entry cost</th><td>{{{entry_cost|}}}</td></tr>}}}}{{#if:{{{npcs|}}}{{{activities|}}}{{{facilities|}}}{{{combat_rules|}}}{{{death_behavior|}}}{{{availability|}}}|<tr><th colspan="2" class="sarim-infobox-section" scope="colgroup">Contents and rules</th></tr>{{#if:{{{npcs|}}}|<tr><th scope="row">NPCs</th><td>{{{npcs|}}}</td></tr>}}{{#if:{{{activities|}}}|<tr><th scope="row">Activities</th><td>{{{activities|}}}</td></tr>}}{{#if:{{{facilities|}}}|<tr><th scope="row">Facilities</th><td>{{{facilities|}}}</td></tr>}}{{#if:{{{combat_rules|}}}|<tr><th scope="row">Combat rules</th><td>{{{combat_rules|}}}</td></tr>}}{{#if:{{{death_behavior|}}}|<tr><th scope="row">On death</th><td>{{{death_behavior|}}}</td></tr>}}{{#if:{{{availability|}}}|<tr><th scope="row">Availability</th><td>{{{availability|}}}</td></tr>}}}}{{#if:{{{region_id|}}}{{{instance|}}}|<tr><th colspan="2" class="sarim-infobox-section" scope="colgroup">Advanced data</th></tr>{{#if:{{{region_id|}}}|<tr><th scope="row">Region ID</th><td>{{{region_id|}}}</td></tr>}}{{#if:{{{instance|}}}|<tr><th scope="row">Instance</th><td>{{{instance|}}}</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-location {{#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">Location</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:{{{location_type|}}}{{{region|}}}{{{coordinates|}}}{{{plane|}}}{{{access|}}}{{{requirements|}}}{{{entry_cost|}}}|<tr><th colspan="2" class="sarim-infobox-section" scope="colgroup">Details</th></tr>{{#if:{{{location_type|}}}|<tr><th scope="row">Location type</th><td>{{{location_type|}}}</td></tr>}}{{#if:{{{region|}}}|<tr><th scope="row">Region</th><td>{{{region|}}}</td></tr>}}{{#if:{{{coordinates|}}}|<tr><th scope="row">Coordinates</th><td>{{{coordinates|}}}</td></tr>}}{{#if:{{{plane|}}}|<tr><th scope="row">Plane</th><td>{{{plane|}}}</td></tr>}}{{#if:{{{access|}}}|<tr><th scope="row">Getting there</th><td>{{{access|}}}</td></tr>}}{{#if:{{{requirements|}}}|<tr><th scope="row">Requirements</th><td>{{{requirements|}}}</td></tr>}}{{#if:{{{entry_cost|}}}|<tr><th scope="row">Entry cost</th><td>{{{entry_cost|}}}</td></tr>}}}}{{#if:{{{npcs|}}}{{{activities|}}}{{{facilities|}}}{{{combat_rules|}}}{{{death_behavior|}}}{{{availability|}}}|<tr><th colspan="2" class="sarim-infobox-section" scope="colgroup">Contents and rules</th></tr>{{#if:{{{npcs|}}}|<tr><th scope="row">NPCs</th><td>{{{npcs|}}}</td></tr>}}{{#if:{{{activities|}}}|<tr><th scope="row">Activities</th><td>{{{activities|}}}</td></tr>}}{{#if:{{{facilities|}}}|<tr><th scope="row">Facilities</th><td>{{{facilities|}}}</td></tr>}}{{#if:{{{combat_rules|}}}|<tr><th scope="row">Combat rules</th><td>{{{combat_rules|}}}</td></tr>}}{{#if:{{{death_behavior|}}}|<tr><th scope="row">On death</th><td>{{{death_behavior|}}}</td></tr>}}{{#if:{{{availability|}}}|<tr><th scope="row">Availability</th><td>{{{availability|}}}</td></tr>}}}}{{#if:{{{region_id|}}}{{{instance|}}}|<tr><th colspan="2" class="sarim-infobox-section" scope="colgroup">Advanced data</th></tr>{{#if:{{{region_id|}}}|<tr><th scope="row">Region ID</th><td>{{{region_id|}}}</td></tr>}}{{#if:{{{instance|}}}|<tr><th scope="row">Instance</th><td>{{{instance|}}}</td></tr>}}}}{{#if:{{{notes|}}}|<tr><td colspan="2" class="sarim-infobox-notes">{{{notes|}}}</td></tr>}}</table></includeonly><noinclude> | ||
{{:Template:Infobox Location/doc}} | {{:Template:Infobox Location/doc}} | ||
[[Category:Infobox templates]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 04:52, 2 October 2026
This template displays Area, dungeon or destination access and local facilities 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 Location
|name =
|image =
|image_alt =
|variant =
|context =
|location_type =
|region =
|coordinates =
|plane =
|access =
|requirements =
|entry_cost =
|npcs =
|activities =
|facilities =
|combat_rules =
|death_behavior =
|availability =
|region_id =
|instance =
|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. |
location_type |
Verified area classification. |
region |
Verified containing region or area. |
coordinates |
Verified coordinates with coordinate convention and plane. |
plane |
Verified game plane or planes for the described location. |
access |
Reviewed teleport, entrance or travel routes. |
requirements |
Verified entry, unlock, account or mode conditions. |
entry_cost |
Verified entry fees or consumed items. |
npcs |
Reviewed notable NPCs or link to the NPC listing. |
activities |
Reviewed activities and training opportunities. |
facilities |
Verified banks, shops and other usable facilities. |
combat_rules |
Verified PvP, multicombat or other combat rules and boundaries. |
death_behavior |
Verified death, item loss and reclaim rules. |
availability |
World, mode, instance, season or event restrictions. |
region_id |
Verified numeric region ID or explicitly labelled list. |
instance |
Verified instancing behavior and relevant ownership or reset conditions. |
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.
Area, dungeon or destination access and local facilities 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 |
| Location type | location_type | Verified area classification. | String | optional |
| Region | region | Verified containing region or area. | String | optional |
| Coordinates | coordinates | Verified coordinates with coordinate convention and plane. | String | optional |
| Plane | plane | Verified game plane or planes for the described location. | String | optional |
| Getting there | access | Reviewed teleport, entrance or travel routes. | String | optional |
| Requirements | requirements | Verified entry, unlock, account or mode conditions. | String | optional |
| Entry cost | entry_cost | Verified entry fees or consumed items. | String | optional |
| NPCs | npcs | Reviewed notable NPCs or link to the NPC listing. | String | optional |
| Activities | activities | Reviewed activities and training opportunities. | String | optional |
| Facilities | facilities | Verified banks, shops and other usable facilities. | String | optional |
| Combat rules | combat_rules | Verified PvP, multicombat or other combat rules and boundaries. | String | optional |
| On death | death_behavior | Verified death, item loss and reclaim rules. | String | optional |
| Availability | availability | World, mode, instance, season or event restrictions. | String | optional |
| Region ID | region_id | Verified numeric region ID or explicitly labelled list. | String | optional |
| Instance | instance | Verified instancing behavior and relevant ownership or reset conditions. | String | optional |