Template:Test: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>AntumDeluge Change positional parameter 2 to named parameter "type" |
imported>AntumDeluge Use TestingKey template |
||
| Line 5: | Line 5: | ||
}}{{ |
}}{{ |
||
#ifeq:{{{1}}}|nok|<span style="color:red;">◼</span>: {{#if: {{{type|}}} | {{{type|}}} | }} not ok |
#ifeq:{{{1}}}|nok|<span style="color:red;">◼</span>: {{#if: {{{type|}}} | {{{type|}}} | }} not ok |
||
}}<noinclude> |
}}<noinclude> |
||
== Usage Examples == |
|||
{| class="wikitable" |
|||
! Input || Output |
|||
{{TestingKey}} |
|||
|- |
|||
| <nowiki>{{Test|}}</nowiki> || {{Test|}} |
|||
|- |
|||
| <nowiki>{{Test|ok}}</nowiki> || {{Test|ok}} |
|||
|- |
|||
| <nowiki>{{Test|nok}}</nowiki> || {{Test|nok}} |
|||
|- |
|||
| <nowiki>{{Test||type=collision}}</nowiki> || {{Test||type=collision}} |
|||
|- |
|||
| <nowiki>{{Test|ok|type=collision}}</nowiki> || {{Test|ok|type=collision}} |
|||
|- |
|||
| <nowiki>{{Test|nok|type=collision}}</nowiki> || {{Test|nok|type=collision}} |
|||
|} |
|||
== See Also == |
== See Also == |
||