Difference between revisions of "Template:Done"

From Nottinghack Wiki
Jump to navigation Jump to search
(  after done)
(examples)
Line 1: Line 1:
 
[[File:Yes check.svg|18px|link=|alt=]]&nbsp;'''Done'''&nbsp;<!--
 
[[File:Yes check.svg|18px|link=|alt=]]&nbsp;'''Done'''&nbsp;<!--
-->{{#if:{{{date|}}}{{{reason|}}}|<!-- condition if A or B --><!--
+
-->{{#if:{{{date|}}}{{{text|}}}|<!-- condition if A or B --><!--
 
--><small>''(<!--
 
--><small>''(<!--
 
   -->{{#if:{{{date|}}}|{{{date}}} }}<!--
 
   -->{{#if:{{{date|}}}|{{{date}}} }}<!--
     -->{{#if:{{{date|}}}|{{#if:{{{reason|}}}|&nbsp;-&nbsp;}} }}<!-- A and B
+
     -->{{#if:{{{date|}}}|{{#if:{{{text|}}}|&nbsp;-&nbsp;}} }}<!-- A and B
     -->{{#if:{{{reason|}}}|{{{reason}}} }}<!--
+
     -->{{#if:{{{text|}}}|{{{text}}} }}<!--
 
-->)''</small>}}<!--
 
-->)''</small>}}<!--
 
--><noinclude>
 
--><noinclude>
  
 
==Documentation==
 
==Documentation==
Provides a tick and bold '''Done'''. Can to be use before text of the thing that has been done. Has optional date parameter. Examples:
+
Provides a tick and bold '''Done'''. It has optional date and text parameters. Examples:
  
 
<pre>
 
<pre>
{{done|date=December 2018|reason}}
+
Example task {{done}}
 
</pre>
 
</pre>
 +
 +
Renders as:
 +
 +
Example task {{done}}
  
 
<pre>
 
<pre>
{{done|Message}}
+
{{done|date=December 2018|text=Two members lost out of airlock during repair.}}
 
</pre>
 
</pre>
 +
 +
Renders as:
 +
 +
{{done|date=December 2018|text=Two members lost out of airlock during repair.}}
  
 
[[Category:Templates highlighting]]
 
[[Category:Templates highlighting]]
 
</noinclude>
 
</noinclude>

Revision as of 20:57, 14 February 2019

 Done 

Documentation

Provides a tick and bold Done. It has optional date and text parameters. Examples:

Example task {{done}}

Renders as:

Example task  Done 

{{done|date=December 2018|text=Two members lost out of airlock during repair.}}

Renders as:

 Done (December 2018 - Two members lost out of airlock during repair.)