Difference between revisions of "Template:Compact ToC/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(divs)
imported>Sardanaphalus
(page header, {{tc}}, {{=}}, parameter values, added test)
Line 1: Line 1:
<div style="padding-bottom:1.0em;">{{Testcases notice}}</div>
+
{{Testcases page header}}
  
 
<div style="padding-bottom:1.0em;">
 
<div style="padding-bottom:1.0em;">
Line 8: Line 8:
  
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
{{tlx|Compact ToC|side&#61;yes|j&#61;|q&#61;}}
+
{{tc||side{{=}}on|j{{=}}|q{{=}}}}
{{Compact ToC|side=yes|j=|q=}}
+
{{Compact ToC |side=on|j=|q=}}
{{Compact ToC/sandbox|side=yes|j=|q=}}
+
{{Compact ToC/sandbox |side=on|j=|q=}}
 
</div>
 
</div>
  
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
{{tlx|Compact ToC|top&#61;yes|side&#61;yes}}
+
{{tc||top{{=}}include|side{{=}}on}}
{{Compact ToC|top=yes|side=yes}}
+
{{Compact ToC |top=include|side=on}}
{{Compact ToC/sandbox|top=yes|side=yes}}
+
{{Compact ToC/sandbox |top=include|side=on}}
 
</div>
 
</div>
  
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
{{tlx|Compact ToC|side&#61;yes|j&#61;J|q&#61;Q}}
+
{{tc||side{{=}}on|j{{=}}J|q{{=}}Q}}
{{Compact ToC|side=yes|j=J|q=Q}}
+
{{Compact ToC |side=on|j=J|q=Q}}
{{Compact ToC/sandbox|side=yes|j=J|q=Q}}
+
{{Compact ToC/sandbox |side=on|j=J|q=Q}}
 
</div>
 
</div>
  
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
{{tlx|Compact ToC|short1|top&#61;yes}}
+
{{tc||short1|top{{=}}include}}
{{Compact ToC|short1|top=yes}}
+
{{Compact ToC |short1|top=include}}
{{Compact ToC/sandbox|short1|top=yes}}
+
{{Compact ToC/sandbox |short1|top=include}}
 
</div>
 
</div>
  
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
{{tlx|Compact ToC|side&#61;yes|x&#61;<nowiki>[[#X-Z|X-Z]]</nowiki>|y&#61;|z&#61;}}
+
{{tc||side{{=}}on|x{{=}}<nowiki>[[#X-Z|X-Z]]</nowiki>|y{{=}}|z{{=}}}}
{{Compact ToC|side=yes|x=[[#X-Z|X-Z]]|y=|z=}}
+
{{Compact ToC |side=on|x=[[#X-Z|X-Z]]|y=|z=}}
{{Compact ToC/sandbox|side=yes|x=[[#X-Z|X-Z]]|y=|z=}}
+
{{Compact ToC/sandbox |side=on|x=[[#X-Z|X-Z]]|y=|z=}}
 
</div>
 
</div>
  
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
{{tlx|Compact ToC|name&#61;<nowiki>[[</nowiki><var>Articlename</var><nowiki>]]</nowiki>|side&#61;yes|n&#61;<nowiki>[[</nowiki><var>Articlename</var> (N–Z)#N|N<nowiki>]]</nowiki>|o&#61;<nowiki>[[</nowiki><var>Articlename</var> (N–Z)#O|O<nowiki>]]</nowiki>|...|z&#61;<nowiki>[[</nowiki><var>Articlename</var> (N–Z)#Z|Z<nowiki>]]</nowiki>}}
+
{{tc||name{{=}}<nowiki>[[</nowiki><var>Articlename</var><nowiki>]]</nowiki>|side{{=}}on|n{{=}}<nowiki>[[</nowiki><var>Articlename</var> (N–Z)#N|N<nowiki>]]</nowiki>|o{{=}}<nowiki>[[</nowiki><var>Articlename</var> (N–Z)#O|O<nowiki>]]</nowiki>|...|z{{=}}<nowiki>[[</nowiki><var>Articlename</var> (N–Z)#Z|Z<nowiki>]]</nowiki>}}
 +
{{Compact ToC |name=[[Articlename]]|side=on|n=[[Article (N–Z)#N|N]]|o=[[Articlename (N–Z)#O|O]]|p=[[Articlename (N–Z)#P|P]]|q=[[Articlename (N–Z)#Q|Q]]|r=[[Articlename (N–Z)#R|R]]|s=[[Articlename (N–Z)#S|S]]|t=[[Articlename (N–Z)#T|T]]|u=[[Articlename (N–Z)#U|U]]|v=[[Articlename (N–Z)#V|V]]|w=[[Articlename (N–Z)#W|W]]|x=[[Articlename (N–Z)#X|X]]|y=[[Articlename (N–Z)#Y|Y]]|z=[[Articlename (N–Z)#Z|Z]]}}
 +
{{Compact ToC/sandbox |name=[[Articlename]]|side=on|n=[[Article (N–Z)#N|N]]|o=[[Articlename (N–Z)#O|O]]|p=[[Articlename (N–Z)#P|P]]|q=[[Articlename (N–Z)#Q|Q]]|r=[[Articlename (N–Z)#R|R]]|s=[[Articlename (N–Z)#S|S]]|t=[[Articlename (N–Z)#T|T]]|u=[[Articlename (N–Z)#U|U]]|v=[[Articlename (N–Z)#V|V]]|w=[[Articlename (N–Z)#W|W]]|x=[[Articlename (N–Z)#X|X]]|y=[[Articlename (N–Z)#Y|Y]]|z=[[Articlename (N–Z)#Z|Z]]}}
 +
</div>
  
{{Compact ToC|name=[[Articlename]]|side=yes|n=[[Article (N–Z)#N|N]]|o=[[Articlename (N–Z)#O|O]]|p=[[Articlename (N–Z)#P|P]]|q=[[Articlename (N–Z)#Q|Q]]|r=[[Articlename (N–Z)#R|R]]|s=[[Articlename (N–Z)#S|S]]|t=[[Articlename (N–Z)#T|T]]|u=[[Articlename (N–Z)#U|U]]|v=[[Articlename (N–Z)#V|V]]|w=[[Articlename (N–Z)#W|W]]|x=[[Articlename (N–Z)#X|X]]|y=[[Articlename (N–Z)#Y|Y]]|z=[[Articlename (N–Z)#Z|Z]]}}
+
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
 
+
{{tc||side{{=}}on|n{{=}}<nowiki>[[</nowiki><var>Articlename</var> (N–Z)|&amp;nbsp;N–Z <small>(next page)</small><nowiki>]]</nowiki>|o{{=}}|p{{=}}|...|z{{=}}}}
{{Compact ToC/sandbox|name=[[Articlename]]|side=yes|n=[[Article (N–Z)#N|N]]|o=[[Articlename (N–Z)#O|O]]|p=[[Articlename (N–Z)#P|P]]|q=[[Articlename (N–Z)#Q|Q]]|r=[[Articlename (N–Z)#R|R]]|s=[[Articlename (N–Z)#S|S]]|t=[[Articlename (N–Z)#T|T]]|u=[[Articlename (N–Z)#U|U]]|v=[[Articlename (N–Z)#V|V]]|w=[[Articlename (N–Z)#W|W]]|x=[[Articlename (N–Z)#X|X]]|y=[[Articlename (N–Z)#Y|Y]]|z=[[Articlename (N–Z)#Z|Z]]}}
+
{{Compact ToC |side=on|n=[[Articlename (N–Z)|&nbsp;N–Z <small>(next page)</small>]]|o=|p=|q=|r=|s=|t=|u=|v=|w=|x=|y=|z=}}
 +
{{Compact ToC/sandbox |side=on|n=[[Articlename (N–Z)|&nbsp;N–Z <small>(next page)</small>]]|o=|p=|q=|r=|s=|t=|u=|v=|w=|x=|y=|z=}}
 
</div>
 
</div>
  
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
{{tlx|Compact ToC|side&#61;yes|n&#61;<nowiki>[[</nowiki><var>Articlename</var> (N–Z)|&amp;nbsp;N–Z <small>(next page)</small><nowiki>]]</nowiki>|o&#61;|p&#61;|...|z&#61;}}
+
{{tc||name{{=}}omit|center{{=}}true|top{{=}}true|seealso{{=}}include|notes{{=}}include|custom1{{=}}New section|custom2{{=}}Additional section}}
{{Compact ToC|side=yes|n=[[Articlename (N–Z)|&nbsp;N–Z <small>(next page)</small>]]|o=|p=|q=|r=|s=|t=|u=|v=|w=|x=|y=|z=}}
+
{{Compact ToC |name=omit|center=true|top=true|seealso=include|notes=include|custom1=New section|custom2=Additional section}}
{{Compact ToC/sandbox|side=yes|n=[[Articlename (N–Z)|&nbsp;N–Z <small>(next page)</small>]]|o=|p=|q=|r=|s=|t=|u=|v=|w=|x=|y=|z=}}
+
{{Compact ToC/sandbox |name=omit|center=true|top=true|seealso=include|notes=include|custom1=New section|custom2=Additional section}}
 
</div>
 
</div>
  
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
{{tlx|Compact ToC|name&#61;no|center&#61;yes|top&#61;yes|seealso&#61;yes|notes&#61;yes|custom1&#61;New section|custom2&#61;Additional section}}
+
{{tc||name{{=}}omit|center{{=}}true|top{{=}}true|seealso{{=}}include|notes{{=}}include|custom1{{=}}New section|custom1name{{=}}Custom section name|custom2{{=}}Outside page|custom2link{{=}}Main Page}}
{{Compact ToC|name=no|center=yes|top=yes|seealso=yes|notes=yes|custom1=New section|custom2=Additional section}}
+
{{Compact ToC |name=omit|center=true|top=true|seealso=true|notes=include|custom1=New section|custom1name=Custom section name|custom2=Outside page|custom2link=Main Page}}
{{Compact ToC/sandbox|name=no|center=yes|top=yes|seealso=yes|notes=yes|custom1=New section|custom2=Additional section}}
+
{{Compact ToC/sandbox |name=omit|center=true|top=true|seealso=true|notes=include|custom1=New section|custom1name=Custom section name|custom2=Outside page|custom2link=Main Page}}
 
</div>
 
</div>
  
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
{{tlx|Compact ToC|name&#61;no|center&#61;yes|top&#61;yes|seealso&#61;yes|notes&#61;yes|custom1&#61;New section|custom1name&#61;Custom section name|custom2&#61;Outside page|custom2link&#61;Main Page}}
+
{{tc||center{{=}}true|align{{=}}center|top{{=}}true|seealso{{=}}include<br/>|pre1{{=}}Scope of list|pre2{{=}}Abbreviations used|prebreak{{=}}&lt;br><br/>|custom1{{=}}Popular entries|custom2{{=}}Excluded entries|notes{{=}}include}}
{{Compact ToC|name=no|center=yes|top=yes|seealso=yes|notes=yes|custom1=New section|custom1name=Custom section name|custom2=Outside page|custom2link=Main Page}}
+
{{Compact ToC |center=true|align=center|top=true|seealso=include|pre1=Scope of list|pre2=Abbreviations used|prebreak=<br>|custom1=Popular entries|custom2=Excluded entries|notes=include}}
{{Compact ToC/sandbox|name=no|center=yes|top=yes|seealso=yes|notes=yes|custom1=New section|custom1name=Custom section name|custom2=Outside page|custom2link=Main Page}}
+
{{Compact ToC/sandbox |center=true|align=center|top=true|seealso=include|pre1=Scope of list|pre2=Abbreviations used|prebreak=<br>|custom1=Popular entries|custom2=Excluded entries|notes=include}}
 
</div>
 
</div>
  
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
{{tlx|Compact ToC|center&#61;yes|align&#61;center|top&#61;yes|seealso&#61;yes<br>|pre1&#61;Scope of list|pre2&#61;Abbreviations used|prebreak&#61;&lt;br><br>|custom1&#61;Popular entries|custom2&#61;Excluded entries|notes&#61;yes}}
+
{{tc||center{{=}}on|align{{=}}center|top{{=}}include|seealso{{=}}include<br/>|pre1{{=}}Scope of list|pre2{{=}}Abbreviations used|prebreak{{=}}&lt;br><br>|custom1{{=}}Popular entries|custom2{{=}}Excluded entries|sep{{=}}'''<nowiki>'''&amp;middot;'''</nowiki>'''}}
{{Compact ToC|center=yes|align=center|top=yes|seealso=yes|pre1=Scope of list|pre2=Abbreviations used|prebreak=<br>|custom1=Popular entries|custom2=Excluded entries|notes=yes}}
+
{{Compact ToC |center=on|align=center|top=include|seealso=include|pre1=Scope of list|pre2=Abbreviations used|prebreak=<br>|custom1=Popular entries|custom2=Excluded entries|notes=yes|sep='''·'''}}
{{Compact ToC/sandbox|center=yes|align=center|top=yes|seealso=yes|pre1=Scope of list|pre2=Abbreviations used|prebreak=<br>|custom1=Popular entries|custom2=Excluded entries|notes=yes}}
+
{{Compact ToC/sandbox |center=on|align=center|top=include|seealso=include|pre1=Scope of list|pre2=Abbreviations used|prebreak=<br>|custom1=Popular entries|custom2=Excluded entries|notes=yes|sep='''·'''}}
 
</div>
 
</div>
  
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
{{tlx|Compact ToC|center&#61;yes|align&#61;center|top&#61;yes|seealso&#61;yes<br>|pre1&#61;Scope of list|pre2&#61;Abbreviations used|prebreak&#61;&lt;br><br>|custom1&#61;Popular entries|custom2&#61;Excluded entries|sep&#61;'''<nowiki>'''&amp;middot;'''</nowiki>'''}}
+
{{tc||short1}}
{{Compact ToC|center=yes|align=center|top=yes|seealso=yes|pre1=Scope of list|pre2=Abbreviations used|prebreak=<br>|custom1=Popular entries|custom2=Excluded entries|notes=yes|sep='''·'''}}
+
{{Compact ToC |short1}}
{{Compact ToC/sandbox|center=yes|align=center|top=yes|seealso=yes|pre1=Scope of list|pre2=Abbreviations used|prebreak=<br>|custom1=Popular entries|custom2=Excluded entries|notes=yes|sep='''·'''}}
+
{{Compact ToC/sandbox |short1}}
 
</div>
 
</div>
  
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
{{tlx|Compact ToC|short1}}
+
{{tc||top{{=}}true}} <!--Example: top=true -->
{{Compact ToC|short1}}
+
{{Compact ToC |top=true}}
{{Compact ToC/sandbox|short1}}
+
{{Compact ToC/sandbox |top=true}}
 
</div>
 
</div>
  
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
{{tlx|Compact ToC|top&#61;yes}} <!--Example: top=yes -->
+
{{tc|…|side{{=}}on|sym{{=}}include|num{{=}}include|refs{{=}}include|seealso{{=}}include|custom1{{=}}Other}}
{{Compact ToC|top=yes}}
+
{{Compact ToC |side=on|sym=include|num=include|refs=include|custom1=Other}}
{{Compact ToC/sandbox|top=yes}}
+
{{Compact ToC/sandbox |side=on|sym=include|num=include|refs=include|custom1=Other}}
 
</div>
 
</div>
  
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
{{tlx|Compact ToC|side&#61;yes|sym&#61;yes|num&#61;yes|refs&#61;yes|seealso&#61;yes|custom1&#61;Other}}
+
{{tc||name{{=}}Directory|top{{=}}off|refs{{=}}include|notes{{=}}include|extlinks{{=}}include}}
{{Compact ToC|side=yes|sym=yes|num=yes|refs=yes|custom1=Other}}
+
{{Compact ToC |name=Directory|top=off|refs=include|notes=include|extlinks=include}}
{{Compact ToC/sandbox|side=yes|sym=yes|num=yes|refs=yes|custom1=Other}}
+
{{Compact ToC/sandbox |name=Directory|top=off|refs=include|notes=include|extlinks=include}}
 
</div>
 
</div>
  
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
{{tlx|Compact ToC|name&#61;Directory|top&#61;no|refs&#61;yes|notes&#61;yes|extlinks&#61;yes}}
+
{{tc||name{{=}}omit|side{{=}}on|right{{=}}on|symnum{{=}}include|seealso{{=}}include}}
{{Compact ToC|name=Directory|top=no|refs=yes|notes=yes|extlinks=yes}}
+
{{Compact ToC |name=omit|side=on|right=on|symnum=include|seealso=include}}<br style="clear:right;" />
{{Compact ToC/sandbox|name=Directory|top=no|refs=yes|notes=yes|extlinks=yes}}
+
{{Compact ToC/sandbox |name=omit|side=on|right=on|symnum=include|seealso=include}}<br style="clear:right;" />
 
</div>
 
</div>
  
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
{{tlx|Compact ToC|name&#61;no|side&#61;yes|right&#61;yes|symnum&#61;yes|seealso&#61;yes}}
+
{{tc||short1|num{{=}}include|sym{{=}}include|seealso{{=}}include|notesfirst{{=}}on|further{{=}}include|extlinks{{=}}include}}
{{Compact ToC|name=no|side=yes|right=yes|symnum=yes|seealso=yes}}<br style="clear:right;" />
+
{{Compact ToC |short1|num=include|sym=include|seealso=include|notesfirst=on|further=include|extlinks=include}}
{{Compact ToC/sandbox|name=no|side=yes|right=yes|symnum=yes|seealso=yes}}<br style="clear:right;" />
+
{{Compact ToC/sandbox |short1|num=include|sym=include|seealso=include|notesfirst=on|further=include|extlinks=include}}
 
</div>
 
</div>
  
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
 
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
{{tlx|Compact ToC|short1|num&#61;yes|sym&#61;yes|seealso&#61;yes|notesfirst&#61;yes|further&#61;yes|extlinks&#61;yes}}
+
{{tc||titlepadding{{=}}0 3.0em 0 0|side{{=}}on|q{{=}}|x{{=}}|z{{=}}}}
{{Compact ToC|short1|num=yes|sym=yes|seealso=yes|notesfirst=yes|further=yes|extlinks=yes}}
+
{{Compact ToC |titlepadding=0 3.0em 0 0|side=on|q=|x=|z=}}
{{Compact ToC/sandbox|short1|num=yes|sym=yes|seealso=yes|notesfirst=yes|further=yes|extlinks=yes}}
+
{{Compact ToC/sandbox |titlepadding=0 3.0em 0 0|side=on|q=|x=|z=}}
 
</div>
 
</div>

Revision as of 09:35, 6 October 2014

Template:Testcases page header

For each test,

upper output = main
lower output = sandbox

{{…|side=on|j=|q=}}

{{…|top=include|side=on}}

{{…|side=on|j=J|q=Q}}

{{…|short1|top=include}}

{{…|side=on|x=[[#X-Z|X-Z]]|y=|z=}}

{{…|name=[[Articlename]]|side=on|n=[[Articlename (N–Z)#N|N]]|o=[[Articlename (N–Z)#O|O]]|...|z=[[Articlename (N–Z)#Z}}

{{…|side=on|n=[[Articlename (N–Z)|&nbsp;N–Z (next page)]]|o=|p=|...|z=}}

{{…|name=omit|center=true|top=true|seealso=include|notes=include|custom1=New section|custom2=Additional section}}

{{…|name=omit|center=true|top=true|seealso=include|notes=include|custom1=New section|custom1name=Custom section name|custom2=Outside page}}

{{…|center=true|align=center|top=true|seealso=include
|pre1=Scope of list|pre2=Abbreviations used|prebreak=<br>
|custom1=Popular entries}}

{{…|center=on|align=center|top=include|seealso=include
|pre1=Scope of list|pre2=Abbreviations used|prebreak=<br>
|custom1=Popular entries}}

{{…|short1}}

{{…|top=true}}

{{…|side=on|sym=include|num=include|refs=include|seealso=include|custom1=Other}}

{{…|name=Directory|top=off|refs=include|notes=include|extlinks=include}}

{{…|name=omit|side=on|right=on|symnum=include|seealso=include}}



{{…|short1|num=include|sym=include|seealso=include|notesfirst=on|further=include|extlinks=include}}

{{…|titlepadding=0 3.0em 0 0|side=on|q=|x=|z=}}