Difference between revisions of "Template:For/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Nihiltres
m (Added non-breaking spaces to gap example code-display because otherwise {{tlx}} doesn't display it)
imported>Andrybak
m (→‎Parameter "category": fix section header level)
 
(9 intermediate revisions by 3 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|OTHER TOPIC}}
 +
----
 +
{{test case|_format=inline|_showcode=yes|OTHER TOPIC|PAGE1}}
 +
----
 +
{{test case|_format=inline|_showcode=yes|OTHER TOPIC|PAGE1|PAGE2}}
 +
----
 +
{{test case|_format=inline|_showcode=yes|OTHER TOPIC|PAGE1|PAGE2|PAGE3}}
 +
----
 +
{{test case|_format=inline|_showcode=yes|OTHER TOPIC|PAGE1|PAGE2|PAGE3|PAGE4}}
  
:{{tlx|For/sandbox|OTHER TOPIC}}
+
=== Empty positional parameters ===
{{For/sandbox|OTHER TOPIC}}  
+
{{test case|_format=inline|_showcode=yes|USE1|PAGE1||PAGE3}}
  
 +
=== With anchor links ===
 +
{{test case|_format=inline|_showcode=yes|OTHER TOPIC|PAGE1#A|PAGE2#B|PAGE3#C|PAGE4#D}}
  
:{{tlx|For/sandbox|OTHER TOPIC|PAGE1}}
+
=== With <nowiki>{{!}}</nowiki> ===
{{For/sandbox|OTHER TOPIC|PAGE1}}
+
{{test case nowiki|format=inline|showcode=yes|<nowiki>{{__TEMPLATENAME__|OTHER TOPIC|PAGE1 (disambiguation){{!}}PAGE1|PAGE2 (disambiguation){{!}}PAGE2|PAGE3 (disambiguation){{!}}PAGE3}}</nowiki>}}
  
 
+
== Parameter "category" ==
:{{tlx|For/sandbox|OTHER TOPIC|PAGE1|PAGE2}}
+
*{{tlx|For<!----->|OTHER TOPIC|PAGE1|PAGE2|5=category=no}} {{For<!----->|OTHER TOPIC|PAGE1|PAGE2|category=no}}
{{For/sandbox|OTHER TOPIC|PAGE1|PAGE2}}
+
*{{tlx|For/sandbox|OTHER TOPIC|PAGE1|PAGE2|5=category=no}} {{For/sandbox|OTHER TOPIC|PAGE1|PAGE2|category=no}}
 
+
----
 
+
*{{tlx|For<!----->|other uses|PAGE1|PAGE2|5=category=no}} {{For<!----->|other uses|PAGE1|PAGE2|category=no}}
:{{tlx|For/sandbox|OTHER TOPIC|PAGE1|PAGE2|PAGE3}}
+
*{{tlx|For/sandbox|other uses|PAGE1|PAGE2|5=category=no}} {{For/sandbox|other uses|PAGE1|PAGE2|category=no}}
{{For/sandbox|OTHER TOPIC|PAGE1|PAGE2|PAGE3}}
 
 
 
 
 
:{{tlx|For/sandbox|OTHER TOPIC|PAGE1|PAGE2|PAGE3|PAGE4}}
 
{{For/sandbox|OTHER TOPIC|PAGE1|PAGE2|PAGE3|PAGE4}}
 
 
 
 
 
:{{tlx|For/sandbox|OTHER TOPIC|PAGE1#A|PAGE2#B|PAGE3#C|PAGE4#D}}
 
{{For/sandbox|OTHER TOPIC|PAGE1#A|PAGE2#B|PAGE3#C|PAGE4#D}}
 
 
 
 
 
:{{tlx|For/sandbox|OTHER TOPIC|PAGE1 (disambiguation){{tl|!}}PAGE1|PAGE2 (disambiguation){{tl|!}}PAGE2|PAGE3 (disambiguation){{tl|!}}PAGE3}}
 
{{For/sandbox|OTHER TOPIC|PAGE1 (disambiguation){{!}}PAGE1|PAGE2 (disambiguation){{!}}PAGE2|PAGE3 (disambiguation){{!}}PAGE3}}
 
 
 
 
 
:{{tlx|For/sandbox|&nbsp;|PAGE1|PAGE2}}
 
{{For/sandbox||PAGE1|PAGE2}}
 
 
 
 
 
{{clear}}
 
 
 
== Testing main template ==
 
 
 
:{{tlx|For|OTHER TOPIC}}
 
{{For|OTHER TOPIC}}  
 
 
 
 
 
:{{tlx|For|OTHER TOPIC|PAGE1}}
 
{{For|OTHER TOPIC|PAGE1}}
 
 
 
 
 
:{{tlx|For|OTHER TOPIC|PAGE1|PAGE2}}
 
{{For|OTHER TOPIC|PAGE1|PAGE2}}
 
 
 
 
 
:{{tlx|For|OTHER TOPIC|PAGE1|PAGE2|PAGE3}}
 
{{For|OTHER TOPIC|PAGE1|PAGE2|PAGE3}}
 
 
 
 
 
:{{tlx|For|OTHER TOPIC|PAGE1|PAGE2|PAGE3|PAGE4}}
 
{{For|OTHER TOPIC|PAGE1|PAGE2|PAGE3|PAGE4}}
 
 
 
 
 
:{{tlx|For/sandbox|OTHER TOPIC|PAGE1#A|PAGE2#B|PAGE3#C|PAGE4#D}}
 
{{For/sandbox|OTHER TOPIC|PAGE1#A|PAGE2#B|PAGE3#C|PAGE4#D}}
 
 
 
 
 
:{{tlx|For|OTHER TOPIC|PAGE1 (disambiguation){{tl|!}}PAGE1|PAGE2 (disambiguation){{tl|!}}PAGE2|PAGE3 (disambiguation){{tl|!}}PAGE3}}
 
{{For|OTHER TOPIC|PAGE1 (disambiguation){{!}}PAGE1|PAGE2 (disambiguation){{!}}PAGE2|PAGE3 (disambiguation){{!}}PAGE3}}
 
 
 
 
 
:{{tlx|For|&nbsp;|PAGE1|PAGE2}}
 
{{For||PAGE1|PAGE2}}
 

Latest revision as of 22:01, 8 May 2020

Positional parameters


  • {{For|OTHER TOPIC|PAGE1}}
  • {{For/sandbox|OTHER TOPIC|PAGE1}}

  • {{For|OTHER TOPIC|PAGE1|PAGE2}}
  • {{For/sandbox|OTHER TOPIC|PAGE1|PAGE2}}

  • {{For|OTHER TOPIC|PAGE1|PAGE2|PAGE3}}
  • {{For/sandbox|OTHER TOPIC|PAGE1|PAGE2|PAGE3}}

  • {{For|OTHER TOPIC|PAGE1|PAGE2|PAGE3|PAGE4}}
  • {{For/sandbox|OTHER TOPIC|PAGE1|PAGE2|PAGE3|PAGE4}}

Empty positional parameters

  • {{For|USE1|PAGE1||PAGE3}}
  • {{For/sandbox|USE1|PAGE1||PAGE3}}

With anchor links

With {{!}}

  • {{For|OTHER TOPIC|PAGE1 (disambiguation){{!}}PAGE1|PAGE2 (disambiguation){{!}}PAGE2|PAGE3 (disambiguation){{!}}PAGE3}}
  • {{For/sandbox|OTHER TOPIC|PAGE1 (disambiguation){{!}}PAGE1|PAGE2 (disambiguation){{!}}PAGE2|PAGE3 (disambiguation){{!}}PAGE3}}

Parameter "category"

  • {{For|OTHER TOPIC|PAGE1|PAGE2|category=no}}
  • {{For/sandbox|OTHER TOPIC|PAGE1|PAGE2|category=no}}

  • {{For|other uses|PAGE1|PAGE2|category=no}}
  • {{For/sandbox|other uses|PAGE1|PAGE2|category=no}}