Template:Test: Difference between revisions

From Arianne
Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
Show examples
imported>AntumDeluge
Clean up whitespace in "testers" parameter
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{
<noinclude>
#if:{{{1}}}||<span style="color:orange;">◼</span>: please test {{#if: {{{type|}}} | {{{type|}}} | }}
{|class="prettytable"
}}{{
|-
#ifeq:{{{1}}}|ok|<span style="color:blue;">◼</span>: {{#if: {{{type|}}} | {{{type|}}} | }} ok
| {{Test|}} || <nowiki>{{Test|}}</nowiki>
}}{{
|-
#ifeq:{{{1}}}|nok|<span style="color:red;">◼</span>: {{#if: {{{type|}}} | {{{type|}}} | }} not ok
| {{Test|ok}} || <nowiki>{{Test|ok}}</nowiki>
}}{{
|-
#ifeq: {{{1|}}} | | | {{#if: {{{testers|}}} | '' (tested by: {{#replace: {{{testers|}}} | &nbsp;&nbsp; | &nbsp; }})'' }}
| {{Test|nok}} || <nowiki>{{Test|nok}}</nowiki>
}}<noinclude>== Usage Examples ==
|}
</noinclude>{{#if:{{{1}}}||<span style="color:orange;">◼</span>: please test}}{{#ifeq:{{{1}}}|ok|<span style="color:blue;">◼</span>: ok}}{{#ifeq:{{{1}}}|nok|<span style="color:red;">◼</span>: not ok}}<noinclude>


'''Basic examples:'''
== Example ==
* new sprite for <creature>dark elf</creature> {{{{PAGENAME}}|}}
* new sprite for <creature>spider</creature> {{{{PAGENAME}}|ok}}
* new sprite for <creature>bat</creature> {{{{PAGENAME}}|nok}}


'''Using ''type'' parameter:'''
{| class="wikitable"
* updated 0_semos_city {{{{PAGENAME}}||type=collision}}
! Input || Output
* updated 0_semos_plains_n {{{{PAGENAME}}|ok|type=portals}}
|-
* replaced grass tiles in 0_semos_road_e {{{{PAGENAME}}|nok|type=graphics}}
| <nowiki>{{Test|}}</nowiki> || {{Test|}}
|-
| <nowiki>{{Test|ok}}</nowiki> || {{Test|ok}}
|-
| <nowiki>{{Test|nok}}</nowiki> || {{Test|nok}}
|}


'''Using ''testers'' parameter:'''
</noinclude>
* added music to 0_ados_wall_n {{{{PAGENAME}}|ok|type=music|testers=foo, bar}}

== Testing Key ==

Use [[Template:TestingKey]].

{{TestingKey}}

== See Also ==

* [[Templates|List of templates]]
* [[Template:TestingKey]]


[[Category:Development]]
[[Category:Testing]]
[[Category:RefactoringTemplates]]

Latest revision as of 23:30, 3 December 2024

Usage Examples

Basic examples:

  • new sprite for <creature>dark elf</creature> : please test
  • new sprite for <creature>spider</creature> : ok
  • new sprite for <creature>bat</creature> : not ok

Using type parameter:

  • updated 0_semos_city : please test collision
  • updated 0_semos_plains_n : portals ok
  • replaced grass tiles in 0_semos_road_e : graphics not ok

Using testers parameter:

  • added music to 0_ados_wall_n : music ok (tested by: {{#replace: foo, bar |    |   }})

Testing Key

Use Template:TestingKey.

Output Input
: please test {{Test|}}
: ok {{Test|ok}}
: not ok {{Test|nok}}
: please test collision {{Test||type=collision}}
: collision ok {{Test|ok|type=collision}}
: collision not ok {{Test|nok|type=collision}}
   |   }}) {{Test|ok|testers=foo, bar}}

See Also