Difference between revisions of "Template:Status"

From CRIU
Jump to navigation Jump to search
(created)
 
(added stalled)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<div align="right" color="{{#ifeq: {{{1}}} | ready | green | red }}">'''Status: {{{1}}}'''</div>
+
<span style="padding: 5px; font-size: 120%; border-left: 1em solid {{#switch: {{{1|}}} | ready=DarkGreen | not ready=DarkRed | in progress=DarkOrange | stalled=Brown | Black }};">Status: {{{1}}}</span><noinclude>
 +
 
 +
This is template to show some feature or project status using a predefined color.
 +
 
 +
== Usage ==
 +
 
 +
<code><nowiki>{{Status|some words}}</nowiki></code>
 +
 
 +
=== ready ===
 +
<code><nowiki>{{Status|ready}}</nowiki></code> will show
 +
 
 +
{{Status|ready}}
 +
 
 +
=== not ready ===
 +
<code><nowiki>{{Status|not ready}}</nowiki></code> will show
 +
 
 +
{{Status|not ready}}
 +
 
 +
=== in progress ===
 +
 
 +
<code><nowiki>{{Status|in progress}}</nowiki></code> will show
 +
 
 +
{{Status|in progress}}
 +
 
 +
=== others ===
 +
 
 +
Any other words will be displayed with default black color:
 +
 
 +
{{Status|some words}}
 +
</noinclude>

Latest revision as of 19:19, 3 February 2015

Status: {{{1}}}

This is template to show some feature or project status using a predefined color.

Usage[edit]

{{Status|some words}}

ready[edit]

{{Status|ready}} will show

Status: ready

not ready[edit]

{{Status|not ready}} will show

Status: not ready

in progress[edit]

{{Status|in progress}} will show

Status: in progress

others[edit]

Any other words will be displayed with default black color:

Status: some words