Template:Infobox Task: Difference between revisions

From Sarim Wiki
Jump to navigation Jump to search
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.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

Display name. Defaults to the current page title when omitted.

Stringsuggested
Imageimage

Existing local File name, without brackets; do not use an external image URL.

Fileoptional
Image alternative textimage_alt

Plain description of the illustration for screen readers.

Stringoptional
Image captioncaption

Optional caption explaining the illustration.

Stringoptional
Variantvariant

Phase, charge state, difficulty or other variant represented by this box.

Stringoptional
Contextcontext

Scope such as solo, world mode or season; supply only verified conditions.

Stringoptional
Notesnotes

Short qualifying note; longer mechanics belong in the article body.

Stringoptional
Alignmentalignment

right (default), left or none; none keeps the box in normal document flow.

Suggested values
right left none
Stringoptional
Task familytask_family

Verified progression family; keep different task systems distinct.

Stringoptional
Tiertier

Verified tier or difficulty label.

Stringoptional
Objectiveobjective

Reviewed objective summary preserving conditions and exclusions.

Stringoptional
Targettarget

Verified target amount and unit; distinguish assigned and catalog targets.

Stringoptional
Locationlocation

Verified location or activity scope.

Stringoptional
Requirementsrequirements

Prerequisites, assignment, mode and eligibility conditions.

Stringoptional
Completioncompletion

Verified progress and completion evaluation rules.

Stringoptional
Rewardsrewards

Verified grants rather than display-only advertised rewards.

Stringoptional
Pointspoints

Verified awarded points and relevant conditions.

Stringoptional
Claimingclaim

Verified automatic or manual claiming conditions and route.

Stringoptional
Repeatablerepeatable

Verified repeatability and limits.

Stringoptional
Resetreset

Verified reset schedule or triggers, including time convention.

Stringoptional
Unlocksunlocks

Verified downstream unlocks or eligibility changes.

Stringoptional
Availabilityavailability

World, mode, season, assignment or event conditions.

Stringoptional
Task IDtask_id

Verified stable task identifier, labelled with its task family.

Stringoptional