Template:Status
From PCSAR
(Difference between revisions)
| Line 1: | Line 1: | ||
<noinclude>{{documentation}}</noinclude><includeonly><noinclude> | <noinclude>{{documentation}}</noinclude><includeonly><noinclude> | ||
;;;;;;;;;;;; | ;;;;;;;;;;;; | ||
| - | </noinclude>{{#ifexpr: {{#time: xNU | {{{2| | + | </noinclude>{{#ifexpr: <noinclude> |
| - | + | ||
| + | ;;;;;;;;;;;; If the provided date | ||
| + | ;;;;;;;;;;;; (if no date is provided, use a future date such that | ||
| + | ;;;;;;;;;;;; this test fails -- the status is for the current | ||
| + | ;;;;;;;;;;;; iteration) | ||
| + | ;;;;;;;;;;;; (the future date is in 2037, which is the furthest | ||
| + | ;;;;;;;;;;;; future date that is supported by this | ||
| + | ;;;;;;;;;;;; implementation of UNIX time_t) | ||
| + | </noinclude>{{#time: xNU | {{{2|2037-01-01}}} }}<noinclude> | ||
| + | |||
| + | ;;;;;;;;;;;; is less than | ||
| + | </noinclude>< <noinclude> | ||
| + | |||
| + | ;;;;;;;;;;;; the most recent date for this task list | ||
| + | </noinclude>{{#time: xNU | {{property get|tasks iteration date}} }}<noinclude> | ||
| + | |||
| + | |||
| + | </noinclude>| [[File:Checkbox-unchecked.pdf|16px|link=]] ({{Status/Parse|{{{1|}}}}} for {{{2}}}) | ||
| {{#switch: {{Status/Parse|{{{1|}}}}} | | {{#switch: {{Status/Parse|{{{1|}}}}} | ||
| - | | not yet = [[ | + | | not yet = [[File:Checkbox-unchecked.pdf|16px|link=]] |
| - | | done = [[ | + | | done = [[File:Checkbox-checked.pdf|16px|link=]] |
| - | | won't = [[ | + | | won't = [[File:No.pdf|20px|link=]] |
| #default = {{error message|<code><nowiki>{{status|</nowiki>{{{1|}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}<nowiki>}}</nowiki></code> value "{{{1|}}}" could not be understood. Use "not yet", "done" or "won't".}} | | #default = {{error message|<code><nowiki>{{status|</nowiki>{{{1|}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}<nowiki>}}</nowiki></code> value "{{{1|}}}" could not be understood. Use "not yet", "done" or "won't".}} | ||
}} | }} | ||
Revision as of 06:37, 25 February 2018
This is the documentation for the template Template:Status
|
The template
Checks the property "tasks iteration date" set by
the template For examples below, assume
{{tasks iteration date|2018-02}}
Supporting templatesSupporting files |
To see how this template is implemented,
edit this page and examine the portion
between <includeonly> and </includeonly>.

