Difference between revisions of "Template:Further/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Galobtter
(merge in tests from Template:Details/testcases)
imported>Andrybak
(use Template:Test case; better split into sections)
Line 1: Line 1:
 
{{template test cases notice}}
 
{{template test cases notice}}
  
Sandbox examples follow main examples.
+
== Positional parameters ==
 +
{{test case|_format=inline|_showcode=yes}}
 +
{{test case|_format=inline|_showcode=yes|Foo}}
 +
{{test case|_format=inline|_showcode=yes|Foo|Bar}}
 +
{{test case|_format=inline|_showcode=yes|Foo|Bar|Baz}}
 +
{{test case|_format=inline|_showcode=yes|Foo|Bar|Baz|Qux}}
 +
=== Empty positional parameters ===
 +
{{test case|_format=inline|_showcode=yes|}}
 +
{{test case|_format=inline|_showcode=yes|Foo|Bar|Baz|Qux|}}
  
* <code><nowiki>{{further|category=no}}</nowiki></code>
+
== Parameter "topic" ==
** {{further|category=no}}
+
{{test case|_format=inline|_showcode=yes|Foo|Bar|topic=Bar}}
** {{further/sandbox|category=no}}
+
{{test case|_format=inline|_showcode=yes|topic=Foo|Bar|Baz}}
* <code><nowiki>{{further|category=no}}</nowiki></code>
 
** {{further|category=no}}
 
** {{further/sandbox|category=no}}
 
* <code><nowiki>{{further|category=no|Foo}}</nowiki></code>
 
** {{further|category=no|Foo}}
 
** {{further/sandbox|category=no|Foo}}
 
* <code><nowiki>{{further|category=no|Foo|Bar}}</nowiki></code>
 
** {{further|category=no|Foo|Bar}}
 
** {{further/sandbox|category=no|Foo|Bar}}
 
* <code><nowiki>{{further|category=no|Foo|topic=Bar}}</nowiki></code>
 
** {{further|category=no|Foo|topic=Bar}}
 
** {{further/sandbox|category=no|Foo|topic=Bar}}
 
* <code><nowiki>{{further|category=no|topic=Foo|Bar|Baz}}</nowiki></code>
 
** {{further|category=no|topic=Foo|Bar|Baz}}
 
** {{further/sandbox|category=no|topic=Foo|Bar|Baz}}
 
* <code><nowiki>{{further|category=no|Lion#Etymology}}</nowiki></code>
 
** {{further|category=no|Lion#Etymology}}
 
** {{further/sandbox|category=no|Lion#Etymology}}
 
  
== Testing Sandbox ==
+
== With anchor link ==
 +
{{test case|_format=inline|_showcode=yes|Lion#Etymology}}
  
* <code><nowiki>{{further/sandbox|category=no}}</nowiki></code>
+
== Links to File namespace ==
{{further/sandbox|category=no}}
+
{{test case|_format=inline|_showcode=yes|File:Smiley.gif}}
 +
{{test case|_format=inline|_showcode=yes|:File:Smiley.gif}}
  
* <code><nowiki>{{further/sandbox|Foo}}</nowiki></code>
+
== Parameters label1 and label2 ==
{{further/sandbox|Foo}}
+
{{test case|_format=inline|_showcode=yes|label1 = foo|bar|topic = hmm|label2 = label|article2}}
 
+
{{test case|_format=inline|_showcode=yes|label1 = foo|bar|topic = |label2 = label|article2}}
* <code><nowiki>{{further/sandbox|Foo|Bar}}</nowiki></code>
+
{{test case|_format=inline|_showcode=yes|label1 = foo|bar|label2 = label|article2}}
{{further/sandbox|Foo|Bar}}
+
{{test case|_format=inline|_showcode=yes|label1 = foo|bar|label2 = label|article2|a3|l3 = leee3}}
 
 
* <code><nowiki>{{further/sandbox|Foo|Bar|Baz}}</nowiki></code>
 
{{further/sandbox|Foo|Bar|Baz}}
 
 
 
* <code><nowiki>{{further/sandbox|Foo|Bar|Baz|Qux}}</nowiki></code>
 
{{further/sandbox|Foo|Bar|Baz|Qux}}
 
 
 
* <code><nowiki>{{further|Foo|Bar|Baz|Qux|}}</nowiki></code>
 
{{further/sandbox|Foo|Bar|Baz|Qux|}}
 
 
 
* <code><nowiki>{{further/sandbox||category=no}}</nowiki></code>
 
{{further/sandbox||category=no}}
 
 
 
* <code><nowiki>{{further/sandbox|File:Smiley.gif}}</nowiki></code>
 
{{further/sandbox|File:Smiley.gif}}
 
 
 
* <code><nowiki>{{further/sandbox|:File:Smiley.gif}}</nowiki></code>
 
{{further/sandbox|:File:Smiley.gif}}
 
 
 
* <code><nowiki>{{further/sandbox|Lion#Etymology}}</nowiki></code>
 
{{further/sandbox|Lion#Etymology}}
 
 
 
== Testing main template ==
 
 
 
* <code><nowiki>{{further|category=no}}</nowiki></code>
 
{{further|category=no}}
 
 
 
* <code><nowiki>{{further|Foo}}</nowiki></code>
 
{{further|Foo}}
 
 
 
* <code><nowiki>{{further|Foo|Bar}}</nowiki></code>
 
{{further|Foo|Bar}}
 
 
 
* <code><nowiki>{{further|Foo|Bar|Baz}}</nowiki></code>
 
{{further|Foo|Bar|Baz}}
 
 
 
* <code><nowiki>{{further|Foo|Bar|Baz|Qux}}</nowiki></code>
 
{{further|Foo|Bar|Baz|Qux}}
 
 
 
* <code><nowiki>{{further|Foo|Bar|Baz|Qux|}}</nowiki></code>
 
{{further|Foo|Bar|Baz|Qux|}}
 
 
 
* <code><nowiki>{{further||category=no}}</nowiki></code>
 
{{further||category=no}}
 
 
 
* <code><nowiki>{{further|File:Smiley.gif}}</nowiki></code>
 
{{further|File:Smiley.gif}}
 
 
 
* <code><nowiki>{{further|:File:Smiley.gif}}</nowiki></code>
 
{{further|:File:Smiley.gif}}
 
 
 
* <code><nowiki>{{further|Lion#Etymology}}</nowiki></code>
 
{{further|Lion#Etymology}}
 
 
 
==Labels==
 
*{{further/sandbox|label1 = foo|bar|topic = hmm|label2 = label|article2}}
 
*{{further/sandbox|label1 = foo|bar|topic = |label2 = label|article2}}
 
*{{further/sandbox|label1 = foo|bar|label2 = label|article2}}
 
*{{further/sandbox|label1 = foo|bar|label2 = label|article2|a3|l3 = leee3}}
 

Revision as of 18:07, 8 May 2020

Positional parameters

  • {{Further}}Error: no page names specified (help).
  • {{Further/sandbox}}Error: no page names specified (help).
  • {{Further|Foo}}
  • {{Further/sandbox|Foo}}
  • {{Further|Foo|Bar}}
  • {{Further/sandbox|Foo|Bar}}
  • {{Further|Foo|Bar|Baz}}
  • {{Further/sandbox|Foo|Bar|Baz}}
  • {{Further|Foo|Bar|Baz|Qux}}
  • {{Further/sandbox|Foo|Bar|Baz|Qux}}

Empty positional parameters

  • {{Further|}}Error: no page names specified (help).
  • {{Further/sandbox|}}Error: no page names specified (help).
  • {{Further|Foo|Bar|Baz|Qux|}}
  • {{Further/sandbox|Foo|Bar|Baz|Qux|}}

Parameter "topic"

  • {{Further|Foo|Bar|topic=Bar}}
  • {{Further/sandbox|Foo|Bar|topic=Bar}}
  • {{Further|Bar|Baz|topic=Foo}}
  • {{Further/sandbox|Bar|Baz|topic=Foo}}

With anchor link

Links to File namespace

Parameters label1 and label2

  • {{Further|bar|article2|label1=foo|label2=label|topic=hmm}}
  • {{Further/sandbox|bar|article2|label1=foo|label2=label|topic=hmm}}
  • {{Further|bar|article2|label1=foo|label2=label|topic=}}
  • {{Further/sandbox|bar|article2|label1=foo|label2=label|topic=}}
  • {{Further|bar|article2|label1=foo|label2=label}}
  • {{Further/sandbox|bar|article2|label1=foo|label2=label}}
  • {{Further|bar|article2|a3|l3=leee3|label1=foo|label2=label}}
  • {{Further/sandbox|bar|article2|a3|l3=leee3|label1=foo|label2=label}}