Difference between revisions of "Template:Task"
From A Wiki in the Desert
(Created page with "<includeonly>{{Infobox | ibname = {{{name|{{PAGENAME}}}}} | content = {{ #if:{{{prereq}}} | {{#invoke:Infobox|stacked|Pre-Requisit| {{{source}}} }} }} {{ #if:{{{next|}}}...") |
(Rewrote to be more visually similar to other infoboxes) |
||
| (16 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{Infobox | <includeonly>{{Infobox | ||
| + | | ibclass = ib-task | ||
| ibname = {{{name|{{PAGENAME}}}}} | | ibname = {{{name|{{PAGENAME}}}}} | ||
| + | | ibtype = Task | ||
| content = | | content = | ||
| − | {{ #if:{{{ | + | {{ #if:{{{rewards|}}} | |
| − | {{#invoke:Infobox|stacked| | + | {{#invoke:Infobox|stacked|Rewards| |
| − | {{{ | + | {{{rewards|}}} |
}} | }} | ||
}} | }} | ||
| − | {{ #if:{{{ | + | {{ #ifeq: {{#expr: {{#if:{{{follows|}}}|1|0}} or {{#if:{{{precedes|}}}|1|0}} }} | 1 | <tr><th class="ibtype">Related Tasks</th></tr> }} |
| − | {{#invoke:Infobox|stacked| | + | |
| − | {{{ | + | {{ #if:{{{follows|}}} | |
| + | {{#invoke:Infobox|stacked|Follows| | ||
| + | {{{follows|}}} | ||
| + | }} | ||
}} | }} | ||
| − | {{ #if:{{{ | + | {{ #if:{{{precedes|}}} | |
| − | {{#invoke:Infobox|stacked| | + | {{#invoke:Infobox|stacked|Precedes| |
| − | {{{ | + | {{{precedes|}}} |
}} | }} | ||
}} | }} | ||
| − | + | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
}} | }} | ||
| − | [[Category:Tasks]] | + | [[Category:Tasks]]</includeonly><noinclude> |
| − | </includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
| − | [[Category:Infoboxes| | + | [[Category:Infoboxes|Task]] |
</noinclude> | </noinclude> | ||
Latest revision as of 21:38, 26 November 2019
Template documentation (for the above template, sometimes hidden or invisible)
{{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]]
}}
Visit Template:Task/doc to edit this text! (How does this work?)