Jump to content

Template:Collapsible list/testcases

From Wikipedia, the free encyclopedia

Expand

[edit]
{{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]

Long title example w/ bullets

[edit]
Side by side comparison
{{Collapsible list}}{{Collapsible list/sandbox}}
Republic of India
भारत गणराज्य*
Bhārat Gaṇarājya
CapitalNew Delhi
28°36.8′N 77°12.5′E / 28.6133°N 77.2083°E / 28.6133; 77.2083
Largest cityMumbai
Official languages
  • Hindi in the Devanagari script is the official language of the Union[1] and English the "subsidiary official language".[2]
Constitutionally recognised
languages
Demonym(s)Indian
GovernmentFederal republic,
parliamentary democracy[4]
• President
Pratibha Patil
Manmohan Singh
K. G. Balakrishnan
LegislatureSansad
Rajya Sabha
Lok Sabha
Independence 
• Declared
15 August 1947
• Republic
26 January 1950
Area
• Total
3,287,240 km2 (1,269,210 sq mi) (7th)
• Water (%)
9.56
Population
• 2009 estimate
1,198,003,000[5] (2nd)
• 2001 census
1,028,610,328[6]
• Density
364.4/km2 (943.8/sq mi) (32nd)
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]
CurrencyIndian rupee (₨) (INR)
Time zoneUTC+5:30 (IST)
• Summer (DST)
UTC+5:30 (not observed)
Drives onleft
Calling code91
ISO 3166 codeIN
Internet TLD.in
Non-numbered Footnotes:
  • * Bharat Ganarajya, that is, the Republic of India in Hindi,[4] written in the Devanāgarī script. See also other official names
  • This is the figure as per the United Nations though the Indian government lists the total area as 3,287,260 square kilometres.[8]
Republic of India
भारत गणराज्य*
Bhārat Gaṇarājya
CapitalNew Delhi
28°36.8′N 77°12.5′E / 28.6133°N 77.2083°E / 28.6133; 77.2083
Largest cityMumbai
Official languages
  • Hindi in the Devanagari script is the official language of the Union[9] and English the "subsidiary official language".[2]
Constitutionally recognised
languages
Demonym(s)Indian
GovernmentFederal republic,
parliamentary democracy[4]
• President
Pratibha Patil
Manmohan Singh
K. G. Balakrishnan
LegislatureSansad
Rajya Sabha
Lok Sabha
Independence 
• Declared
15 August 1947
• Republic
26 January 1950
Area
• Total
3,287,240 km2 (1,269,210 sq mi) (7th)
• Water (%)
9.56
Population
• 2009 estimate
1,198,003,000[5] (2nd)
• 2001 census
1,028,610,328[11]
• Density
364.4/km2 (943.8/sq mi) (32nd)
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]
CurrencyIndian rupee (₨) (INR)
Time zoneUTC+5:30 (IST)
• Summer (DST)
UTC+5:30 (not observed)
Drives onleft
Calling code91
ISO 3166 codeIN
Internet TLD.in
Non-numbered Footnotes:
  • * Bharat Ganarajya, that is, the Republic of India in Hindi,[4] written in the Devanāgarī script. See also other official names
  • This is the figure as per the United Nations though the Indian government lists the total area as 3,287,260 square kilometres.[12]
Side by side comparison
{{Collapsible list}}{{Collapsible list/sandbox}}

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.

Single 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

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

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}}
Side by side comparison
{{Collapsible list}}{{Collapsible list/sandbox}}
United Airlines
IATA ICAO Call sign
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]
AOC #UALA011A[17]
Hubs
Frequent-flyer programMileage Plus[18]
AllianceStar Alliance[19]
Subsidiaries
Subsidiaries List[20]
  • Covia LLC
  • Kion de Mexico, S.A. de C.V.
  • Mileage Plus, Inc.
  • Mileage Plus Holdings, LLC
  • United Aviation Fuels Corporation
  • United Cogen, Inc.
  • United Vacations, Inc.
Fleet size
Fleet Data List
  • 362 active
  • 50 orders
  • 100 options
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]
Websitewww.united.com
United Airlines
IATA ICAO Call sign
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]
AOC #UALA011A[17]
Hubs
Frequent-flyer programMileage Plus[18]
AllianceStar Alliance[19]
Subsidiaries
Subsidiaries List[20]
  • Covia LLC
  • Kion de Mexico, S.A. de C.V.
  • Mileage Plus, Inc.
  • Mileage Plus Holdings, LLC
  • United Aviation Fuels Corporation
  • United Cogen, Inc.
  • United Vacations, Inc.
Fleet size
Fleet Data List
  • 362 active
  • 50 orders
  • 100 options
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]
Websitewww.united.com

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
List 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.
Legend
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

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

hlist

[edit]
{{Collapsible list| [[Iceland]]
 | [[Liechtenstein]]
 | [[Norway]]
 | [[Switzerland]]
|hlist=y |title=Members}}

{{Collapsible list}}

'"`UNIQ--templatestyles-00000088-QINU`"'<div class="collapsible-list mw-collapsible mw-collapsed" style="text-align: left;">
<div style="line-height: 1.6em; font-weight: bold;"><div>Members</div></div>
<ul class="mw-collapsible-content hlist" style="margin-top: 0; margin-bottom: 0; line-height: inherit; list-style: none; margin-left: 0;"><li style="line-height: inherit; margin: 0"> [[Iceland]]
 </li><li style="line-height: inherit; margin: 0"> [[Liechtenstein]]
 </li><li style="line-height: inherit; margin: 0"> [[Norway]]
 </li><li style="line-height: inherit; margin: 0"> [[Switzerland]]
</li></ul>
</div>

{{Collapsible list/sandbox}}

'"`UNIQ--templatestyles-00000089-QINU`"'<div class="collapsible-list mw-collapsible mw-collapsed" style="text-align: left;">
<div style="line-height: 1.6em; font-weight: bold;"><div>Members</div></div>
<ul class="mw-collapsible-content hlist" style="margin-top: 0; margin-bottom: 0; line-height: inherit; list-style: none; margin-left: 0;"><li style="line-height: inherit; margin: 0"> [[Iceland]]
 </li><li style="line-height: inherit; margin: 0"> [[Liechtenstein]]
 </li><li style="line-height: inherit; margin: 0"> [[Norway]]
 </li><li style="line-height: inherit; margin: 0"> [[Switzerland]]
</li></ul>
</div>

Masquerading as a section title

[edit]

Tuthmosis III

[edit]

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
Tuthmosis 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
  • {{{notes}}}
  • PrenomenMenkheperre
    Lasting is the Manifestation of Re[27]
  • M23L2
    ramnxpr
  • NomenThutmose Neferkheperu
    Thoth is born, beautiful of forms
  • G39N5
    G26msnfrxpr
  • Horus nameKanakht Khaemwaset
    Mighty Bull, Arising in Thebes
  • G5
    E1
    D40
    N28mS40t
    O49
  • Nebty nameWahnesytmireempet
    Enduring in kingship like Re in heaven
  • G16
    V29swtiira
    Z1
    mimQ3 X1
    N1
  • Golden HorusSekhempahtydsejerkhaw
    Powerful of strength, holy of diadems
  • G8
    sxmF9
    F9
    D45
    N28
    Z3

Consort(s)Satiah,[28] Hatshepsut-Meryetre, Nebtu, Menwi, Merti, Menhet
ChildrenAmenemhat, Amenhotep II, Beketamun, Iset, Menkheperre, Meryetamun, Meryetamun, Nebetiunet, Nefertiry, Siamun[28]
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
  • {{{notes}}}
  • PrenomenMenkheperre
    Lasting is the Manifestation of Re[29]
  • M23L2
    ramnxpr
  • NomenThutmose Neferkheperu
    Thoth is born, beautiful of forms
  • G39N5
    G26msnfrxpr
  • Horus nameKanakht Khaemwaset
    Mighty Bull, Arising in Thebes
  • G5
    E1
    D40
    N28mS40t
    O49
  • Nebty nameWahnesytmireempet
    Enduring in kingship like Re in heaven
  • G16
    V29swtiira
    Z1
    mimQ3 X1
    N1
  • Golden HorusSekhempahtydsejerkhaw
    Powerful of strength, holy of diadems
  • G8
    sxmF9
    F9
    D45
    N28
    Z3

Consort(s)Satiah,[28] Hatshepsut-Meryetre, Nebtu, Menwi, Merti, Menhet
ChildrenAmenemhat, Amenhotep II, Beketamun, Iset, Menkheperre, Meryetamun, Meryetamun, Nebetiunet, Nefertiry, Siamun[28]
FatherThutmose II (?)
MotherIset
Died1425 BC
BurialKV34
MonumentsCleopatra's Needles

Elizabeth II

[edit]

Testcase checks:

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


Collapsible list/testcases
Photograph of Queen Elizabeth II
Elizabeth in 2015


Collapsible list/testcases
Photograph of Queen Elizabeth II
Elizabeth in 2015

List in list

[edit]


References

[edit]
  1. ^ "The Union: Official Language". Ministry of Home Affairs, Government of India. National Informatics Centre(NIC). 2007. Retrieved 2009-06-11.
  2. ^ a b "Notification No. 2/8/60-O.L., dated 27 April, 1960". Ministry of Home Affairs, Government of India. National Informatics Centre(NIC). Retrieved 2009-06-11.
  3. ^ "Official Languages Resolution, 1968". Ministry of Home Affairs, Government of India. National Informatics Centre(NIC). Retrieved 2009-06-11..
  4. ^ a b c d "India at a Glance". Know India Portal. National Informatics Centre(NIC). Retrieved 2007-12-07.
  5. ^ a b Department of Economic and Social Affairs Population Division (2009). "World Population Prospects, Table A.1" (PDF). 2008 revision. United Nations. Retrieved 2009-03-12.
  6. ^ "India at a glance: Population". Census of India, 2001. Government of India. Retrieved 2009-04-25.
  7. ^ a b c d e f g h "India". International Monetary Fund. Retrieved 2009-10-01.
  8. ^ "Total Area of India" (PDF). Country Studies, India. Library of Congress – Federal Research Division. December 2004. Retrieved 2007-09-03. The country's exact size is subject to debate because some borders are disputed. The Indian government lists the total area as 3,287,260 square kilometres and the total land area as 3,060,500 square kilometres; the United Nations lists the total area as 3,287,263 square kilometres and total land area as 2,973,190 square kilometres.
  9. ^ "The Union: Official Language". Ministry of Home Affairs, Government of India. National Informatics Centre(NIC). 2007. Retrieved 2009-06-11.
  10. ^ "Official Languages Resolution, 1968". Ministry of Home Affairs, Government of India. National Informatics Centre(NIC). Retrieved 2009-06-11..
  11. ^ "India at a glance: Population". Census of India, 2001. Government of India. Retrieved 2009-04-25.
  12. ^ "Total Area of India" (PDF). Country Studies, India. Library of Congress – Federal Research Division. December 2004. Retrieved 2007-09-03. The country's exact size is subject to debate because some borders are disputed. The Indian government lists the total area as 3,287,260 square kilometres and the total land area as 3,060,500 square kilometres; the United Nations lists the total area as 3,287,263 square kilometres and total land area as 2,973,190 square kilometres.
  13. ^ a b c d "Era 1: 1910-1925". united.com. United Airlines, Inc. 2007. Archived from the original on 2008-05-10. Retrieved 2011-01-13. ...Walter T Varney, who launched air mail service over a desolate stretch of terrain between Pasco, Wash., and Elko, Nev., on April 6, 1926. {{cite web}}: |archive-date= / |archive-url= timestamp mismatch; 2006-11-30 suggested (help)
  14. ^ a b Fredericks, Darold (2010-11-29). "Walter Varney Airfield and United Airlines". smdailyjournal.com. San Mateo Daily Journal. Archived from the original on 2011-01-03. Retrieved 2011-01-13. He later based his business, Varney Air Lines, in Boise, Idaho.
  15. ^ a b "Era 2: 1926-1933". united.com. United Airlines, Inc. 2007. Archived from the original on 2008-05-10. Retrieved 2011-01-13. Pilot Leon Cuddeback's historic flight for Walter T. Varney's airline on April 6, 1926, was only the start {{cite web}}: |archive-date= / |archive-url= timestamp mismatch; 2007-05-20 suggested (help)
  16. ^ PBS - Chasing the Sun - Boeing
  17. ^ a b "Airline Certificate Information - Detail View". av-info.faa.gov. Federal Aviation Administration. 2011. Archived from the original on 2011-01-13. Retrieved 2011-01-13. Certificate Number UALA011A
  18. ^ a b "Mileage Plus Rules". united.com. United Airlines, Inc. 2011. Archived from the original on 2011-01-13. Retrieved 2011-01-13. Mileage can be accrued only for flights, hotel stays, car rentals or transactions actually taken or performed by the member after the member's official enrollment date...
  19. ^ a b "Star Alliance". united.com. United Airlines, Inc. 2011. Archived from the original on 2011-01-13. Retrieved 2011-01-13. The Star Alliance was established in 1997 as the first truly global airline alliance...
  20. ^ a b "2009 Form 10-K Subdocument 8 - EX-21 - LIST OF UAL CORPORATION AND UNITED AIR LINES, INC. SUBSIDIARIES". ir.united.com. UAL Corporation. 2010-02-26. Archived from the original on 2011-01-13. Retrieved 2011-01-13. UAL Corporation and United Air Lines, Inc. Subsidiaries...
  21. ^ a b c d e f g h i j "Form 10-K United Continental Holdings, Inc". ir.united.com. United Continental Holdings, Inc. 2010-02-26. Retrieved 2011-01-11. (In Millions, except rates)...Operating revenues $16,335
  22. ^ a b "Red Carpet Club membership details". united.com. United Airlines, Inc. 2011. Archived from the original on 2011-01-13. Retrieved 2011-01-13. Discover why our most frequent travelers choose United Red Carpet Club as their oasis.
  23. ^ PBS - Chasing the Sun - Boeing
  24. ^ a b Kim Richard Nossal. Lonely Superpower or Unapologetic Hyperpower? Analyzing American Power in the post–Cold War Era. Biennial meeting, South African Political Studies Association, 29 June-2 July 1999. Retrieved 2007-02-28.
  25. ^ Country profile: United States of America, BBC News. Retrieved July 22, 2008.
  26. ^ Country profile: United States of America, BBC News. Retrieved July 22, 2008.
  27. ^ Clayton, Peter. Chronicle of the Pharaohs, Thames & Hudson Ltd., 1994. p.104
  28. ^ a b c d Dodson, Aidan. Hilton, Dyan. The Complete Royal Families of Ancient Egypt, Thames and Hudson. p132. 2004. ISBN 0-500-05128-3
  29. ^ Clayton, Peter. Chronicle of the Pharaohs, Thames & Hudson Ltd., 1994. p.104