Changes

MyWikiBiz, Author Your Legacy — Wednesday October 08, 2025
Jump to navigationJump to search
Pywikibot 6.4.0
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:
<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|size|&lt;{{var|page name}}>|style=&lt;{{var|style string}}>}}</code>

<code>size()</code> takes two arguments from <code>frame</code>:
:<code>&lt;{{var|page name}}></code> (required) – the first positional parameter is the page name; may include namespace
:{{para|style}} (optional) – css string suitable for use in the table's <code>style=</code> attribute; for example to render the table at the right side of the page:
::<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|size|&lt;{{var|page name}}>|style=float:right; margin-left:.5em}}</code>

<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->

}}</includeonly>

Navigation menu