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 185,332 10.42%% / 19,305 24.85%% / 46,052 6.95%% / 12,885 16.06%% / 29,773 6.11%% / 11,319 20.56%% / 38,098 11.20%% / 20,766
Belgium 216,340 14.30%% / 30,942 9.12%% / 19,734 8.41%% / 18,201 19.38%% / 41,927 11.97%% / 25,893 16.88%% / 36,510 15.20%% / 32,881
Denmark 229,865 7.67%% / 17,632 10.78%% / 24,788 10.90%% / 25,062 14.26%% / 32,779 16.58%% / 38,113 17.77%% / 40,855 18.47%% / 42,448
France 280,237 7.13%% / 19,993 17.72%% / 49,651 6.46%% / 18,091 16.46%% /46,135 14.54%% / 40,757 15.50%% / 43,442 19.47%% / 54,571

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]