Module:Section sizes/doc: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
|||
Line 12: | Line 12: | ||
== See also == |
== See also == |
||
* [[Template:Section sizes]], a pre-styled template for talk pages which invokes this module |
* [[Template:Section sizes]], a pre-styled template for talk pages which invokes this module |
||
* [[Template:Section length]], a simple template which invokes it to request the length of one named section, or related info |
|||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
Revision as of 06:47, 20 September 2024
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. Cells for section sizes are shaded according to the size; the smallest section's background is white, and the largest section's background is 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'sstyle=
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}}
See also
- Template:Section sizes, a pre-styled template for talk pages which invokes this module
- Template:Section length, a simple template which invokes it to request the length of one named section, or related info