A Wiki in the Desert
Log in

Difference between revisions of "Template:TestStatus"

From A Wiki in the Desert
m (Pluralizing the "Template" category. Categories should be plural)
m
 
Line 1: Line 1:
<noinclude>''Displays a cross, warning triangle or green tick depending on the value sent.''
+
<includeonly>{{#ifeq: {{{1|}}} | 1 | [[Image:Green tick.png| | |Open and Available]] |}}{{#ifeq: {{{1|}}} | 0 | [[Image:Yellow warning.png| | |Requires Demonstrating]] |}}{{#ifeq: {{{1|}}} | -1 | [[Image:Red cross.png| | |Not yet available]] |}}</includeonly><noinclude>
<code>
+
{{Documentation}}
<NOWIKI>{{TestStatus|-1}}</NOWIKI> for not openable - displays [[Image:Red cross.png| | |{{{2|Not yet available}}}]]
+
[[Category:Content templates]]
<NOWIKI>{{TestStatus|0}}</NOWIKI> for needs demonstration - displays [[Image:Yellow warning.png| | |{{{2|Requires Demonstrating}}}]]
 
<NOWIKI>{{TestStatus|1}}</NOWIKI> for Open and available - displays [[Image:Green tick.png| | |{{{2|Open and Available}}}]]
 
 
 
<NOWIKI>{{TestStatus|-1|Text}}</NOWIKI> displays icon with Text as the tooltip, [[Image:Red cross.png| | |Text]]
 
<NOWIKI>{{TestStatus|0|Text}}</NOWIKI> displays icon with Text as the tooltip, [[Image:Yellow warning.png| | |Text]]
 
<NOWIKI>{{TestStatus|1|Text}}</NOWIKI> displays icon with Text as the tooltip, [[Image:Green tick.png| | |Text]]
 
</code>
 
 
 
----
 
</noinclude><includeonly>{{#ifeq: {{{1|}}} | 1 | [[Image:Green tick.png| | |Open and Available]] |}}{{#ifeq: {{{1|}}} | 0 | [[Image:Yellow warning.png| | |Requires Demonstrating]] |}}{{#ifeq: {{{1|}}} | -1 | [[Image:Red cross.png| | |Not yet available]] |}}</includeonly><noinclude>
 
[[Category:Templates]] {{DEFAULTSORT:{{SUBPAGENAME}}}}
 
 
</noinclude>
 
</noinclude>

Latest revision as of 18:08, 17 May 2021

Template documentation (for the above template, sometimes hidden or invisible)

Displays a cross, warning triangle or green tick depending on the value sent.

{{TestStatus|-1}} for not openable - displays Not yet available
{{TestStatus|0}} for needs demonstration - displays Requires Demonstrating
{{TestStatus|1}} for Open and available - displays Open and Available
{{TestStatus|-1|Text}} displays icon with Text as the tooltip, Text
{{TestStatus|0|Text}} displays icon with Text as the tooltip, Text
{{TestStatus|1|Text}} displays icon with Text as the tooltip, Text


Visit Template:TestStatus/doc to edit this text! (How does this work?)