Template:Sidebar/testcases: Difference between revisions
Jump to navigation
Jump to search
Mailmanmicky (talk | contribs) mNo edit summary |
Mailmanmicky (talk | contribs) mNo edit summary |
||
Line 10: | Line 10: | ||
|- | |- | ||
| style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With title parameter only}} | | style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With title parameter only}} | ||
| {{sidebar|title=Lorem | | {{sidebar|title=Lorem ipsum}} | ||
|- | |- | ||
| style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With header parameter only}} | | style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With header parameter only}} | ||
| {{sidebar|header= | | {{sidebar|header=Foo bar}} | ||
|- | |- | ||
| style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With content parameter only}} | | style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With content parameter only}} | ||
| {{sidebar|content= | | {{sidebar|content=Example}} | ||
|- | |- | ||
| style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With footer parameter only}} | | style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With footer parameter only}} | ||
| {{sidebar|footer= | | {{sidebar|footer=Placeholder}} | ||
|- | |- | ||
|} | |} | ||
Line 34: | Line 34: | ||
| style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With image parameter, imageformat and imagewidth parameter}} | | style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With image parameter, imageformat and imagewidth parameter}} | ||
| style="padding-block:.5em;" | {{sidebar|image=Missing entity icon|imageformat=png|imagewidth=64px}} | | style="padding-block:.5em;" | {{sidebar|image=Missing entity icon|imageformat=png|imagewidth=64px}} | ||
|- | |||
|} | |||
== Advanced tests == | |||
{|class="standard-table" | style="text-align:center; width:100%;" | |||
|- | |||
! style="width:100%" |{{Dictionary/common|Desc}} | |||
! {{Dictionary/common|Preview}} | |||
|- | |||
| style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With all parameters}} | |||
| style="padding-block:.5em;" | {{sidebar | |||
| title = Lorem ipsum | |||
| image = Missing entity icon (pink) | |||
| imageformat = png | |||
| imagewidth = 64px | |||
| header = Foo bar | |||
| content = Example | |||
| footer = Placeholder | |||
}} | |||
|- | |||
|- | |- | ||
|} | |} |
Revision as of 01:55, 29 May 2023
This is the template test cases page for Template:Sidebar. Purge this page in order to update the examples, if the template itself was recently edited.
If there are too many examples of a complicated template, later transclusions of such template may break due to the limitations of the Mediawiki software, or can cause the page itself to load very slow; See the HTML comment "NewPP limit Report" on the rendered page.
You can also use Special:ExpandTemplates to examine the results of template use cases.
If there are too many examples of a complicated template, later transclusions of such template may break due to the limitations of the Mediawiki software, or can cause the page itself to load very slow; See the HTML comment "NewPP limit Report" on the rendered page.
You can also use Special:ExpandTemplates to examine the results of template use cases.
Basic tests
Description | Preview |
---|---|
With no parameters
|
|
With title parameter only
|
|
With header parameter only
|
Foo bar |
With content parameter only
|
|
With footer parameter only
|
Placeholder |
Image tests
Description | Preview | |
---|---|---|
With image parameter only
|
[[File:Software Cover - The Lab |
300px]] |
With image parameter, imageformat and imagewidth parameter
|
[[File:Missing entity icon |
64px]] |
Advanced tests
Description | Preview | |
---|---|---|
With all parameters
|
Foo bar [[File:Missing entity icon (pink) |
64px]] Placeholder
|