Difference between revisions of "Module:Section sizes/doc"

MyWikiBiz, Author Your Legacy — Sunday September 07, 2025
Jump to navigationJump to search
(Pywikibot 6.4.0)
 
(No difference)

Latest revision as of 05:55, 16 July 2021

This module creates a wikitable that lists each section in a page along with that section's size in bytes. Each section is wikilinked to its target in the page; subsections are indented; largest section's byte-count is highlighted in red.

Usage

This module has a single entry point: {{#invoke:Section sizes|size|<Template:Var>|style=<Template:Var>}}

size() takes two arguments from frame:

<Template:Var> (required) – the first positional parameter is the page name; may include namespace
Template:Para (optional) – css string suitable for use in the table's style= attribute; for example to render the table at the right side of the page:
{{#invoke:Section sizes|size|<Template:Var>|style=float:right; margin-left:.5em}}