Template:Infobox/testcases: Difference between revisions
Jump to navigation
Jump to search
Mailmanmicky (talk | contribs) |
Mailmanmicky (talk | contribs) mNo edit summary |
||
Line 5: | Line 5: | ||
! style="width:100%" |{{Dictionary/common|Desc}} | ! style="width:100%" |{{Dictionary/common|Desc}} | ||
! {{Dictionary/common|Preview}} | ! {{Dictionary/common|Preview}} | ||
! Sandboxed Preview | |||
|- | |- | ||
| style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With no parameters}} | | style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With no parameters}} | ||
| {{infobox}} | | {{infobox}} | ||
| {{infobox/sandbox}} | |||
|- | |- | ||
| style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With section parameter only}} | | style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With section parameter only}} | ||
| | | {{infobox|section1=Section}} | ||
| {{infobox/sandbox|section1=Section}} | |||
|- | |- | ||
| 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}} | ||
| {{infobox|header=Header}} | | {{infobox|header=Header}} | ||
| {{infobox/sandbox|header=Header}} | |||
|- | |- | ||
| 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}} | ||
| {{infobox|footer=Footer}} | | {{infobox|footer=Footer}} | ||
| {{infobox/sandbox|footer=Footer}} | |||
|- | |- | ||
|} | |} | ||
Line 27: | Line 30: | ||
! style="width:100%" |{{Dictionary/common|Desc}} | ! style="width:100%" |{{Dictionary/common|Desc}} | ||
! {{Dictionary/common|Preview}} | ! {{Dictionary/common|Preview}} | ||
! Sandboxed Preview | |||
|- | |- | ||
| style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With image parameter only}} | | style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With image parameter only}} | ||
| | | {{infobox|image=Software Cover - The Lab.jpg}} | ||
| {{infobox/sandbox|image=Software Cover - The Lab.jpg}} | |||
|- | |- | ||
| style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With image parameter and imagewidth parameter}} | | style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With image parameter and imagewidth parameter}} | ||
| | | {{infobox|image=Missing entity icon.png|imagewidth=64px}} | ||
| {{infobox/sandbox|image=Missing entity icon.png|imagewidth=64px}} | |||
|- | |- | ||
|} | |} | ||
Line 41: | Line 47: | ||
! style="width:100%" |{{Dictionary/common|Desc}} | ! style="width:100%" |{{Dictionary/common|Desc}} | ||
! {{Dictionary/common|Preview}} | ! {{Dictionary/common|Preview}} | ||
! Sandboxed Preview | |||
|- | |- | ||
| style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With only one entry idbox}} | | style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With only one entry idbox}} | ||
| | | {{infobox|entryid1=Entry ID 1}} | ||
| {{infobox/sandbox|entryid1=Entry ID 1}} | |||
|- | |- | ||
| style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With only one entry infobox}} | | style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With only one entry infobox}} | ||
| | | {{infobox|entryinfo1=Entry INFO 1}} | ||
| {{infobox/sandbox|entryinfo1=Entry INFO 1}} | |||
|- | |- | ||
| style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With only one row of entries}} | | style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With only one row of entries}} | ||
| | | {{infobox|entryid1=Entry ID 1|entryinfo1=Entry INFO 1}} | ||
| {{infobox/sandbox|entryid1=Entry ID 1|entryinfo1=Entry INFO 1}} | |||
|- | |- | ||
| style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With only one row of entries, a header and a footer}} | | style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With only one row of entries, a header and a footer}} | ||
| | | {{infobox | ||
| header = Header | |||
| entryid1 = Entry ID 1 | |||
| entryinfo1 = Entry INFO 1 | |||
| footer = Footer | |||
}} | |||
| {{infobox/sandbox | |||
| header = Header | |||
| entryid1 = Entry ID 1 | |||
| entryinfo1 = Entry INFO 1 | |||
| footer = Footer | |||
}} | |||
|- | |- | ||
| style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With only two rows of entries}} | | style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With only two rows of entries}} | ||
| | | {{infobox | ||
| entryid1 = Entry ID 1 | |||
| entryinfo1 = Entry INFO 1 | |||
| entryid2 = Entry ID 2 | |||
| entryinfo2 = Entry INFO 2 | |||
}} | |||
| {{infobox/sandbox | |||
| entryid1 = Entry ID 1 | |||
| entryinfo1 = Entry INFO 1 | |||
| entryid2 = Entry ID 2 | |||
| entryinfo2 = Entry INFO 2 | |||
}} | |||
|- | |- | ||
| style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With only two rows of entries, a header and a footer}} | | style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With only two rows of entries, a header and a footer}} | ||
| | | {{infobox | ||
| header = Header | |||
| entryid1 = Entry ID 1 | |||
| entryinfo1 = Entry INFO 1 | |||
| entryid2 = Entry ID 2 | |||
| entryinfo2 = Entry INFO 2 | |||
| footer = Footer | |||
}} | |||
| {{infobox/sandbox | |||
| header = Header | |||
| entryid1 = Entry ID 1 | |||
| entryinfo1 = Entry INFO 1 | |||
| entryid2 = Entry ID 2 | |||
| entryinfo2 = Entry INFO 2 | |||
| footer = Footer | |||
}} | |||
|- | |- | ||
| style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With max row of entries}} | | style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With max row of entries}} | ||
| | | {{infobox | ||
| entryid1 = Entry ID 1 | |||
| entryinfo1 = Entry INFO 1 | |||
| entryid2 = Entry ID 2 | |||
| entryinfo2 = Entry INFO 2 | |||
| entryid3 = Entry ID 3 | |||
| entryinfo3 = Entry INFO 3 | |||
| entryid4 = Entry ID 4 | |||
| entryinfo4 = Entry INFO 4 | |||
| entryid5 = Entry ID 5 | |||
| entryinfo5 = Entry INFO 5 | |||
}} | |||
| {{infobox/sandbox | |||
| entryid1 = Entry ID 1 | |||
| entryinfo1 = Entry INFO 1 | |||
| entryid2 = Entry ID 2 | |||
| entryinfo2 = Entry INFO 2 | |||
| entryid3 = Entry ID 3 | |||
| entryinfo3 = Entry INFO 3 | |||
| entryid4 = Entry ID 4 | |||
| entryinfo4 = Entry INFO 4 | |||
| entryid5 = Entry ID 5 | |||
| entryinfo5 = Entry INFO 5 | |||
}} | |||
|- | |- | ||
| style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With max row of entries, a header and a footer}} | | style="background:#282828; padding-inline:.5em;" | {{capsule|style=2|With max row of entries, a header and a footer}} | ||
| | | {{infobox | ||
| header = Header | |||
| footer = Footer | |||
| entryid1 = Entry ID 1 | |||
| entryinfo1 = Entry INFO 1 | |||
| entryid2 = Entry ID 2 | |||
| entryinfo2 = Entry INFO 2 | |||
| entryid3 = Entry ID 3 | |||
| entryinfo3 = Entry INFO 3 | |||
| entryid4 = Entry ID 4 | |||
| entryinfo4 = Entry INFO 4 | |||
| entryid5 = Entry ID 5 | |||
| entryinfo5 = Entry INFO 5 | |||
}} | |||
| {{infobox/sandbox | |||
| header = Header | |||
| footer = Footer | |||
| entryid1 = Entry ID 1 | |||
| entryinfo1 = Entry INFO 1 | |||
| entryid2 = Entry ID 2 | |||
| entryinfo2 = Entry INFO 2 | |||
| entryid3 = Entry ID 3 | |||
| entryinfo3 = Entry INFO 3 | |||
| entryid4 = Entry ID 4 | |||
| entryinfo4 = Entry INFO 4 | |||
| entryid5 = Entry ID 5 | |||
| entryinfo5 = Entry INFO 5 | |||
}} | |||
|} | |} | ||
Revision as of 23:17, 29 May 2023
This is the template test cases page for Template:Infobox. 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 | Sandboxed Preview |
---|---|---|
With no parameters
|
||
With section parameter only
|
Section |
Section |
With header parameter only
|
Header |
Header |
With footer parameter only
|
Footer |
Footer |
Image tests
Description | Preview | Sandboxed Preview | ||
---|---|---|---|---|
With image parameter only
|
[[File:Software Cover - The Lab.jpg |
300px]] | [[File:Software Cover - The Lab.jpg |
300px]] |
With image parameter and imagewidth parameter
|
[[File:Missing entity icon.png |
64px]] | [[File:Missing entity icon.png |
64px]] |
Entry tests
Description | Preview | Sandboxed Preview |
---|---|---|
With only one entry idbox
|
Entry ID 1
|
Entry ID 1
|
With only one entry infobox
|
Entry INFO 1
|
Entry INFO 1
|
With only one row of entries
|
Entry ID 1
Entry INFO 1
|
Entry ID 1
Entry INFO 1
|
With only one row of entries, a header and a footer
|
Header Entry ID 1
Entry INFO 1
Footer |
Header Entry ID 1
Entry INFO 1
Footer |
With only two rows of entries
|
Entry ID 1
Entry INFO 1
Entry ID 2
Entry INFO 2
|
Entry ID 1
Entry INFO 1
Entry ID 2
Entry INFO 2
|
With only two rows of entries, a header and a footer
|
Header Entry ID 1
Entry INFO 1
Entry ID 2
Entry INFO 2
Footer |
Header Entry ID 1
Entry INFO 1
Entry ID 2
Entry INFO 2
Footer |
With max row of entries
|
Entry ID 1
Entry INFO 1
Entry ID 2
Entry INFO 2
Entry ID 3
Entry INFO 3
Entry ID 4
Entry INFO 4
Entry ID 5
Entry INFO 5
|
Entry ID 1
Entry INFO 1
Entry ID 2
Entry INFO 2
Entry ID 3
Entry INFO 3
Entry ID 4
Entry INFO 4
Entry ID 5
Entry INFO 5
|
With max row of entries, a header and a footer
|
Header Entry ID 1
Entry INFO 1
Entry ID 2
Entry INFO 2
Entry ID 3
Entry INFO 3
Entry ID 4
Entry INFO 4
Entry ID 5
Entry INFO 5
Footer |
Header Entry ID 1
Entry INFO 1
Entry ID 2
Entry INFO 2
Entry ID 3
Entry INFO 3
Entry ID 4
Entry INFO 4
Entry ID 5
Entry INFO 5
Footer |
Entries and sections test
Description | Preview |
---|---|
With only one row of entries, with the first section only
|
Section 1 Entry ID 1
Entry INFO 1
|
With only one row of entries, with the second section only
|
Entry ID 1
Entry INFO 1
Section 2 |
With only one row of entries, one section, a header and a footer
|
Header Section 1 Entry ID 1
Entry INFO 1
Footer |
With two rows of entries, with the second section only
|
Entry ID 1
Entry INFO 1
Section 2 Entry ID 2
Entry INFO 2
|
With two rows of entries, the second section, a header and footer only
|
Header Entry ID 1
Entry INFO 1
Section 2 Entry ID 2
Entry INFO 2
Footer |
With two rows of entries, the first and second section, a header and footer only
|
Header Section 1 Entry ID 1
Entry INFO 1
Section 2 Entry ID 2
Entry INFO 2
Footer |
With max amount of entries and sections only
|
Section 1 Entry ID 1
Entry INFO 1
Section 2 Entry ID 2
Entry INFO 2
Section 3 Entry ID 3
Entry INFO 3
Section 4 Entry ID 4
Entry INFO 4
Section 5 Entry ID 5
Entry INFO 5
|
With max amount of entries and sections, with a header and footer
|
Header Section 1 Entry ID 1
Entry INFO 1
Section 2 Entry ID 2
Entry INFO 2
Section 3 Entry ID 3
Entry INFO 3
Section 4 Entry ID 4
Entry INFO 4
Section 5 Entry ID 5
Entry INFO 5
Footer |