Jump to content

Template:Section length/testcases

From Wikipedia, the free encyclopedia


1. length in bytes of World War II#Background excluding subsections
{{Section length| World War II | Background }}

{{Section length}}

50

{{Section length/sandbox}}

50

2. length of World War II#Background including all subsections
{{Section length| World War II | Background | _all }}

{{Section length}}

8,868

{{Section length/sandbox}}

8,868

3. total length of World War II
{{Section length| World War II |_total }}

{{Section length}}

255,059

{{Section length/sandbox}}

255,059

4. as above, without the comma
{{Section length| World War II |_total |nosep=y}}

{{Section length}}

255059

{{Section length/sandbox}}

255059

5. length in bytes of the lead
{{Section length| World War II |_lead }}

{{Section length}}

12,033

{{Section length/sandbox}}

12,033

6. length of the lead as a percent of article length
{{Section length| World War II |_lead |pct=y}}

{{Section length}}

4.72%

{{Section length/sandbox}}

4.72%

7. same as #6; param 2 is optional
{{Section length| World War II |pct=y}}

{{Section length}}

4.72%

{{Section length/sandbox}}

4.72%

8. length in bytes of longest section
{{Section length| World War II |_max }}

{{Section length}}

62,792

{{Section length/sandbox}}

62,792

9. total length in bytes of France
{{Section length| France |_total }}

{{Section length}}

280,237

{{Section length/sandbox}}

280,237

10. length of the lead section in bytes
{{Section length| France |_lead }}

{{Section length}}

19,993

{{Section length/sandbox}}

19,993

11. same as above; param 2 is optional
{{Section length| France }}

{{Section length}}

19,993

{{Section length/sandbox}}

19,993

12. length of the lead section as a percent of article length
{{Section length| France |pct=y}}

{{Section length}}

7.13%

{{Section length/sandbox}}

7.13%

13. length of France#Environment
{{Section length| France | Environment }}

{{Section length}}

12,113

{{Section length/sandbox}}

12,113

14. same as #13, without thousands separator
{{Section length| France | Environment |nosep=y}}

{{Section length}}

12113

{{Section length/sandbox}}

12113

15. length of section as a percent of article length
{{Section length| France | Environment |pct=y}}

{{Section length}}

4.32%

{{Section length/sandbox}}

4.32%

16. when the section doesn't exist
{{Section length| France | Whoopsie! |pct=y}}

{{Section length}}


{{Section length/sandbox}}


17. when the article doesn't exist
{{Section length| Franceee |pct=y}}

{{Section length}}

error: no article: Franceee (help)

{{Section length/sandbox}}

error: no article: Franceee (help)