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,872

{{Section length/sandbox}}

8,872

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

{{Section length}}

255,263

{{Section length/sandbox}}

255,263

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

{{Section length}}

255263

{{Section length/sandbox}}

255263

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

{{Section length}}

12,034

{{Section length/sandbox}}

12,034

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

{{Section length}}

4.71%

{{Section length/sandbox}}

4.71%

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

{{Section length}}

4.71%

{{Section length/sandbox}}

4.71%

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

278,654

{{Section length/sandbox}}

278,654

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

{{Section length}}

20,930

{{Section length/sandbox}}

20,930

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

{{Section length}}

20,930

{{Section length/sandbox}}

20,930

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

{{Section length}}

7.51%

{{Section length/sandbox}}

7.51%

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.35%

{{Section length/sandbox}}

4.35%

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)