Template:Task/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (?* New Parameter */ {{{task <1-24> reason}}})
Line 16: Line 16:
| {{CodeBlock|margin=5px|<nowiki>| desc = Everything that needs to be done to save the potato machine is described below. Hurry up!</nowiki>}}
| {{CodeBlock|margin=5px|<nowiki>| desc = Everything that needs to be done to save the potato machine is described below. Hurry up!</nowiki>}}
|-
|-
| align="center" | {{Code|style=2|{{Param|task <1-20>}}}}
| align="center" | {{Code|style=2|{{Param|task <1-24>}}}}
| Your task.
| Your task.
| {{CodeBlock|margin=5px|<nowiki>| task 1 = Destroy the potato chip factory.</nowiki>}}
| {{CodeBlock|margin=5px|<nowiki>| task 1 = Destroy the potato chip factory.</nowiki>}}
|-
|-
| align="center" | {{Code|style=2|{{Param|task <1-20> status}}}}
| align="center" | {{Code|style=2|{{Param|task <1-24> status}}}}
| The status of the task. if specified, the task color changes.
| The status of the task. if specified, the task color changes.


Line 28: Line 28:
* {{Code|done}}
* {{Code|done}}
| {{CodeBlock|margin=5px|<nowiki>| task 1 status = rejected</nowiki>}} {{CodeBlock|margin=5px|<nowiki>| task 1 status = in progress</nowiki>}} {{CodeBlock|margin=5px|<nowiki>| task 1 status = done</nowiki>}}
| {{CodeBlock|margin=5px|<nowiki>| task 1 status = rejected</nowiki>}} {{CodeBlock|margin=5px|<nowiki>| task 1 status = in progress</nowiki>}} {{CodeBlock|margin=5px|<nowiki>| task 1 status = done</nowiki>}}
|-
| align="center" | {{Code|style=2|{{Param|task <1-24> reason}}}}
| The reason for rejecting the task.
| {{CodeBlock|margin=5px|<nowiki>| task 1 reason = This is an example text.</nowiki>}}
|}
|}



Revision as of 22:22, 30 April 2023

Edit-copy.png
This is a documentation subpage for Template:Task.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

Used on the Valve Developer Community:Tasks page, which is included in the Main Page.

Parameters and Examples

Parameter Description Example
{{{section}}} Section name. Used on the Main Page.
| section = Saving the Potato Machine
{{{desc}}} Description of the section.
| desc = Everything that needs to be done to save the potato machine is described below. Hurry up!
{{{task <1-24>}}} Your task.
| task 1 = Destroy the potato chip factory.
{{{task <1-24> status}}} The status of the task. if specified, the task color changes.

Avaliable values:

  • rejected
  • in progress
  • done
| task 1 status = rejected
| task 1 status = in progress
| task 1 status = done
{{{task <1-24> reason}}} The reason for rejecting the task.
| task 1 reason = This is an example text.

Template Subpages

  • /include - Content to include in the template.