Difference between revisions of "Template:Further/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Andrybak
imported>Andrybak
(add whitespace for readability)
Line 3: Line 3:
 
== Positional parameters ==
 
== Positional parameters ==
 
{{test case|_format=inline|_showcode=yes}}
 
{{test case|_format=inline|_showcode=yes}}
 +
 
{{test case|_format=inline|_showcode=yes|Foo}}
 
{{test case|_format=inline|_showcode=yes|Foo}}
 +
 
{{test case|_format=inline|_showcode=yes|Foo|Bar}}
 
{{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}}
 +
 
{{test case|_format=inline|_showcode=yes|Foo|Bar|Baz|Qux}}
 
{{test case|_format=inline|_showcode=yes|Foo|Bar|Baz|Qux}}
 +
 
=== Empty positional parameters ===
 
=== Empty positional parameters ===
 
{{test case|_format=inline|_showcode=yes|}}
 
{{test case|_format=inline|_showcode=yes|}}
 +
 
{{test case|_format=inline|_showcode=yes|Foo|Bar|Baz|Qux|}}
 
{{test case|_format=inline|_showcode=yes|Foo|Bar|Baz|Qux|}}
  
 
== Parameter "topic" ==
 
== Parameter "topic" ==
 
{{test case|_format=inline|_showcode=yes|Foo|Bar|topic=Bar}}
 
{{test case|_format=inline|_showcode=yes|Foo|Bar|topic=Bar}}
 +
 
{{test case|_format=inline|_showcode=yes|topic=Foo|Bar|Baz}}
 
{{test case|_format=inline|_showcode=yes|topic=Foo|Bar|Baz}}
  
 
== With anchor link ==
 
== With anchor link ==
 
{{test case|_format=inline|_showcode=yes|Lion#Etymology}}
 
{{test case|_format=inline|_showcode=yes|Lion#Etymology}}
 +
 
{{test case|_format=inline|_showcode=yes|Wikipedia:Project_namespace#Essay_pages}}
 
{{test case|_format=inline|_showcode=yes|Wikipedia:Project_namespace#Essay_pages}}
  
 
== Links to File namespace ==
 
== Links to File namespace ==
 
{{test case|_format=inline|_showcode=yes|File:Smiley.gif}}
 
{{test case|_format=inline|_showcode=yes|File:Smiley.gif}}
 +
 
{{test case|_format=inline|_showcode=yes|:File:Smiley.gif}}
 
{{test case|_format=inline|_showcode=yes|:File:Smiley.gif}}
  
 
== Parameters label1 and label2 ==
 
== Parameters label1 and label2 ==
 
{{test case|_format=inline|_showcode=yes|label1 = foo|bar|topic = hmm|label2 = label|article2}}
 
{{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}}
 
{{test case|_format=inline|_showcode=yes|label1 = foo|bar|topic = |label2 = label|article2}}
 +
 
{{test case|_format=inline|_showcode=yes|label1 = foo|bar|label2 = label|article2}}
 
{{test case|_format=inline|_showcode=yes|label1 = foo|bar|label2 = label|article2}}
 +
 
{{test case|_format=inline|_showcode=yes|label1 = foo|bar|label2 = label|article2|a3|l3 = leee3}}
 
{{test case|_format=inline|_showcode=yes|label1 = foo|bar|label2 = label|article2|a3|l3 = leee3}}

Revision as of 18:12, 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}}