Template:Infobox Task: 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-task {{#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">Task</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:{{{task_family|}}}{{{tier|}}}{{{objective|}}}{{{target|}}}{{{location|}}}|<tr><th colspan="2" class="sarim-infobox-section" scope="colgroup">Details</th></tr>{{#if:{{{task_family|}}}|<tr><th scope="row">Task family</th><td>{{{task_family|}}}</td></tr>}}{{#if:{{{tier|}}}|<tr><th scope="row">Tier</th><td>{{{tier|}}}</td></tr>}}{{#if:{{{objective|}}}|<tr><th scope="row">Objective</th><td>{{{objective|}}}</td></tr>}}{{#if:{{{target|}}}|<tr><th scope="row">Target</th><td>{{{target|}}}</td></tr>}}{{#if:{{{location|}}}|<tr><th scope="row">Location</th><td>{{{location|}}}</td></tr>}}}}{{#if:{{{requirements|}}}{{{completion|}}}{{{rewards|}}}{{{points|}}}{{{claim|}}}{{{repeatable|}}}{{{reset|}}}{{{unlocks|}}}{{{availability|}}}|<tr><th colspan="2" class="sarim-infobox-section" scope="colgroup">Completion and rewards</th></tr>{{#if:{{{requirements|}}}|<tr><th scope="row">Requirements</th><td>{{{requirements|}}}</td></tr>}}{{#if:{{{completion|}}}|<tr><th scope="row">Completion</th><td>{{{completion|}}}</td></tr>}}{{#if:{{{rewards|}}}|<tr><th scope="row">Rewards</th><td>{{{rewards|}}}</td></tr>}}{{#if:{{{points|}}}|<tr><th scope="row">Points</th><td>{{{points|}}}</td></tr>}}{{#if:{{{claim|}}}|<tr><th scope="row">Claiming</th><td>{{{claim|}}}</td></tr>}}{{#if:{{{repeatable|}}}|<tr><th scope="row">Repeatable</th><td>{{{repeatable|}}}</td></tr>}}{{#if:{{{reset|}}}|<tr><th scope="row">Reset</th><td>{{{reset|}}}</td></tr>}}{{#if:{{{unlocks|}}}|<tr><th scope="row">Unlocks</th><td>{{{unlocks|}}}</td></tr>}}{{#if:{{{availability|}}}|<tr><th scope="row">Availability</th><td>{{{availability|}}}</td></tr>}}}}{{#if:{{{task_id|}}}|<tr><th colspan="2" class="sarim-infobox-section" scope="colgroup">Advanced data</th></tr>{{#if:{{{task_id|}}}|<tr><th scope="row">Task ID</th><td>{{{task_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-task {{#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">Task</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:{{{task_family|}}}{{{tier|}}}{{{objective|}}}{{{target|}}}{{{location|}}}|<tr><th colspan="2" class="sarim-infobox-section" scope="colgroup">Details</th></tr>{{#if:{{{task_family|}}}|<tr><th scope="row">Task family</th><td>{{{task_family|}}}</td></tr>}}{{#if:{{{tier|}}}|<tr><th scope="row">Tier</th><td>{{{tier|}}}</td></tr>}}{{#if:{{{objective|}}}|<tr><th scope="row">Objective</th><td>{{{objective|}}}</td></tr>}}{{#if:{{{target|}}}|<tr><th scope="row">Target</th><td>{{{target|}}}</td></tr>}}{{#if:{{{location|}}}|<tr><th scope="row">Location</th><td>{{{location|}}}</td></tr>}}}}{{#if:{{{requirements|}}}{{{completion|}}}{{{rewards|}}}{{{points|}}}{{{claim|}}}{{{repeatable|}}}{{{reset|}}}{{{unlocks|}}}{{{availability|}}}|<tr><th colspan="2" class="sarim-infobox-section" scope="colgroup">Completion and rewards</th></tr>{{#if:{{{requirements|}}}|<tr><th scope="row">Requirements</th><td>{{{requirements|}}}</td></tr>}}{{#if:{{{completion|}}}|<tr><th scope="row">Completion</th><td>{{{completion|}}}</td></tr>}}{{#if:{{{rewards|}}}|<tr><th scope="row">Rewards</th><td>{{{rewards|}}}</td></tr>}}{{#if:{{{points|}}}|<tr><th scope="row">Points</th><td>{{{points|}}}</td></tr>}}{{#if:{{{claim|}}}|<tr><th scope="row">Claiming</th><td>{{{claim|}}}</td></tr>}}{{#if:{{{repeatable|}}}|<tr><th scope="row">Repeatable</th><td>{{{repeatable|}}}</td></tr>}}{{#if:{{{reset|}}}|<tr><th scope="row">Reset</th><td>{{{reset|}}}</td></tr>}}{{#if:{{{unlocks|}}}|<tr><th scope="row">Unlocks</th><td>{{{unlocks|}}}</td></tr>}}{{#if:{{{availability|}}}|<tr><th scope="row">Availability</th><td>{{{availability|}}}</td></tr>}}}}{{#if:{{{task_id|}}}|<tr><th colspan="2" class="sarim-infobox-section" scope="colgroup">Advanced data</th></tr>{{#if:{{{task_id|}}}|<tr><th scope="row">Task ID</th><td>{{{task_id|}}}</td></tr>}}}}{{#if:{{{notes|}}}|<tr><td colspan="2" class="sarim-infobox-notes">{{{notes|}}}</td></tr>}}</table></includeonly><noinclude> | ||
{{:Template:Infobox Task/doc}} | {{:Template:Infobox Task/doc}} | ||
[[Category:Infobox templates]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 04:52, 2 October 2026
This template displays Achievement, daily task or other progression objective with explicit family and completion rules.
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 Task
|name =
|image =
|image_alt =
|variant =
|context =
|task_family =
|tier =
|objective =
|target =
|location =
|requirements =
|completion =
|rewards =
|points =
|claim =
|repeatable =
|reset =
|unlocks =
|availability =
|task_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. |
task_family |
Verified progression family; keep different task systems distinct. |
tier |
Verified tier or difficulty label. |
objective |
Reviewed objective summary preserving conditions and exclusions. |
target |
Verified target amount and unit; distinguish assigned and catalog targets. |
location |
Verified location or activity scope. |
requirements |
Prerequisites, assignment, mode and eligibility conditions. |
completion |
Verified progress and completion evaluation rules. |
rewards |
Verified grants rather than display-only advertised rewards. |
points |
Verified awarded points and relevant conditions. |
claim |
Verified automatic or manual claiming conditions and route. |
repeatable |
Verified repeatability and limits. |
reset |
Verified reset schedule or triggers, including time convention. |
unlocks |
Verified downstream unlocks or eligibility changes. |
availability |
World, mode, season, assignment or event conditions. |
task_id |
Verified stable task identifier, labelled with its task family. |
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.
Achievement, daily task or other progression objective with explicit family and completion rules.
| 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 |
| Task family | task_family | Verified progression family; keep different task systems distinct. | String | optional |
| Tier | tier | Verified tier or difficulty label. | String | optional |
| Objective | objective | Reviewed objective summary preserving conditions and exclusions. | String | optional |
| Target | target | Verified target amount and unit; distinguish assigned and catalog targets. | String | optional |
| Location | location | Verified location or activity scope. | String | optional |
| Requirements | requirements | Prerequisites, assignment, mode and eligibility conditions. | String | optional |
| Completion | completion | Verified progress and completion evaluation rules. | String | optional |
| Rewards | rewards | Verified grants rather than display-only advertised rewards. | String | optional |
| Points | points | Verified awarded points and relevant conditions. | String | optional |
| Claiming | claim | Verified automatic or manual claiming conditions and route. | String | optional |
| Repeatable | repeatable | Verified repeatability and limits. | String | optional |
| Reset | reset | Verified reset schedule or triggers, including time convention. | String | optional |
| Unlocks | unlocks | Verified downstream unlocks or eligibility changes. | String | optional |
| Availability | availability | World, mode, season, assignment or event conditions. | String | optional |
| Task ID | task_id | Verified stable task identifier, labelled with its task family. | String | optional |