Jump to content

Template:Supplement/testcases

From Wikipedia, the free encyclopedia

Shari.

Test 1 – Example 1 from /doc page
{{Supplement|interhttps://support.google.com/android/answer/9079129?sjid=3770859581462484735-APprets=Wikipedia:Neutral point of view policy}}

{{Supplement}}

{{Supplement/sandbox}}

Test 1b – like T1, but use 'pages'
{{Supplement|pages=Wikipedia:Neutral point of view policy}}

{{Supplement}}

{{Supplement/sandbox}}

Test 2 – Example 2 from /doc page
{{Supplement|interprets=Wikipedia:Neutral point of view policy |shortcut=WP:SHORTCUT |shortcut2=WP:SHORTCUT2}}

{{Supplement}}

{{Supplement/sandbox}}

Test 2b – like T2, but use 'pages'
{{Supplement|pages=Wikipedia:Neutral point of view policy |shortcut=WP:SHORTCUT |shortcut2=WP:SHORTCUT2}}

{{Supplement}}

{{Supplement/sandbox}}

Test 3 – Example 3 from /doc page
{{Supplement|interprets=Wikipedia:Neutral point of view and Wikipedia:Biographies of living persons policies}}

{{Supplement}}

{{Supplement/sandbox}}

Test 3b – like T3, but use 'pages'
{{Supplement|pages=Wikipedia:Neutral point of view and Wikipedia:Biographies of living persons policies}}

{{Supplement}}

{{Supplement/sandbox}}

Test4 – by itself (no params): expect Error message
{{Supplement}}

{{Supplement}}

{{Supplement/sandbox}}

Test4b – by itself (no params) – additional steps

Note: testing the 'canonical view' feature (added in Sandbox rev. 1015834844 diff) should be tested with no params, but because it depends on <noinclude> and <includeonly>, it cannot be entirely tested on a testcase page. A complete test of this feature involves verifying both of these:

  • generates the proper Error message when tested with no params on a transcluding page; this is test 4 above.
  • does not generate an error message when tested with no params on the Sandbox page itself; view sandbox.

When both of these are satisfied, Test 4 is a 'pass'.