MyWikiBiz, Author Your Legacy — Wednesday October 08, 2025
Jump to navigationJump to search
1,027 bytes added
, 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:
<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|size|<{{var|page name}}>|style=<{{var|style string}}>}}</code>
<code>size()</code> takes two arguments from <code>frame</code>:
:<code><{{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|<{{var|page name}}>|style=float:right; margin-left:.5em}}</code>
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
}}</includeonly>