Template:Done: Difference between revisions

From Nottinghack Wiki
Jump to navigation Jump to search
comments for mediawiki if statements
unnamed 1st para
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[File:Yes check.svg|18px|link=|alt=]] 
[[File:Yes check.svg|18px|link=|alt=]]&nbsp;'''Done'''&nbsp;<!--
{{#if:{{{1|}}} <!-- no text in first para -->
-->{{#if:{{{1|{{{date|}}} }}}{{{text|}}}|<!-- condition if A or B --><!--
|
--><small>''(<!--
|<!-- then -->'''Done'''
  -->{{#if:{{{1|{{{date|}}} }}}|{{{1|{{{date|}}} }}} }}<!--
|<!-- else -->'''{{{1}}}'''
    -->{{#if:{{{1|{{{date|}}} }}}|{{#if:{{{text|}}}|&nbsp;-&nbsp;}} }}<!-- A and B
}} '''
    -->{{#if:{{{text|}}}|{{{text}}} }}<!--
-->)''</small>}}<!--
--><noinclude>
 
==Documentation==
Provides a tick and bold '''Done'''. It has optional date and text parameters. Examples:


===Examples===
Simple no parameters.


{{#if:{{{date|}}}|<small>''({{{date}}})&nbsp; ''</small>}}<!--
:<code><nowiki>Example task {{done}}</nowiki></code>
--><noinclude>
 
:Example task {{done}}


==Documentation==
Expanded with parameters.
Provide a tick and bold '''Done'''. Can to be use before text of the thing that has been done. Has optional date parameter. Examples:


<pre>
:<code><nowiki>{{done|date=December 2018|text=Two members lost out of the airlock during repair.}}</nowiki></code>
{{done}}
</pre>


<pre>
:{{done|date=December 2018|text=Two members lost out of the airlock during repair.}}
{{done|date=December 2018}}
</pre>


<pre>
===Parameters===
{{done|Message}}
;date
</pre>
:Use either Month YYYY or DD/MM/YYYY date format. Also works as first parameter unnamed.
;text
:Text note to be included.


[[Category:Templates highlight]]
[[Category:Templates highlighting]]
</noinclude>
</noinclude>
{{#if:{{{1|}}}|You entered text in variable 1|There is no text in variable 1 }}

Latest revision as of 08:24, 25 February 2019

 Done 

Documentation

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

Examples

Simple no parameters.

Example task {{done}}
Example task  Done 

Expanded with parameters.

{{done|date=December 2018|text=Two members lost out of the airlock during repair.}}
 Done (December 2018 - Two members lost out of the airlock during repair.)

Parameters

date
Use either Month YYYY or DD/MM/YYYY date format. Also works as first parameter unnamed.
text
Text note to be included.