跳转到内容

模板:Collapsible list/testcases

维基百科,自由的百科全书

Expand

[编辑]
{{Collapsible list|1|2|3}}
左右对比
{{Collapsible list}}{{Collapsible list/sandbox}}
列表
  • 1
  • 2
  • 3
列表
  • 1
  • 2
  • 3
{{Collapsible list|1|2|3|expand=}}
左右对比
{{Collapsible list}}{{Collapsible list/sandbox}}
列表
  • 1
  • 2
  • 3
列表
  • 1
  • 2
  • 3
{{Collapsible list|1|2|3|expand=true}}
左右对比
{{Collapsible list}}{{Collapsible list/sandbox}}
列表
  • 1
  • 2
  • 3
列表
  • 1
  • 2
  • 3
{{Collapsible list|1|2|3|expand=false}}
左右对比
{{Collapsible list}}{{Collapsible list/sandbox}}
列表
  • 1
  • 2
  • 3
列表
  • 1
  • 2
  • 3
{{Collapsible list|1|2|3|expand=anything else}}
左右对比
{{Collapsible list}}{{Collapsible list/sandbox}}
列表
  • 1
  • 2
  • 3
列表
  • 1
  • 2
  • 3

Long title example

[编辑]

Long title example w/ bullets

[编辑]
左右对比
{{Collapsible list}}{{Collapsible list/sandbox}}
Republic of India
भारत गणराज्य*
Bhārat Gaṇarājya
Collapsible list/testcases
首都New Delhi
28°36.8′N 77°12.5′E / 28.6133°N 77.2083°E / 28.6133; 77.2083
最大城市Mumbai
官方语言
  • Hindi in the Devanagari script is the official language of the Union[1] and English the "subsidiary official language".[2]
Constitutionally recognised
languages
政府Federal republic,
parliamentary democracy[4]
• President
Pratibha Patil
Manmohan Singh
K. G. Balakrishnan
立法机构Sansad
Rajya Sabha
Lok Sabha
Independence 
• Declared
15 August 1947
• Republic
26 January 1950
面积
• 总计
3,287,240平方公里7th
• 水域率
9.56%
人口
• 2009年估计
1,198,003,000[5]2nd
• 2001年普查
1,028,610,328[6]
• 密度
364.4/平方公里(32nd
GDPPPP2008年估计
• 总计
$3.298 trillion[7]
• 人均
$2,780[7]
GDP(国际汇率)2008年估计
• 总计
$1.206 trillion[7]
• 人均
$1,017[7]
货币Indian rupee (₨)(INR
时区UTC+5:30IST
UTC+5:30(not observed)
行驶方位left
电话区号91
ISO 3166码IN
互联网顶级域.in
Non-numbered Footnotes:
Republic of India
भारत गणराज्य*
Bhārat Gaṇarājya
Collapsible list/testcases
首都New Delhi
28°36.8′N 77°12.5′E / 28.6133°N 77.2083°E / 28.6133; 77.2083
最大城市Mumbai
官方语言
  • Hindi in the Devanagari script is the official language of the Union[9] and English the "subsidiary official language".[2]
Constitutionally recognised
languages
政府Federal republic,
parliamentary democracy[4]
• President
Pratibha Patil
Manmohan Singh
K. G. Balakrishnan
立法机构Sansad
Rajya Sabha
Lok Sabha
Independence 
• Declared
15 August 1947
• Republic
26 January 1950
面积
• 总计
3,287,240平方公里7th
• 水域率
9.56%
人口
• 2009年估计
1,198,003,000[5]2nd
• 2001年普查
1,028,610,328[11]
• 密度
364.4/平方公里(32nd
GDPPPP2008年估计
• 总计
$3.298 trillion[7]
• 人均
$2,780[7]
GDP(国际汇率)2008年估计
• 总计
$1.206 trillion[7]
• 人均
$1,017[7]
货币Indian rupee (₨)(INR
时区UTC+5:30IST
UTC+5:30(not observed)
行驶方位left
电话区号91
ISO 3166码IN
互联网顶级域.in
Non-numbered Footnotes:
左右对比
{{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
左右对比
{{Collapsible list}}{{Collapsible list/sandbox}}
Proclus Lycaeus
Full nameProclus Lycaeus
Other names"The Successor" (ὁ Διάδοχος)
Born(412-02-08)412年2月8日
Byzantium
Died485年4月17日(485岁—04—17)(73岁)
EraAncient philosophy
RegionWestern philosophy
SchoolNeoplatonism
Proclus Lycaeus
Full nameProclus Lycaeus
Other names"The Successor" (ὁ Διάδοχος)
Born(412-02-08)412年2月8日
Byzantium
Died485年4月17日(485岁—04—17)(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}}
左右对比
{{Collapsible list}}{{Collapsible list/sandbox}}
United Airlines
IATA ICAO 呼号
UA UAL UNITED
创立于1926年4月6日 (1926-04-06)
Boise, Idaho, U.S.
(as Varney Air Lines)[13][14]
开始营运1926年4月6日 (1926-04-06)[15]
1927 (as Boeing Air Transport)[16]
AOC编号英语Air operator's certificateUALA011A[17]
枢纽机场
飞行常客
奖励计划
Mileage Plus[18]
贵宾休息室Red Carpet Club[19]
航空联盟Star Alliance[20]
子公司
Subsidiaries List[21]
  • 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 Data List
  • 362 active
  • 50 orders
  • 100 options
通航城市216
母公司United Continental Holdings, Inc.
总部Chicago, Illinois, U.S.
重要人物
营业额 US$16,335 million (FY 2009)[22]
税前盈余 US$–161 million (FY 2009)[22]
净利润 US$–651 million (FY 2009)[22]
总资产 US$18,684 million (FY 2009)[22]
总股本 US$–2,452 million (FY 2009)[22]
网站www.united.com
United Airlines
IATA ICAO 呼号
UA UAL UNITED
创立于1926年4月6日 (1926-04-06)
Boise, Idaho, U.S.
(as Varney Air Lines)[13][14]
开始营运1926年4月6日 (1926-04-06)[15]
1927 (as Boeing Air Transport)[23]
AOC编号英语Air operator's certificateUALA011A[17]
枢纽机场
飞行常客
奖励计划
Mileage Plus[18]
贵宾休息室Red Carpet Club[19]
航空联盟Star Alliance[20]
子公司
Subsidiaries List[21]
  • 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 Data List
  • 362 active
  • 50 orders
  • 100 options
通航城市216
母公司United Continental Holdings, Inc.
总部Chicago, Illinois, U.S.
重要人物
营业额 US$16,335 million (FY 2009)[22]
税前盈余 US$–161 million (FY 2009)[22]
净利润 US$–651 million (FY 2009)[22]
总资产 US$18,684 million (FY 2009)[22]
总股本 US$–2,452 million (FY 2009)[22]
网站www.united.com

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
List within image caption
左右对比
{{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
  •   United States of America (Current superpower)[24][25]
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

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

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
Tuthmosis III
左右对比
{{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
Elizabeth II
左右对比
{{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


References
  1. ^ The Union: Official Language. Ministry of Home Affairs, Government of India. National Informatics Centre(NIC). 2007 [2009-06-11]. 
  2. ^ 2.0 2.1 Notification No. 2/8/60-O.L., dated 27 April, 1960. Ministry of Home Affairs, Government of India. National Informatics Centre(NIC). [2009-06-11]. 
  3. ^ Official Languages Resolution, 1968. Ministry of Home Affairs, Government of India. National Informatics Centre(NIC). [2009-06-11]. .
  4. ^ 4.0 4.1 4.2 4.3 India at a Glance. Know India Portal. National Informatics Centre(NIC). [2007-12-07]. 
  5. ^ 5.0 5.1 Department of Economic and Social Affairs Population Division. World Population Prospects, Table A.1 (.PDF). 2008 revision. United Nations. 2009 [2009-03-12].  参数|author=值左起第42位存在换行符 (帮助)
  6. ^ India at a glance: Population. Census of India, 2001. Government of India. [2009-04-25]. 
  7. ^ 7.0 7.1 7.2 7.3 7.4 7.5 7.6 7.7 India. International Monetary Fund. [2009-10-01]. 
  8. ^ Total Area of India (PDF). Country Studies, India. Library of Congress – Federal Research Division. December 2004 [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 [2009-06-11]. 
  10. ^ Official Languages Resolution, 1968. Ministry of Home Affairs, Government of India. National Informatics Centre(NIC). [2009-06-11]. .
  11. ^ India at a glance: Population. Census of India, 2001. Government of India. [2009-04-25]. 
  12. ^ Total Area of India (PDF). Country Studies, India. Library of Congress – Federal Research Division. December 2004 [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. ^ 13.0 13.1 13.2 13.3 Era 1: 1910-1925. united.com. United Airlines, Inc. 2007 [2011-01-13]. (原始内容存档于2008-05-10). ...Walter T Varney, who launched air mail service over a desolate stretch of terrain between Pasco, Wash., and Elko, Nev., on April 6, 1926. 
  14. ^ 14.0 14.1 Fredericks, Darold. Walter Varney Airfield and United Airlines. smdailyjournal.com. San Mateo Daily Journal. 2010-11-29 [2011-01-13]. (原始内容存档于2011-01-03). He later based his business, Varney Air Lines, in Boise, Idaho. 
  15. ^ 15.0 15.1 Era 2: 1926-1933. united.com. United Airlines, Inc. 2007 [2011-01-13]. (原始内容存档于2008-05-10). Pilot Leon Cuddeback's historic flight for Walter T. Varney's airline on April 6, 1926, was only the start 
  16. ^ PBS - Chasing the Sun - Boeing
  17. ^ 17.0 17.1 Airline Certificate Information - Detail View. av-info.faa.gov. Federal Aviation Administration. 2011 [2011-01-13]. (原始内容存档于2011-01-13). Certificate Number UALA011A 
  18. ^ 18.0 18.1 Mileage Plus Rules. united.com. United Airlines, Inc. 2011 [2011-01-13]. (原始内容存档于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. ^ 19.0 19.1 Red Carpet Club membership details. united.com. United Airlines, Inc. 2011 [2011-01-13]. (原始内容存档于2011-01-13). Discover why our most frequent travelers choose United Red Carpet Club as their oasis. 
  20. ^ 20.0 20.1 Star Alliance. united.com. United Airlines, Inc. 2011 [2011-01-13]. (原始内容存档于2011-01-13). The Star Alliance was established in 1997 as the first truly global airline alliance... 
  21. ^ 21.0 21.1 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 [2011-01-13]. (原始内容存档于2011-01-13). UAL Corporation and United Air Lines, Inc. Subsidiaries... 
  22. ^ 22.00 22.01 22.02 22.03 22.04 22.05 22.06 22.07 22.08 22.09 Form 10-K United Continental Holdings, Inc.. ir.united.com. United Continental Holdings, Inc. 2010-02-26 [2011-01-11]. (In Millions, except rates)...Operating revenues $16,335 
  23. ^ PBS - Chasing the Sun - Boeing
  24. ^ 24.0 24.1 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. [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. ^ Clayton, Peter. Chronicle of the Pharaohs, Thames & Hudson Ltd., 1994. p.104
  29. ^ 29.0 29.1 29.2 29.3 Dodson, Aidan. Hilton, Dyan. The Complete Royal Families of Ancient Egypt, Thames and Hudson. p132. 2004. ISBN 0-500-05128-3
  30. ^ Clayton, Peter. Chronicle of the Pharaohs, Thames & Hudson Ltd., 1994. p.104
  31. ^ Clayton, Peter. Chronicle of the Pharaohs, Thames & Hudson Ltd., 1994. p.104