Line 1: |
Line 1: |
− | <span style="padding: 5px; font-size: 120%; border-left: 1em solid {{#ifeq: {{{1|}}} | ready | DarkGreen | DarkRed }};">Status: {{{1}}}</span> | + | <span style="padding: 5px; font-size: 120%; border-left: 1em solid {{#switch: {{{1|}}} | ready=DarkGreen | not ready=DarkRed | in progress=DarkOrange | 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> |