Template:Demob action

From PCSAR

(Difference between revisions)
Jump to: navigation, search
Current revision (18:27, 9 September 2016) (edit) (undo)
 
(15 intermediate revisions not shown.)
Line 1: Line 1:
<noinclude>{{documentation}}</noinclude><includeonly>
<noinclude>{{documentation}}</noinclude><includeonly>
<tr valign="top">
<tr valign="top">
-
<td style="border-right:{{Lesson slide/Border}}; border-top:{{Lesson slide/Border}};">
+
<td style="border-right:{{Lesson slide/Border}}; border-top:{{Lesson slide/Border}};"><!--
-
{{{1|}}}</td>
+
 
-
<td align="center" style="border-right:{{Lesson slide/Border}}; border-top:{{Lesson slide/Border}}; <!--
+
;;; start on new line so bullets will work
 +
 
 +
;;; if blank, include whitespace to preserve vertical space for writing
 +
-->
 +
{{#if: {{{1|}}} |{{{1}}}|&nbsp;}}</td>
 +
<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.
;;; Highlight (yellow) if has non-blank action and hasn't been marked done or won't do.
Line 9: Line 14:
-->{{#if: {{{1|}}} | {{#if: {{{done|}}}{{{won't|}}} | | background-color:yellow; }} }}<!--
-->{{#if: {{{1|}}} | {{#if: {{{done|}}}{{{won't|}}} | | background-color:yellow; }} }}<!--
-->">{{{done|}}}</td>
-->">{{{done|}}}</td>
-
<td align="center" style="border-right:{{Lesson slide/Border}}; border-top:{{Lesson slide/Border}};">{{{won't|}}}</td>
+
<td width="10%" align="center" style="border-right:{{Lesson slide/Border}}; border-top:{{Lesson slide/Border}};">{{{won't|}}}</td>
-
<td style="border-right:{{Lesson slide/Border}}; border-top:{{Lesson slide/Border}};">{{{assign|}}}</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>
</tr>
</includeonly>
</includeonly>
-
 
-
{{demo table|
 
-
{{demo row|<nowiki>{{demob table start}}{{demob action}}{{demob table end}}</nowiki><!--
 
-
-->| {{demob table start}}{{demob action}}{{demob table end}} }}
 
-
}}
 
-
}}
 

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