Template:Sidebar/testcases#Embedding
{{template test cases notice}}
Basic tests
{{testcase table
|_template=sidebar
|_caption = Celtic mythology
|name = Celtic mythology
|class = plainlist
|style = width:auto;border:1px solid #004700;background:#e7f4e7;
|basestyle = background:#90db90;
|pretitle = Part of a series on
|titlestyle = font-size:150%;
|title = Celtic mythology
|image = File:Hope-coventina01a.jpg
|content1 =
|heading2 = Gaelic mythology
|content2 =
|heading3 = Brythonic mythology
|content3 =
- {{hlist |British |Welsh |Breton}}
- British Iron Age religion
- Mabinogion
- Book of Taliesin
- Trioedd Ynys Prydein
|heading4 = Religious vocations
|content4 =
|heading5 = Festivals
|content5 =
- {{hlist |Samhain |Calan Gaeaf}}
- {{hlist |Imbolc |Gŵyl Fair}}
- {{hlist |Beltane |Calan Mai}}
- {{hlist |Lughnasadh |Calan Awst}}
|belowstyle = padding-top:0.1em;border-top:1px solid #004700;border-bottom:1px solid #004700;
|below =
}}
{{testcase table
|_template=sidebar
|_caption = Politics of Panama
| name = Politics of Panama
| wraplinks = true
| bodyclass = vcard
| bodystyle = width:auto
| contentstyle = text-align:left; border-bottom:1px #aaa solid
| title = {{politics sidebar title|country=Panama|image=Coat of Arms of Panama.svg|size=125px|title=Panama}}
| content1 =
- Constitution
- President
- Ricardo Martinelli
- Vice President
- Juan Carlos Varela
- National Assembly
- Speaker
- Sergio Galvès E.
- Political parties
- Elections
- 1999 - 2004
- 2006 referendum - 2009
- Provinces and Comarcas
- Districts
- Corregimientos
- Panama Canal Authority
- Foreign relations
| below = {{politics sidebar below|Panama}}
}}
{{testcase table
|_template=sidebar
|_caption = Financial markets
| name = Financial markets
| bodystyle = width:auto
| bodyclass = plainlist
| headingclass = navbox-abovebelow
| title = Financial markets
| image = 135px
| content1 =
----
| heading2 = Bond market
| content2 =
| heading3 = Stock market
| content3 =
| heading4 = Derivatives market
| content4 =
| heading5 = Over-the-counter
| content5 =
| heading6 =Foreign exchange
| content6 =
| heading7 = Other markets
| content7 =
| heading8 =Practical trading
| content8 =
| heading9 = Finance series
| content9 =
}}
{{testcase table
|_template=sidebar
|_caption = Neuroepistemology
|name = Template:Sidebar/testcases
|style = width:auto
|title=Neuroepistemology
|titlestyle = background:#66ccff;
| class = hlist
| titleclass = navbox-title
| image = File:Inn brainetworks.jpg
| imagestyle = border-bottom: 1px solid #CCC; padding-bottom: 0.5em;
| headingstyle = font-size: 1.1em; padding: 0.25em 0;
| headingclass = navbox-abovebelow
|heading1=General concepts
|content1=
First Person-Third Person 'Quid pro quo' (FTQ)
{{•}} Hebbian theory
Backpropagation{{•}}Automaticity{{•}}
Intentionality{{•}} Intersubjectivity
Cerebral cortex - Consciousness
Mind-mind problem{{•}}
Phenomenology{{•}} Neuron
Sign{{•}} Sign relational complex
Neurodidactics{{•}} Neurobiology{{•}}
|heading2=Methods
|content2=
|heading3= Scientific and Philosophic Influences
|content3=
Edmund Husserl - Franz Brentano
Charles S. Peirce - Gotlob Frege
Gaston Bachelard - W.V.O. Quine - Bertrand Russell
William James - Ludwig Wittgenstein
Michel Foucault - Greek philosophy
|heading4= Contemporary Inspiring Researchers
|content4=
Daniel Dennett - Vittorio Gallese
Geoffrey Hinton{{•}} Allan Hobson
Uta Frith{{•}} Patricia Churchland
Roger Penrose{{•}} Hilary Putnam
Benoit Mandelbrot - Terrence Sejnowsky
Henry Stapp{{•}} Rita Levi-Montalcini
David Chalmers{{•}} John Searle
Christof Koch - Fernando Nottebohm
Semir Zeki{{•}} Pasko Rakic
|heading5=Related topics
|content5=
}}
Float tests
class="wikitable"
! Description ! Main ! Sandbox |
style="vertical-align:top;"
| No float parameter | style="width:50%" | Text before {{{{BASEPAGENAME}}|title = Title | content1 = Content}} Text after: No float parameter defaults to floating right. This causes subsequent text to appear to the sidebar's left. | style="width:50%" | Text before {{{{BASEPAGENAME}}/sandbox|title = Title | content1 = Content}} Text after: No float parameter defaults to floating right. This causes subsequent text to appear to the sidebar's left. |
style="vertical-align:top;"
| Empty float parameter | style="width:50%" | Text before {{{{BASEPAGENAME}}|float = | title = Title | content1 = Content}} Text after: An empty float parameter also defaults to floating right. This causes subsequent text to appear to the sidebar's left. | style="width:50%" | Text before {{{{BASEPAGENAME}}/sandbox|float = | title = Title | content1 = Content}} Text after: An empty float parameter also defaults to floating right. This causes subsequent text to appear to the sidebar's left. |
style="vertical-align:top;"
| float = left | style="width:50%" | Text before {{{{BASEPAGENAME}}|float = left | title = Title | content1 = Content}} 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. | style="width:50%" | Text before {{{{BASEPAGENAME}}/sandbox|float = left | title = Title | content1 = Content}} 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. |
style="vertical-align:top;"
| float = right | style="width:50%" | Text before {{{{BASEPAGENAME}}|float = right | title = Title | content1 = Content}} 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. | style="width:50%" | Text before {{{{BASEPAGENAME}}/sandbox|float = right | title = Title | content1 = Content}} 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. |
style="vertical-align:top;"
| float = none | style="width:50%" | Text before {{{{BASEPAGENAME}}|float = none | title = Title | content1 = Content}} Text after: A "float=none" makes the sidebar not float at all. This causes subsequent text to appear below the sidebar. | style="width:50%" | Text before {{{{BASEPAGENAME}}/sandbox|float = none | title = Title | content1 = Content}} Text after: A "float=none" makes the sidebar not float at all. This causes subsequent text to appear below the sidebar. |
Embedding
class="wikitable"
! Description ! Main ! Sandbox |
style="vertical-align:top;"
| child=yes | style="width:50%" | {{{{BASEPAGENAME}} | title = Title | headingstyle = background:#ddd | heading1 = Heading 1 | content1 = Content 1 | heading2 = Heading 2 | content2 = {{{{BASEPAGENAME}} | child = yes | headingstyle = background:#eee | heading1 = Heading 2.1 | content1 = Content 2.1 | heading2 = Heading 2.2 | content2 = Content 2.2 }} | heading3 = Heading 3 | content3 = Content 3 | navbar = off }} | style="width:50%" | {{{{BASEPAGENAME}}/sandbox | title = Title | headingstyle = background:#ddd | heading1 = Heading 1 | content1 = Content 1 | heading2 = Heading 2 | content2 = {{{{BASEPAGENAME}}/sandbox | child = yes | headingstyle = background:#eee | heading1 = Heading 2.1 | content1 = Content 2.1 | heading2 = Heading 2.2 | content2 = Content 2.2 }} | heading3 = Heading 3 | content3 = Content 3 | navbar = off }} |
Styling
{{test case|_format=columns|_showcode=yes|_title=Styles
| style = width: 120px;
| headingstyle = text-decoration: underline dotted red;
| contentstyle = background-color: cyan;
| heading1 = Heading 1
| content1 = Content 1
| heading2 = Heading 2
| heading2style = font-style: italic;
| content2 = Content 2
| content2style = font-size: 150%;
}}
{{Sidebar with collapsible lists/testcases}}