Template:Collapsible list/testcases

From blackwiki
< Template:Collapsible list
Revision as of 08:40, 6 September 2020 by imported>Andrybak (→‎Long title example: rename sections)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  1. REDIRECT Template:Testcases notice
  • From a page move: This is a redirect from a page that has been moved (renamed). This page was kept as a redirect to avoid breaking links, both internal and external, that may have been made to the old page name.

Expand

Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table

Long title example

Template:Testcase table

Long title example w/ bullets

Template:Testcase table

Republic of India

CollapseRepublic of India
Side by side comparison
{{Collapsible list}}{{Collapsible list/sandbox}}
भारत गणराज्य*
Bhārat Gaṇarājya
Republic of India
CapitalNew Delhi
Largest city Mumbai
Constitutionally recognised
languages
Demonym Indian
Government Federal republic,
parliamentary democracy[4]
 -  President Pratibha Patil
 -  Prime Minister Manmohan Singh
 -  Chief Justice K. G. Balakrishnan
Independence from United Kingdom 
 -  Declared 15 August 1947 
 -  Republic 26 January 1950 
Area
 -  Total 3,287,240 km² (7th)
1,269,210 sq mi 
 -  Water (%) 9.56
Population
 -  2009 estimate 1,198,003,000[5] (2nd)
 -  2001 census 1,028,610,328[6] 
 -  Density 364.4 /km² (32nd)
943.9 /sq mi
GDP (PPP) 2008 estimate
 -  Total $3.298 trillion[7] 
 -  Per capita $2,780[7] 
GDP (nominal) 2008 estimate
 -  Total $1.206 trillion[7] 
 -  Per capita $1,017[7] 
Currency Indian rupee (₨) (INR)
Time zone IST (UTC+5:30)
 -  Summer (DST) not observed (UTC+5:30)
Internet TLD .in
Calling code +91
भारत गणराज्य*
Bhārat Gaṇarājya
Republic of India
CapitalNew Delhi
Largest city Mumbai
Constitutionally recognised
languages
Demonym Indian
Government Federal republic,
parliamentary democracy[4]
 -  President Pratibha Patil
 -  Prime Minister Manmohan Singh
 -  Chief Justice K. G. Balakrishnan
Independence from United Kingdom 
 -  Declared 15 August 1947 
 -  Republic 26 January 1950 
Area
 -  Total 3,287,240 km² (7th)
1,269,210 sq mi 
 -  Water (%) 9.56
Population
 -  2009 estimate 1,198,003,000[5] (2nd)
 -  2001 census 1,028,610,328[11] 
 -  Density 364.4 /km² (32nd)
943.9 /sq mi
GDP (PPP) 2008 estimate
 -  Total $3.298 trillion[7] 
 -  Per capita $2,780[7] 
GDP (nominal) 2008 estimate
 -  Total $1.206 trillion[7] 
 -  Per capita $1,017[7] 
Currency Indian rupee (₨) (INR)
Time zone IST (UTC+5:30)
 -  Summer (DST) not observed (UTC+5:30)
Internet TLD .in
Calling code +91
Non-numbered Footnotes:

Template:Neuropsychology / template:Sidebar with collapsible lists

Collapse{{Collapsible list}}
Side by side comparison
{{Collapsible list}}{{Collapsible list/sandbox}}

Proclus Lycaeus / template:Infobox philosopher

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.

CollapseSingle item in list
Side by side comparison
{{Collapsible list}}{{Collapsible list/sandbox}}
Proclus Lycaeus
Full nameProclus Lycaeus
Other names"The Successor" (ὁ Διάδοχος)
Born(412-02-08)February 8, 412
Byzantium
DiedApril 17, 485(485-04-17) (aged 73)
EraAncient philosophy
RegionWestern philosophy
SchoolNeoplatonism
Proclus Lycaeus
Full nameProclus Lycaeus
Other names"The Successor" (ὁ Διάδοχος)
Born(412-02-08)February 8, 412
Byzantium
DiedApril 17, 485(485-04-17) (aged 73)
EraAncient philosophy
RegionWestern philosophy
SchoolNeoplatonism

template:VG Role-playing / template:Sidebar with collapsible lists

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
Collapse{{Collapsible list}}
Side by side comparison
{{Collapsible list}}{{Collapsible list/sandbox}}
Rpg video game.svg
Part of a series on:
RPG video games
Rpg video game.svg
Part of a series on:
RPG video games

United Airlines

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}}
Collapse{{Collapsible list}}
Side by side comparison
{{Collapsible list}}{{Collapsible list/sandbox}}
United Airlines
Script error: No such module "If empty".
IATA ICAO Callsign
UA UAL UNITED
FoundedApril 6, 1926 (1926-04-06)
Boise, Idaho, U.S.
(as Varney Air Lines)[13][14]
Commenced operationsApril 6, 1926 (1926-04-06)[15]
1927 (as Boeing Air Transport)[16]
Ceased operationsScript error: No such module "If empty".
AOC #UALA011A[17]
Hubs
Frequent-flyer programMileage Plus[18]
AllianceStar Alliance[19]
Subsidiaries
Fleet size
Destinations216
Parent companyUnited Continental Holdings, Inc.
HeadquartersChicago, Illinois, U.S.
Key people
RevenueDecrease US$16,335 million (FY 2009)[21]
Operating incomeIncrease US$–161 million (FY 2009)[21]
Net incomeIncrease US$–651 million (FY 2009)[21]
Total assetsDecrease US$18,684 million (FY 2009)[21]
Total equityDecrease US$–2,452 million (FY 2009)[21]
WebsiteTemplate:URL
United Airlines
Script error: No such module "If empty".
IATA ICAO Callsign
UA UAL UNITED
FoundedApril 6, 1926 (1926-04-06)
Boise, Idaho, U.S.
(as Varney Air Lines)[13][14]
Commenced operationsApril 6, 1926 (1926-04-06)[15]
1927 (as Boeing Air Transport)[23]
Ceased operationsScript error: No such module "If empty".
AOC #UALA011A[17]
Hubs
Frequent-flyer programMileage Plus[18]
AllianceStar Alliance[19]
Subsidiaries
Subsidiaries List[20]
Fleet size
Fleet Data List
Destinations216
Parent companyUnited Continental Holdings, Inc.
HeadquartersChicago, Illinois, U.S.
Key people
RevenueDecrease US$16,335 million (FY 2009)[21]
Operating incomeIncrease US$–161 million (FY 2009)[21]
Net incomeIncrease US$–651 million (FY 2009)[21]
Total assetsDecrease US$18,684 million (FY 2009)[21]
Total equityDecrease US$–2,452 million (FY 2009)[21]
WebsiteTemplate:URL

List within image caption

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
CollapseList within image caption
Side by side comparison
{{Collapsible list}}{{Collapsible list/sandbox}}
The present day governments that have been claimed to become (or to remain) a superpower within the 21st century.
The present day governments that have been claimed to become (or to remain) a superpower within the 21st century.

bulleted, expanded and not, small text

Template:Testcase table

Template:Testcase table

Template:Testcase table

Template:Testcase table

Masquerading as a section title

Tuthmosis III

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
CollapseTuthmosis III
Side by side comparison
{{Collapsible list}}{{Collapsible list/sandbox}}
Thutmose III
Tuthmosis III, "Manahpi(r)ya" in the Amarna letters
Thutmosis III statue in Luxor Museum
Pharaoh of Egypt
Reign1479–1425 BC, 18th Dynasty
PredecessorHatshepsut
SuccessorAmenhotep II
Consort(s)Satiah,[29] Hatshepsut-Meryetre, Nebtu, Menwi, Merti, Menhet
ChildrenAmenemhat, Amenhotep II, Beketamun, Iset, Menkheperre, Meryetamun, Meryetamun, Nebetiunet, Nefertiry, Siamun[29]
FatherThutmose II (?)
MotherIset
Died1425 BC
BurialKV34
MonumentsCleopatra's Needles
Thutmose III
Tuthmosis III, "Manahpi(r)ya" in the Amarna letters
Thutmosis III statue in Luxor Museum
Pharaoh of Egypt
Reign1479–1425 BC, 18th Dynasty
PredecessorHatshepsut
SuccessorAmenhotep II
Consort(s)Satiah,[29] Hatshepsut-Meryetre, Nebtu, Menwi, Merti, Menhet
ChildrenAmenemhat, Amenhotep II, Beketamun, Iset, Menkheperre, Meryetamun, Meryetamun, Nebetiunet, Nefertiry, Siamun[29]
FatherThutmose II (?)
MotherIset
Died1425 BC
BurialKV34
MonumentsCleopatra's Needles

Elizabeth II

Testcase checks:

  • Clickable [show] should not overlap with the list's title
CollapseElizabeth II
Side by side comparison
{{Collapsible list}}{{Collapsible list/sandbox}}


Template:PAGENAMEBASE
Photograph of Queen Elizabeth II
Elizabeth in 2015


Template:PAGENAMEBASE
Photograph of Queen Elizabeth II
Elizabeth in 2015


References