Jump to content

Template talk:Section length

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Substability

[edit]

Not currently substable, but needs to be so we can take a snapshot in time of the length of a section. Should not be force-subst, though, because we want the ability for it to be dynamic as well; so should end up as, "may be substituted" but we are not there yet. Mathglot (talk) 05:33, 21 September 2024 (UTC)[reply]

Preview of a use case

[edit]

This should ultimately be generated with a for loop and a row iterator for a fuller version, but here's a hard-coded version, to give an idea of the possibilities with this template:

Comparison of seven sections commonly found in country articles:
Section ⟶
↓ Country
Lead History Geography Government
and politics
Economy Demographics Culture
Austria 181,555 10.49%% / 19,049 25.67%% / 46,603 6.85%% / 12,440 16.39%% / 29,751 6.13%% / 11,132 19.26%% / 34,971 11.32%% / 20,554
Belgium 216,990 12.06%% / 26,168 11.40%% / 24,744 8.51%% / 18,466 19.26%% / 41,795 11.96%% / 25,948 16.85%% / 36,568 15.16%% / 32,889
Denmark 234,716 7.67%% / 17,993 11.71%% / 27,496 10.76%% / 25,248 14.26%% / 33,473 16.34%% / 38,341 17.47%% / 40,995 18.30%% / 42,947
France 272,197 7.33%% / 19,951 18.48%% / 50,311 6.64%% / 18,067 16.93%% /46,070 12.82%% / 34,906 15.38%% / 41,853 19.63%% / 53,420

An extended version of this table is at Wikipedia:WikiProject Countries/Common section size (slow to load).

Note that the Government and politics section is not always called that, in particular, in Belgium and France it is not. This uses about 1% of PEIS (negligible) and 1.184 sec. of CPU usage. A page with six such tables rendered, but failed on the seventh. With six tables, it uses negligible PEIS, and 8.091 CPU seconds, for 14 module invocations per row, times 24 rows, or 336 invocations. Mathglot (talk) 08:41, 21 September 2024 (UTC)[reply]

Have removed from article space.

[edit]

I assume this is meant for talk pages? Just seen these a few times being added to the actual article. Should we not explain where it's usage to be.... or my mistaken? Moxy🍁 21:45, 2 January 2025 (UTC)[reply]