A Wiki in the Desert
Log in

Difference between revisions of "Template:Task/doc"

From A Wiki in the Desert
m (Updated to match new Task template)
 
Line 1: Line 1:
'''{{tl|Task}}''' is for use in any article about an in-game "task". Any parameters not included will revert to the display ''none''.
+
'''{{tl|Task}}''' is for use in any article about an in-game "task". All parameters are ''optional'' and can be left blank, though it is preferred to include as many as possible; if undefined, these optional parameters will not appear as part of the template.
  
 
__TOC__
 
__TOC__
  
 
== Template ==
 
== Template ==
<pre>
+
<pre><nowiki>
 
{{Task
 
{{Task
| name         =  
+
| name     =  
| prereq      =  
+
| rewards  =  
| actionbefore =  
+
| follows  =  
| next        =  
+
| precedes =  
| reward      =
+
}}
 +
</nowiki></pre>
  
| step1        =
+
== Usage ==
| step2        =
 
...
 
  
}}</pre>
+
; name : The name of the task.
  
== Usage ==
+
; rewards ''(optional)'' : The tangible rewards given to the player upon completion of the task.
  
; name : The name of the skill (defaults to the page name)
+
; follows ''(optional)'' : The task unlocked upon completion of this task.
  
; prereq : Task required to have this task show
+
; precedes ''(optional)'' : The task that unlocked this task upon its completion.
  
; actionbefore: Non-task required to have this task show
+
== Example ==
  
; next : What task this leads to.
+
{{Infobox
 +
| ibclass = ib-task
 +
| ibname  = Flax Processing
 +
| ibtype  = Task
  
; reward : Any reward given, such as a resource or a talent point. Leave blank if no reward provided
+
| content =
 +
{{#invoke:Infobox|stacked|Rewards|
 +
* 50× [[Rotten Flax]]
 +
}}
  
; step# : List of step(s) required to achieve the task
+
<tr><th class="ibtype">Related Tasks</th></tr>
  
== Example ==
+
{{#invoke:Infobox|stacked|Follows|
 +
* [[Flax Growing]]
 +
}}
 +
{{#invoke:Infobox|stacked|Precedes|
 +
* [[Building Materials]]
 +
}}
 +
}}
  
 
<pre>{{Task
 
<pre>{{Task
| name         = This Task
+
| name     = Flax Processing
| prereq      = Previous Task
+
| rewards  =  
| next        = Next Task
+
* 50× [[Rotten Flax]]
| reward      = Some Resource
+
| follows  =
 
+
* [[Flax Growing]]
| step1        = Do this action first
+
| precedes =
| step2        = Do this action second
+
* [[Building Materials]]
 
 
 
}}</pre>
 
}}</pre>
  
 
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
 
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 21:39, 26 November 2019

{{Task}} is for use in any article about an in-game "task". All parameters are optional and can be left blank, though it is preferred to include as many as possible; if undefined, these optional parameters will not appear as part of the template.

Template

{{Task
| name     = 
| rewards  = 
| follows  = 
| precedes = 
}}

Usage

name
The name of the task.
rewards (optional)
The tangible rewards given to the player upon completion of the task.
follows (optional)
The task unlocked upon completion of this task.
precedes (optional)
The task that unlocked this task upon its completion.

Example

Flax Processing
(Task)
Rewards
Related Tasks
Follows
Precedes


{{Task
| name     = Flax Processing
| rewards  = 
* 50× [[Rotten Flax]]
| follows  =
* [[Flax Growing]]
| precedes =
* [[Building Materials]]
}}