Template:Collapsible list/testcases

From IDU Wiki
Jump to navigation Jump to search

Expand[edit source]

{{Collapsible list|1|2|3}}
Side by side comparison
{{Collapsible list}}{{Collapsible list/sandbox}}
List
  • 1
  • 2
  • 3
List
  • 1
  • 2
  • 3
{{Collapsible list|1|2|3|expand=}}
Side by side comparison
{{Collapsible list}}{{Collapsible list/sandbox}}
List
  • 1
  • 2
  • 3
List
  • 1
  • 2
  • 3
{{Collapsible list|1|2|3|expand=true}}
Side by side comparison
{{Collapsible list}}{{Collapsible list/sandbox}}
List
  • 1
  • 2
  • 3
List
  • 1
  • 2
  • 3
{{Collapsible list|1|2|3|expand=false}}
Side by side comparison
{{Collapsible list}}{{Collapsible list/sandbox}}
List
  • 1
  • 2
  • 3
List
  • 1
  • 2
  • 3
{{Collapsible list|1|2|3|expand=anything else}}
Side by side comparison
{{Collapsible list}}{{Collapsible list/sandbox}}
List
  • 1
  • 2
  • 3
List
  • 1
  • 2
  • 3

Long title example[edit source]

Long title example w/ bullets[edit source]

India[edit source]

Template:Test case nowiki

Template:Neuropsychology sidebar / template:Sidebar with collapsible lists[edit source]

Template:Test case nowiki

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:Test case nowiki

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

Template:Test case nowiki

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}}

Template:Test case nowiki

List within image caption[edit source]

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

Template:Test case nowiki

bulleted, expanded and not, small text[edit source]

|bullets=on & |expand=true
|bullets=on & |liststyle=font-size:85%;
|bullets=on, |expand=true, & |liststyle=font-size:85%;

hlist[edit source]

Template:Test case

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

Template:Test case nowiki

Elizabeth II[edit source]

Testcase checks:

Template:Test case nowiki

List in list[edit source]

Template:Archive box

Template:Archive box


References[edit source]