Module:NUMBEROFSECTIONS/doc: Difference between revisions
Appearance
Content deleted Content added
Fred Gandt (talk | contribs) basic starter doc |
Fred Gandt (talk | contribs) m tls --> tl |
||
Line 2: | Line 2: | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> |
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> |
||
== Usage == |
== Usage == |
||
{{important|This module is invoked by {{ |
{{important|This module is invoked by {{tl|NUMBEROFSECTIONS}} and may be expanded to include any other NUMBEROFthings.}} |
||
; <code>sections</code> |
; <code>sections</code> |
||
: <code><nowiki>{{#invoke:NUMBEROF|sections|page name|section level(s)}}</nowiki></code> |
: <code><nowiki>{{#invoke:NUMBEROF|sections|page name|section level(s)}}</nowiki></code> |
Revision as of 16:16, 24 March 2016
Usage
![]() | This module is invoked by {{NUMBEROFSECTIONS}} and may be expanded to include any other NUMBEROFthings. |
sections
{{#invoke:NUMBEROF|sections|page name|section level(s)}}
- page name (required) is the name of any Wikipedia page (including namespace).
- section level(s) (required) is any group of numerals between 2 and 6 (inclusive) e.g.
435
or5 3 4
equates to:
- sections with a level
3
( "===" ),4
( "====" ) or5
( "=====" ) heading.
- sections with a level
{{#invoke:NUMBEROF|sections|Wikipedia:Village pump (technical)|2}}
produces28