Template:Status
From PCSAR
(Difference between revisions)
(New page: <noinclude>{{documentation}}</noinclude><includeonly><noinclude> ;;;;;;;;;;;; </noinclude>{{#ifexpr: {{#time: xNU | {{{2|2100}}} }} < {{#time: xNU | {{property get|tasks iteration date}} ...) |
|||
(9 intermediate revisions not shown.) | |||
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 | ||
+ | ;;;;;;;;;;;; if none provided, use a date earlier than any task: 1970-01-01 is the UNIX epoch | ||
+ | </noinclude>{{#time: xNU | {{property get|tasks iteration date|Default=1970-01-01 }} }}<noinclude> | ||
+ | |||
+ | |||
+ | </noinclude>| [[Image:Checkbox-unchecked.pdf|16px|link=]] <small>({{Status/Parse|{{{1|}}}}} for {{{2}}})</small> | ||
| {{#switch: {{Status/Parse|{{{1|}}}}} | | {{#switch: {{Status/Parse|{{{1|}}}}} | ||
- | | not yet = [[ | + | | not yet = [[Image:Checkbox-unchecked.pdf|16px|link=]] |
- | | done = [[ | + | | done = [[Image:Checkbox-checked.pdf|16px|link=]] |
- | | won't = [[ | + | | verified = [[Image:Checkbox-verified.pdf|16px|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".}} | + | | won't = [[Image: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", "verified" or "won't".}} | ||
}} | }} | ||
}}<noinclude> | }}<noinclude> | ||
;;;;;;;;;;;; | ;;;;;;;;;;;; | ||
</noinclude></includeonly> | </noinclude></includeonly> |
Current revision
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}}
[edit] Supporting templates[edit] Supporting files |
To see how this template is implemented,
edit this page and examine the portion
between <includeonly>
and </includeonly>
.