Template:Sidebar/testcases
| icon | This is the template test cases page for the sandbox of Template:Sidebar. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Basic tests
[edit source]| {{sidebar}} | {{sidebar/sandbox}} | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| {{sidebar}} | {{sidebar/sandbox}} | ||||||
|---|---|---|---|---|---|---|---|
| |||||||
| File:Coat of Arms of Panama.svg | |||||||
| {{sidebar}} | {{sidebar/sandbox}} | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| {{sidebar}} | {{sidebar/sandbox}} | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Float tests
[edit source]| Description | Main | Sandbox | ||
|---|---|---|---|---|
| No float parameter |
Text before
Text after: No float parameter defaults to floating right. This causes subsequent text to appear to the sidebar's left. |
Text before Text after: No float parameter defaults to floating right. This causes subsequent text to appear to the sidebar's left. | ||
| Empty float parameter |
Text before
Text after: An empty float parameter also defaults to floating right. This causes subsequent text to appear to the sidebar's left. |
Text before Text after: An empty float parameter also defaults to floating right. This causes subsequent text to appear to the sidebar's left. | ||
| float = left |
Text before
Text after: A "float=left" parameter floats the sidebar to the left instead of the right. This causes subsequent text to appear to the sidebar's right. |
Text before Text after: A "float=left" parameter floats the sidebar to the left instead of the right. This causes subsequent text to appear to the sidebar's right. | ||
| float = right |
Text before
Text after: A "float=right" parameter floats the sidebar to the right, as usual. This causes subsequent text to appear to the sidebar's left. |
Text before Text after: A "float=right" parameter floats the sidebar to the right, as usual. This causes subsequent text to appear to the sidebar's left. | ||
| float = none |
Text before
Text after: A "float=none" makes the sidebar not float at all. This causes subsequent text to appear below the sidebar. |
Text before Text after: A "float=none" makes the sidebar not float at all. This causes subsequent text to appear below the sidebar. |
Outertitle and navbar options
[edit source]| Description | Main | Sandbox | |||
|---|---|---|---|---|---|
| Outertitle |
The "outertitle" of a sidebar appears outside the sidebar's border, within the sidebar's top margin. The "outertitle" should not touch text above it, or the sidebar border below it.
|
The "outertitle" of a sidebar appears outside the sidebar's border, within the sidebar's top margin. The "outertitle" should not touch text above it, or the sidebar border below it. | |||
| Navbar off |
|
||||
| Navbar style |
|
||||
| Navbar font style |
|
Embedding
[edit source]| Description | Main | Sandbox | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| child=yes |
|
Styling
[edit source]{{Sidebar|content1=Content 1 |content2=Content 2 |content2style=font-size: 150%; |contentstyle=background-color: cyan; |heading1=Heading 1 |heading2=Heading 2 |heading2style=font-style: italic; |headingstyle=text-decoration: underline dotted red; |style=width: 120px;}}
| {{Sidebar}} | {{Sidebar/sandbox}} | ||||
|---|---|---|---|---|---|
|
| icon | This is the template test cases page for the sandbox of Template:Sidebar. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Judaism
[edit source]| {{Sidebar with collapsible lists}} | {{Sidebar with collapsible lists/sandbox}} | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Russian space program
[edit source]| {{Sidebar with collapsible lists}} | {{Sidebar with collapsible lists/sandbox}} | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Indigenous peoples of Canada
[edit source]History of Thailand
[edit source]| {{Sidebar with collapsible lists}} | {{Sidebar with collapsible lists/sandbox}} | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Centered text
[edit source]| {{Sidebar with collapsible lists}} | {{Sidebar with collapsible lists/sandbox}} | ||||
|---|---|---|---|---|---|
|
List support
[edit source]{{Sidebar|category=no |content1=* Item 1
* Item 2 |content1class=plainlist |title=Plainlist templatestyles}}
{{Sidebar}}
| Plainlist templatestyles |
|---|
|
'"`UNIQ--templatestyles-00000104-QINU`"''"`UNIQ--templatestyles-00000102-QINU`"'<table class="sidebar nomobile nowraplinks"><tr><th class="sidebar-title">Plainlist templatestyles</th></tr><tr><td class="sidebar-content plainlist"> * Item 1 * Item 2</td> </tr></table>
{{Sidebar/sandbox}}
'"`UNIQ--templatestyles-00000108-QINU`"''"`UNIQ--templatestyles-00000106-QINU`"'<div class="sidebar nowraplinks" role="navigation"><div><div class="sidebar-title" style="font-weight:bold">Plainlist templatestyles</div></div><div><div class="sidebar-content plainlist"> * Item 1 * Item 2</div> </div></div>
{{Sidebar|category=no |content1=* Item 1
* Item 2 |content1class=plainlist |name=Sidebar with collapsible lists/testcases |title=Plainlist templatestyles}}
{{Sidebar}}
| Plainlist templatestyles |
|---|
|
'"`UNIQ--templatestyles-00000113-QINU`"''"`UNIQ--templatestyles-00000111-QINU`"''"`UNIQ--templatestyles-0000010F-QINU`"'<table class="sidebar nomobile nowraplinks"><tr><th class="sidebar-title">Plainlist templatestyles</th></tr><tr><td class="sidebar-content plainlist"> * Item 1 * Item 2</td> </tr><tr><td class="sidebar-navbar">'"`UNIQ--templatestyles-0000010B-QINU`"''"`UNIQ--templatestyles-0000010D-QINU`"'<div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view">[[Template:Sidebar with collapsible lists/testcases|<abbr title="View this template">v</abbr>]]</li><li class="nv-talk">[[Template talk:Sidebar with collapsible lists/testcases|<abbr title="Discuss this template">t</abbr>]]</li><li class="nv-edit">[[Special:EditPage/Template:Sidebar with collapsible lists/testcases|<abbr title="Edit this template">e</abbr>]]</li></ul></div></td></tr></table>
{{Sidebar/sandbox}}
'"`UNIQ--templatestyles-0000011D-QINU`"''"`UNIQ--templatestyles-0000011B-QINU`"''"`UNIQ--templatestyles-00000119-QINU`"'<div class="sidebar nowraplinks" role="navigation"><div><div class="sidebar-title" style="font-weight:bold">Plainlist templatestyles</div></div><div><div class="sidebar-content plainlist"> * Item 1 * Item 2</div> </div><div><div class="sidebar-navbar">'"`UNIQ--templatestyles-00000115-QINU`"''"`UNIQ--templatestyles-00000117-QINU`"'<div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view">[[Template:Sidebar with collapsible lists/testcases|<abbr title="View this template">v</abbr>]]</li><li class="nv-talk">[[Template talk:Sidebar with collapsible lists/testcases|<abbr title="Discuss this template">t</abbr>]]</li><li class="nv-edit">[[Special:EditPage/Template:Sidebar with collapsible lists/testcases|<abbr title="Edit this template">e</abbr>]]</li></ul></div></div></div></div>
{{Sidebar|category=no |content1=* Item 1
* Item 2 |content1class=hlist |name=Sidebar with collapsible lists/testcases |title=Hlist templatestyles}}
{{Sidebar}}
| Hlist templatestyles |
|---|
|
'"`UNIQ--templatestyles-00000126-QINU`"''"`UNIQ--templatestyles-00000124-QINU`"'<table class="sidebar nomobile nowraplinks"><tr><th class="sidebar-title">Hlist templatestyles</th></tr><tr><td class="sidebar-content hlist"> * Item 1 * Item 2</td> </tr><tr><td class="sidebar-navbar">'"`UNIQ--templatestyles-00000120-QINU`"''"`UNIQ--templatestyles-00000122-QINU`"'<div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view">[[Template:Sidebar with collapsible lists/testcases|<abbr title="View this template">v</abbr>]]</li><li class="nv-talk">[[Template talk:Sidebar with collapsible lists/testcases|<abbr title="Discuss this template">t</abbr>]]</li><li class="nv-edit">[[Special:EditPage/Template:Sidebar with collapsible lists/testcases|<abbr title="Edit this template">e</abbr>]]</li></ul></div></td></tr></table>
{{Sidebar/sandbox}}
'"`UNIQ--templatestyles-0000012E-QINU`"''"`UNIQ--templatestyles-0000012C-QINU`"'<div class="sidebar nowraplinks" role="navigation"><div><div class="sidebar-title" style="font-weight:bold">Hlist templatestyles</div></div><div><div class="sidebar-content hlist"> * Item 1 * Item 2</div> </div><div><div class="sidebar-navbar">'"`UNIQ--templatestyles-00000128-QINU`"''"`UNIQ--templatestyles-0000012A-QINU`"'<div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view">[[Template:Sidebar with collapsible lists/testcases|<abbr title="View this template">v</abbr>]]</li><li class="nv-talk">[[Template talk:Sidebar with collapsible lists/testcases|<abbr title="Discuss this template">t</abbr>]]</li><li class="nv-edit">[[Special:EditPage/Template:Sidebar with collapsible lists/testcases|<abbr title="Edit this template">e</abbr>]]</li></ul></div></div></div></div>
{{Sidebar|category=no |content1=* Item 1
* Item 2 |content1class=hlist |name=Sidebar with collapsible lists/testcases |title=Hlist templatestyles and navbar}}
{{Sidebar}}
| Hlist templatestyles and navbar |
|---|
|
'"`UNIQ--templatestyles-00000137-QINU`"''"`UNIQ--templatestyles-00000135-QINU`"'<table class="sidebar nomobile nowraplinks"><tr><th class="sidebar-title">Hlist templatestyles and navbar</th></tr><tr><td class="sidebar-content hlist"> * Item 1 * Item 2</td> </tr><tr><td class="sidebar-navbar">'"`UNIQ--templatestyles-00000131-QINU`"''"`UNIQ--templatestyles-00000133-QINU`"'<div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view">[[Template:Sidebar with collapsible lists/testcases|<abbr title="View this template">v</abbr>]]</li><li class="nv-talk">[[Template talk:Sidebar with collapsible lists/testcases|<abbr title="Discuss this template">t</abbr>]]</li><li class="nv-edit">[[Special:EditPage/Template:Sidebar with collapsible lists/testcases|<abbr title="Edit this template">e</abbr>]]</li></ul></div></td></tr></table>
{{Sidebar/sandbox}}
'"`UNIQ--templatestyles-0000013F-QINU`"''"`UNIQ--templatestyles-0000013D-QINU`"'<div class="sidebar nowraplinks" role="navigation"><div><div class="sidebar-title" style="font-weight:bold">Hlist templatestyles and navbar</div></div><div><div class="sidebar-content hlist"> * Item 1 * Item 2</div> </div><div><div class="sidebar-navbar">'"`UNIQ--templatestyles-00000139-QINU`"''"`UNIQ--templatestyles-0000013B-QINU`"'<div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view">[[Template:Sidebar with collapsible lists/testcases|<abbr title="View this template">v</abbr>]]</li><li class="nv-talk">[[Template talk:Sidebar with collapsible lists/testcases|<abbr title="Discuss this template">t</abbr>]]</li><li class="nv-edit">[[Special:EditPage/Template:Sidebar with collapsible lists/testcases|<abbr title="Edit this template">e</abbr>]]</li></ul></div></div></div></div>
Vanished TemplateStyles
[edit source]{{Sidebar|category=no |content1=<div class="plainlist " >
* Item 1
* Item 2
</div> |content1class= |title=Plainlist templatestyles}}
{{Sidebar}}
| Plainlist templatestyles |
|---|
|
'"`UNIQ--templatestyles-00000144-QINU`"''"`UNIQ--templatestyles-00000141-QINU`"'<table class="sidebar nomobile nowraplinks"><tr><th class="sidebar-title">Plainlist templatestyles</th></tr><tr><td class="sidebar-content"> <div class="plainlist " > * Item 1 * Item 2 </div></td> </tr></table>
{{Sidebar/sandbox}}
'"`UNIQ--templatestyles-00000146-QINU`"''"`UNIQ--templatestyles-00000141-QINU`"'<div class="sidebar nowraplinks" role="navigation"><div><div class="sidebar-title" style="font-weight:bold">Plainlist templatestyles</div></div><div><div class="sidebar-content"> <div class="plainlist " > * Item 1 * Item 2 </div></div> </div></div>
List in the below parameter can break the next list
[edit source]| Example 1 |
|---|
|
- List afterwards
- with gap
- showing correct markup
| Example 2 |
|---|
|
| Example 3 |
|---|
|
Textt below with two lines |
- List afterwards
- without gap
- showing correct markup