Template:Collapsible list/testcases
Jump to navigation
Jump to search
| File:Gnome-applications-science.svg | This is the template test cases page for the sandbox of Template:Collapsible list. 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 with these links: |
Expand[edit source]
{{Collapsible list}}
{{Collapsible list|1|2|3}}
| {{Collapsible list}} | {{Collapsible list/sandbox}} |
|---|---|
|
List
|
List
|
{{Collapsible list}}
{{Collapsible list|1|2|3|expand=}}
| {{Collapsible list}} | {{Collapsible list/sandbox}} |
|---|---|
|
List
|
List
|
{{Collapsible list}}
{{Collapsible list|1|2|3|expand=true}}
| {{Collapsible list}} | {{Collapsible list/sandbox}} |
|---|---|
|
List
|
List
|
{{Collapsible list}}
{{Collapsible list|1|2|3|expand=false}}
| {{Collapsible list}} | {{Collapsible list/sandbox}} |
|---|---|
|
List
|
List
|
{{Collapsible list}}
{{Collapsible list|1|2|3|expand=anything else}}
| {{Collapsible list}} | {{Collapsible list/sandbox}} |
|---|---|
|
List
|
List
|
Long title example[edit source]
List with a long
|title=| {{Collapsible list}} | {{Collapsible list/sandbox}} |
|---|---|
Long title example w/ bullets[edit source]
List with a long
|title= and |bullets=fire| {{Collapsible list}} | {{Collapsible list/sandbox}} |
|---|---|
India[edit source]
Template:Neuropsychology sidebar / template:Sidebar with collapsible lists[edit source]
Proclus / template:Infobox philosopher[edit source]
Testcase checks:
- Single item in list
- Center aligned text using
"| list_style = text-align: center;"
This testcase checks the behavior for when a template is using the collapsible list with only one item within it.
template:Role-playing video games / template:Sidebar with collapsible lists[edit source]
Testcase checks:
- Single item in the Collapsible-list
- A bullet list w/in the single element Collapsible-list
- A bullet list which starts immediately instead of having a title item on top of it
Check for:
- The first element in the embedded list having a bullet
United Airlines[edit source]
Testcase checks:
- Embedded bare
<li>list - Multi-elements each beginning w/
<li>
Check for:
- Bullet preceding each element in the list
Example code in testcase:
{{Collapsible list |title=Fleet Data List |1=<li>362 active |2=<li>50 orders |3=<li>100 options}}
List within image caption[edit source]
Testcase checks:
- Collapsible list within an image caption
- Title style being set w/
"| titlestyle=font-weight:normal; background:transparent; text-align:left;"
Check for:
- Non-bold text in title
- Caption showing up as expected
- Spacing of list items
bulleted, expanded and not, small text[edit source]
|bullets=on| {{Collapsible list}} | {{Collapsible list/sandbox}} |
|---|---|
|
Members |
Members |
|bullets=on & |expand=true| {{Collapsible list}} | {{Collapsible list/sandbox}} |
|---|---|
|
Members |
Members |
|bullets=on & |liststyle=font-size:85%;| {{Collapsible list}} | {{Collapsible list/sandbox}} |
|---|---|
|
Members |
Members |
|bullets=on, |expand=true, & |liststyle=font-size:85%;| {{Collapsible list}} | {{Collapsible list/sandbox}} |
|---|---|
|
Members |
Members |
hlist[edit source]
Masquerading as a section title[edit source]
Tuthmosis III[edit source]
Source: Thutmose III / template:Infobox pharaoh
Testcase checks:
- Collapsible-list title acting as section title in an infobox
- Background & font of title set w/
"| titlestyle=font-size: 112%; background: #decd87; text-align:center;"
Check for:
- Background color working correctly (same background color as the real section title)
- Height of fake section title being the same as the real section title
- Size of text in the fake section title being the same as the real section title
Elizabeth II[edit source]
Testcase checks:
- Clickable Template:!(showTemplate:)! should not overlap with the list's title
List in list[edit source]