Template:Demob action

From PCSAR

(Difference between revisions)
Jump to: navigation, search
Current revision (18:27, 9 September 2016) (edit) (undo)
 
(35 intermediate revisions not shown.)
Line 1: Line 1:
-
|- valign="top"
+
<noinclude>{{documentation}}</noinclude><includeonly>
-
|style="border-right:{{Lesson slide/Border}}; border-top:{{Lesson slide/Border}};"|
+
<tr valign="top">
-
{{{1|}}}
+
<td style="border-right:{{Lesson slide/Border}}; border-top:{{Lesson slide/Border}};"><!--
-
|style="border-right:{{Lesson slide/Border}}; border-top:{{Lesson slide/Border}}; <!--
+
-
-->background-color:yellow;"|
+
;;; start on new line so bullets will work
-
{{#if: {{{done|}}} | {{{done}}} | '''?''' }}
+
 
-
|style="border-right:{{Lesson slide/Border}}; border-top:{{Lesson slide/Border}};"|
+
;;; if blank, include whitespace to preserve vertical space for writing
-
{{{won't|}}}
+
-->
-
|style="border-right:{{Lesson slide/Border}}; border-top:{{Lesson slide/Border}};"|
+
{{#if: {{{1|}}} |{{{1}}}|&nbsp;}}</td>
-
{{{assign|}}}
+
<td width="10%" align="center" style="border-right:{{Lesson slide/Border}}; border-top:{{Lesson slide/Border}}; <!--
 +
 
 +
;;; Highlight (yellow) if has non-blank action and hasn't been marked done or won't do.
 +
 
 +
-->{{#if: {{{1|}}} | {{#if: {{{done|}}}{{{won't|}}} | | background-color:yellow; }} }}<!--
 +
-->">{{{done|}}}</td>
 +
<td width="10%" align="center" style="border-right:{{Lesson slide/Border}}; border-top:{{Lesson slide/Border}};">{{{won't|}}}</td>
 +
<td width="20%" style="border-right:{{Lesson slide/Border}}; border-top:{{Lesson slide/Border}};"><!--
 +
 
 +
;;; Display as link to person if possible
 +
 
 +
-->{{#if: {{{assign|}}}
 +
| {{#ifexist: Members:{{{assign}}} | [[Members:{{{assign}}}|{{{assign}}}]] | {{{assign}}} }}
 +
}}<!--
 +
 
 +
--></td>
 +
 
 +
</tr>
 +
</includeonly>

Current revision

This is the documentation for the template Template:Demob action

Template:Demob action/Doc:

The template {{Demob action|done=...|won't=...|assign=...| action}} creates a line in a table of demobilization actions.

See template:demob table start.

The parameters

action
lists the action to be taken, and any supporting information.
For visual clarity in the edit window, it may start on its own line.
done
indicates that the action has been completed
Any value is accepted and displayed, such as done=y
won't
indicates that the action won't be completed, doesn't need to be completed, or doesn't apply
Any value is accepted and displayed, such as won't=n/a
assign
records who the action is assigned to

If the action still needs attention (determined by neither done nor won't being set, but an action being provided), the Completed box is highlighted in yellow.


You type... You get...
{{demob table start}}{{demob action}}{{demob table end}} 
Action Completed Won't do n/a Assigned to
 
{{demob table start}}{{demob action|action}}{{demob table end}} 
Action Completed Won't do n/a Assigned to
action
{{demob table start}}{{demob action|done=y|action}}{{demob table end}} 
Action Completed Won't do n/a Assigned to
action y
{{demob table start}}{{demob action|won't=n/a|action}}{{demob table end}} 
Action Completed Won't do n/a Assigned to
action n/a
{{demob table start}}{{demob action|

}}{{demob table end}} 
Action Completed Won't do n/a Assigned to
 


To see how this template is implemented, edit this page and examine the portion between <includeonly> and </includeonly>.

Personal tools