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

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(page header, {{tc}}, {{=}}, parameter values, added test)
imported>Sardanaphalus
(Aligned table, formatting, correction)
Line 1: Line 1:
 
{{Testcases page header}}
 
{{Testcases page header}}
  
<div style="padding-bottom:1.0em;">
+
----
 
For each test,  
 
For each test,  
 
: upper output = main
 
: upper output = main
 
: lower output = sandbox
 
: lower output = sandbox
</div>
+
----
  
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
+
{{Aligned table
{{tc|…|side{{=}}on|j{{=}}|q{{=}}}}
+
|cols=1
{{Compact ToC |side=on|j=|q=}}
 
{{Compact ToC/sandbox |side=on|j=|q=}}
 
</div>
 
  
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
+
| <br/><br/>{{tc|…&nbsp;|side{{=}}on&nbsp;|j{{=}}|q{{=}}}}
{{tc|…|top{{=}}include|side{{=}}on}}
+
| {{Compact ToC |side=on |j=|q=}}
{{Compact ToC |top=include|side=on}}
+
| {{Compact ToC/sandbox |side=on |j=|q=}}
{{Compact ToC/sandbox |top=include|side=on}}
 
</div>
 
  
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
+
| <br/><br/>{{tc|…&nbsp;|side{{=}}on&nbsp;|top{{=}}include}}
{{tc|…|side{{=}}on|j{{=}}J|q{{=}}Q}}
+
| {{Compact ToC |side=on |top=include}}
{{Compact ToC |side=on|j=J|q=Q}}
+
| {{Compact ToC/sandbox |side=on |top=include}}
{{Compact ToC/sandbox |side=on|j=J|q=Q}}
 
</div>
 
  
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
+
| <br/><br/>{{tc|…&nbsp;|side{{=}}on|j{{=}}J|q{{=}}Q}}
{{tc|…|short1|top{{=}}include}}
+
| {{Compact ToC |side=on|j=J|q=Q}}
{{Compact ToC |short1|top=include}}
+
| {{Compact ToC/sandbox |side=on|j=J|q=Q}}
{{Compact ToC/sandbox |short1|top=include}}
 
</div>
 
  
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
+
| <br/><br/>{{tc|…&nbsp;|short1&nbsp;|top{{=}}include}}
{{tc|…|side{{=}}on|x{{=}}<nowiki>[[#X-Z|X-Z]]</nowiki>|y{{=}}|z{{=}}}}
+
| {{Compact ToC |short1 |top=include}}
{{Compact ToC |side=on|x=[[#X-Z|X-Z]]|y=|z=}}
+
| {{Compact ToC/sandbox |short1 |top=include}}
{{Compact ToC/sandbox |side=on|x=[[#X-Z|X-Z]]|y=|z=}}
 
</div>
 
  
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
+
| <br/><br/>{{tc|…&nbsp;|side{{=}}on&nbsp;|x{{=}}<nowiki>[[#X-Z|X-Z]]</nowiki>|y{{=}}|z{{=}}}}
{{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 |side=on |x=[[#X-Z|X-Z]]|y=|z=}}
{{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 |side=on |x=[[#X-Z|X-Z]]|y=|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>
 
  
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
+
| <br/><br/>{{tc|…&nbsp;|side{{=}}on&nbsp;|name{{=}}<nowiki>[[</nowiki><var>Articlename</var><nowiki>]]</nowiki>&nbsp;|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>}}
{{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 |side=on |name=[[Articlename]] |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 |name=[[Articlename]] |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 |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 style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
+
| <br/><br/>{{tc|…&nbsp;|side{{=}}on&nbsp;|n{{=}}{{((}}<var>Articlename</var> (N–Z)|&amp;nbsp;N–Z {{braces|small{{!}}(next page)}}{{))}}&nbsp;|o{{=}}|p{{=}}|…|z{{=}}}}
{{tc|…|name{{=}}omit|center{{=}}true|top{{=}}true|seealso{{=}}include|notes{{=}}include|custom1{{=}}New section|custom2{{=}}Additional section}}
+
| {{Compact ToC |side=on |n=[[Articlename (N–Z)|&nbsp;N–Z {{small|(next page)}}]] |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=on |n=[[Articlename (N–Z)|&nbsp;N–Z {{small|(next page)}}]] |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 style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
+
| <br/><br/>{{tc|…&nbsp;|center{{=}}true&nbsp;|name{{=}}omit&nbsp;|top{{=}}include|seealso{{=}}include|notes{{=}}include&nbsp;|custom1{{=}}New section|custom2{{=}}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 |center=true |name=omit |top=include|seealso=include|notes=include |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 |center=true |name=omit |top=include|seealso=include|notes=include |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 style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
+
| <br/><br/>{{tc|…&nbsp;|center{{=}}true&nbsp;|name{{=}}omit&nbsp;|top{{=}}include|seealso{{=}}include|notes{{=}}include&nbsp;|custom1{{=}}New section|custom1name{{=}}Custom section name|custom2{{=}}Outside page|custom2link{{=}}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 |center=true |name=omit |top=include|seealso=true|notes=include |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 |center=true |name=omit |top=include|seealso=true|notes=include |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 style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
+
| <br/><br/>{{tc|…&nbsp;|center{{=}}true|align{{=}}center&nbsp;|top{{=}}include|seealso{{=}}include&nbsp;|pre1{{=}}Scope of list|pre2{{=}}Abbreviations used|prebreak{{=}}<nowiki><br/></nowiki>&nbsp;|custom1{{=}}Popular entries|custom2{{=}}Excluded entries|notes{{=}}include}}
{{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=true|align=center |top=include|seealso=include|notes=include |pre1=Scope of list|pre2=Abbreviations used|prebreak=<br/> |custom1=Popular entries|custom2=Excluded entries}}
{{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=true|align=center |top=include|seealso=include|notes=include |pre1=Scope of list|pre2=Abbreviations used|prebreak=<br/> |custom1=Popular entries|custom2=Excluded entries}}
{{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 style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
+
| <br/><br/>{{tc|…&nbsp;|center{{=}}on|align{{=}}center&nbsp;|top{{=}}include|seealso{{=}}include|notes{{=}}include&nbsp;|pre1{{=}}Scope of list|pre2{{=}}Abbreviations used|prebreak{{=}}<nowiki><br/></nowiki>&nbsp;|custom1{{=}}Popular entries|custom2{{=}}Excluded entries|sep{{=}}'''<nowiki>'''&amp;middot;'''</nowiki>'''}}
{{tc||short1}}
+
| {{Compact ToC |center=on|align=center |top=include|seealso=include|notes=include |pre1=Scope of list|pre2=Abbreviations used|prebreak=<br/> |custom1=Popular entries|custom2=Excluded entries|sep='''·'''}}
{{Compact ToC |short1}}
+
| {{Compact ToC/sandbox |center=on|align=center |top=include|seealso=include|notes=include |pre1=Scope of list|pre2=Abbreviations used|prebreak=<br/> |custom1=Popular entries|custom2=Excluded entries|sep='''·'''}}
{{Compact ToC/sandbox |short1}}
 
</div>
 
  
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
+
| <br/><br/>{{tc|…&nbsp;|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 style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
+
| <br/><br/>{{tc|…&nbsp;|top{{=}}include}} <!-- Example: top=include -->
{{tc|…|side{{=}}on|sym{{=}}include|num{{=}}include|refs{{=}}include|seealso{{=}}include|custom1{{=}}Other}}
+
| {{Compact ToC |top=include}}
{{Compact ToC |side=on|sym=include|num=include|refs=include|custom1=Other}}
+
| {{Compact ToC/sandbox |top=include}}
{{Compact ToC/sandbox |side=on|sym=include|num=include|refs=include|custom1=Other}}
 
</div>
 
  
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
+
| <br/><br/>{{tc|…&nbsp;|side{{=}}on&nbsp;|sym{{=}}include|num{{=}}include|refs{{=}}include|seealso{{=}}include&nbsp;|custom1{{=}}Other}}
{{tc|…|name{{=}}Directory|top{{=}}off|refs{{=}}include|notes{{=}}include|extlinks{{=}}include}}
+
| {{Compact ToC |side=on |sym=include|num=include|refs=include |custom1=Other}}
{{Compact ToC |name=Directory|top=off|refs=include|notes=include|extlinks=include}}
+
| {{Compact ToC/sandbox |side=on |sym=include|num=include|refs=include |custom1=Other}}
{{Compact ToC/sandbox |name=Directory|top=off|refs=include|notes=include|extlinks=include}}
 
</div>
 
  
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
+
| <br/><br/>{{tc|…&nbsp;|name{{=}}Directory&nbsp;|refs{{=}}include|notes{{=}}include|extlinks{{=}}include}}
{{tc|…|name{{=}}omit|side{{=}}on|right{{=}}on|symnum{{=}}include|seealso{{=}}include}}
+
| {{Compact ToC |name=Directory |refs=include|notes=include|extlinks=include}}
{{Compact ToC |name=omit|side=on|right=on|symnum=include|seealso=include}}<br style="clear:right;" />
+
| {{Compact ToC/sandbox |name=Directory |refs=include|notes=include|extlinks=include}}
{{Compact ToC/sandbox |name=omit|side=on|right=on|symnum=include|seealso=include}}<br style="clear:right;" />
 
</div>
 
  
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
+
| <br/><br/>{{tc|…&nbsp;|side{{=}}on|right{{=}}on&nbsp;|name{{=}}omit&nbsp;|symnum{{=}}include|seealso{{=}}include}}
{{tc|…|short1|num{{=}}include|sym{{=}}include|seealso{{=}}include|notesfirst{{=}}on|further{{=}}include|extlinks{{=}}include}}
+
| {{Compact ToC |side=on|right=on |name=omit |symnum=include|seealso=include}}<br style="clear:right;" />
{{Compact ToC |short1|num=include|sym=include|seealso=include|notesfirst=on|further=include|extlinks=include}}
+
| {{Compact ToC/sandbox |side=on|right=on |name=omit |symnum=include|seealso=include}}<br style="clear:right;" />
{{Compact ToC/sandbox |short1|num=include|sym=include|seealso=include|notesfirst=on|further=include|extlinks=include}}
 
</div>
 
  
<div style="border-top:3px solid #aaa;padding-top:1.0em;padding-bottom:2.0em;">
+
| <br/><br/>{{tc|…&nbsp;|short1&nbsp;|num{{=}}include|sym{{=}}include|seealso{{=}}include|further{{=}}include|extlinks{{=}}include&nbsp;|notesfirst{{=}}on}}
{{tc|…|titlepadding{{=}}0 3.0em 0 0|side{{=}}on|q{{=}}|x{{=}}|z{{=}}}}
+
| {{Compact ToC |short1 |num=include|sym=include|seealso=include|further=include|extlinks=include |notesfirst=on}}
{{Compact ToC |titlepadding=0 3.0em 0 0|side=on|q=|x=|z=}}
+
| {{Compact ToC/sandbox |short1 |num=include|sym=include|seealso=include|further=include|extlinks=include |notesfirst=on}}
{{Compact ToC/sandbox |titlepadding=0 3.0em 0 0|side=on|q=|x=|z=}}
+
 
</div>
+
| <br/><br/>{{tc|…&nbsp;|side{{=}}on&nbsp;|titlepadding{{=}}0 3.0em 0 0&nbsp;|q{{=}}|x{{=}}|z{{=}}}}
 +
| {{Compact ToC |side=on |titlepadding=0 3.0em 0 0 |q=|x=|z=}}
 +
| {{Compact ToC/sandbox |side=on |titlepadding=0 3.0em 0 0 |q=|x=|z=}}
 +
 
 +
 
 +
}}<!--(end Aligned table)-->

Revision as of 10:06, 6 October 2014

Template:Testcases page header


For each test,

upper output = main
lower output = sandbox

Script error: No such module "aligned table".