Template:Test: Difference between revisions

From Arianne
Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
mNo edit summary
imported>AntumDeluge
Clean up whitespace in "testers" parameter
 
(12 intermediate revisions by the same user not shown)
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
}}{{
#ifeq: {{{1|}}} | | | {{#if: {{{testers|}}} | '' (tested by: {{#replace: {{{testers|}}} | &nbsp;&nbsp; | &nbsp; }})'' }}
}}<noinclude>== Usage Examples ==


'''Basic examples:'''
{| class="wikitable"
* new sprite for <creature>dark elf</creature> {{{{PAGENAME}}|}}
! Input || Output
* new sprite for <creature>spider</creature> {{{{PAGENAME}}|ok}}
|-
* new sprite for <creature>bat</creature> {{{{PAGENAME}}|nok}}
| <nowiki>{{Test|}}</nowiki> || {{Test|}}

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

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

|-
== Testing Key ==
| <nowiki>{{Test|nok|collision}}</nowiki> || {{Test|nok|collision}}

|}
Use [[Template:TestingKey]].

{{TestingKey}}


== See Also ==
== See Also ==


* [[Templates|List of templates]]
* [[Special:WhatLinksHere/Template:{{PAGENAME}} | Pages using Template:{{PAGENAME}}]]
* [[Template:TestingKey]]




[[Category:Development]]
[[Category:Development]]
[[Category:Testing]]
[[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