Template:Test: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>AntumDeluge Add option for second argument |
imported>AntumDeluge mNo edit summary |
||
| 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> |
{{#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 == |
||
== Usage Examples == |
|||
{| class="wikitable" |
{| class="wikitable" |
||
Revision as of 00:30, 27 November 2017
Usage Examples
| Input | Output |
|---|---|
| {{Test|}} | ◼: please test |
| {{Test|ok}} | ◼: ok |
| {{Test|nok}} | ◼: not ok |
| {{Test||collision}} | ◼: please test collision |
| {{Test|ok|collision}} | ◼: collision ok |
| {{Test|nok|collision}} | ◼: collision not ok |