Template:Test: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>AntumDeluge Add category "RefactoringTemplates" |
imported>AntumDeluge Change positional parameter 2 to named parameter "type" |
||
| Line 1: | Line 1: | ||
{{ |
|||
{{#if:{{{1}}}||<span style="color:orange;">◼</span>: please test {{#if: {{{2|}}} | {{{2|}}} | }} }}{{#ifeq:{{{1}}}|ok|<span style="color:blue;">◼</span>: {{#if: {{{2|}}} | {{{2|}}} | }} ok}}{{#ifeq:{{{1}}}|nok|<span style="color:red;">◼</span>: {{#if: {{{2|}}} | {{{2|}}} | }} not ok}}<noinclude>== Usage Examples == |
|||
#if:{{{1}}}||<span style="color:orange;">◼</span>: please test {{#if: {{{type|}}} | {{{type|}}} | }} |
|||
}}{{ |
|||
#ifeq:{{{1}}}|ok|<span style="color:blue;">◼</span>: {{#if: {{{type|}}} | {{{type|}}} | }} ok |
|||
}}{{ |
|||
#ifeq:{{{1}}}|nok|<span style="color:red;">◼</span>: {{#if: {{{type|}}} | {{{type|}}} | }} not ok |
|||
}}<noinclude>== Usage Examples == |
|||
{| class="wikitable" |
{| class="wikitable" |
||
| Line 10: | Line 16: | ||
| <nowiki>{{Test|nok}}</nowiki> || {{Test|nok}} |
| <nowiki>{{Test|nok}}</nowiki> || {{Test|nok}} |
||
|- |
|- |
||
| <nowiki>{{Test||collision}}</nowiki> || {{Test||collision}} |
| <nowiki>{{Test||type=collision}}</nowiki> || {{Test||type=collision}} |
||
|- |
|- |
||
| <nowiki>{{Test|ok|collision}}</nowiki> || {{Test|ok|collision}} |
| <nowiki>{{Test|ok|type=collision}}</nowiki> || {{Test|ok|type=collision}} |
||
|- |
|- |
||
| <nowiki>{{Test|nok|collision}}</nowiki> || {{Test|nok|collision}} |
| <nowiki>{{Test|nok|type=collision}}</nowiki> || {{Test|nok|type=collision}} |
||
|} |
|} |
||