Jump to content

Module:Section sizes/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Trappist the monk (talk | contribs) at 12:57, 25 December 2018 (create;). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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|<page name>|style=<style string>}}

size() takes two arguments from frame:

<page name> (required) – the first positional parameter is the page name; may include namespace
|style= (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|<page name>|style=float:right; margin-left:.5em}}