Difference between revisions of "Template:Further/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Alex 21
m (AlexTheWhovian moved page Template:Further information/testcases to Template:Further/testcases without leaving a redirect: WP:RMTR)
imported>Andrybak
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{template test cases notice}}
 
{{template test cases notice}}
  
== Testing sandbox version ==
+
== Positional parameters ==
 +
{{test case|_format=inline|_showcode=yes|category=false}}
  
* <code><nowiki>{{further/sandbox|category=no}}</nowiki></code>
+
{{test case|_format=inline|_showcode=yes|Foo}}
{{further/sandbox|category=no}}
 
  
* <code><nowiki>{{further/sandbox|Foo}}</nowiki></code>
+
{{test case|_format=inline|_showcode=yes|Foo|Bar}}
{{further/sandbox|Foo}}
 
  
* <code><nowiki>{{further/sandbox|Foo|Bar}}</nowiki></code>
+
{{test case|_format=inline|_showcode=yes|Foo|Bar|Baz}}
{{further/sandbox|Foo|Bar}}
 
  
* <code><nowiki>{{further/sandbox|Foo|Bar|Baz}}</nowiki></code>
+
{{test case|_format=inline|_showcode=yes|Foo|Bar|Baz|Qux}}
{{further/sandbox|Foo|Bar|Baz}}
 
  
* <code><nowiki>{{further/sandbox|Foo|Bar|Baz|Qux}}</nowiki></code>
+
=== Empty positional parameters ===
{{further/sandbox|Foo|Bar|Baz|Qux}}
+
{{test case|_format=inline|_showcode=yes||category=false}}
  
* <code><nowiki>{{further|Foo|Bar|Baz|Qux|}}</nowiki></code>
+
{{test case|_format=inline|_showcode=yes|Foo|Bar|Baz|Qux|}}
{{further/sandbox|Foo|Bar|Baz|Qux|}}
 
  
* <code><nowiki>{{further/sandbox||category=no}}</nowiki></code>
+
== Parameter "topic" ==
{{further/sandbox||category=no}}
+
{{test case|_format=inline|_showcode=yes|Foo|Bar|topic=Bar}}
  
* <code><nowiki>{{further/sandbox|File:Smiley.gif}}</nowiki></code>
+
{{test case|_format=inline|_showcode=yes|topic=Foo|Bar|Baz}}
{{further/sandbox|File:Smiley.gif}}
 
  
* <code><nowiki>{{further/sandbox|:File:Smiley.gif}}</nowiki></code>
+
== With anchor link ==
{{further/sandbox|:File:Smiley.gif}}
+
{{test case|_format=inline|_showcode=yes|Lion#Etymology}}
  
* <code><nowiki>{{further/sandbox|Lion#Etymology}}</nowiki></code>
+
{{test case|_format=inline|_showcode=yes|Wikipedia:Project_namespace#Essay_pages}}
{{further/sandbox|Lion#Etymology}}
 
  
== Testing main template ==
+
== Links to File namespace ==
 +
{{test case|_format=inline|_showcode=yes|File:Smiley.gif}}
  
* <code><nowiki>{{further|category=no}}</nowiki></code>
+
{{test case|_format=inline|_showcode=yes|:File:Smiley.gif}}
{{further|category=no}}
 
  
* <code><nowiki>{{further|Foo}}</nowiki></code>
+
== Parameters label1 and label2 ==
{{further|Foo}}
+
{{test case|_format=inline|_showcode=yes|label1 = foo|bar|topic = hmm|label2 = label|article2}}
  
* <code><nowiki>{{further|Foo|Bar}}</nowiki></code>
+
{{test case|_format=inline|_showcode=yes|label1 = foo|bar|topic = |label2 = label|article2}}
{{further|Foo|Bar}}
 
  
* <code><nowiki>{{further|Foo|Bar|Baz}}</nowiki></code>
+
{{test case|_format=inline|_showcode=yes|label1 = foo|bar|label2 = label|article2}}
{{further|Foo|Bar|Baz}}
 
  
* <code><nowiki>{{further|Foo|Bar|Baz|Qux}}</nowiki></code>
+
{{test case|_format=inline|_showcode=yes|label1 = foo|bar|label2 = label|article2|a3|l3 = leee3}}
{{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}}
 

Latest revision as of 13:42, 4 July 2020

Positional parameters

  • {{Further|category=false}}Error: no page names specified (help).
  • {{Further/sandbox|category=false}}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||category=false}}Error: no page names specified (help).
  • {{Further/sandbox||category=false}}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}}