Difference between revisions of "Module:NUMBEROFSECTIONS/doc"
Jump to navigation
Jump to search
blackwiki>Fred Gandt (basic starter doc) |
blackwiki>Fred Gandt 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
| This module is rated as beta, and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected. |
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.
435or5 3 4equates to:
- sections with a level
3( "===" ),4( "====" ) or5( "=====" ) heading.
- sections with a level
{{#invoke:NUMBEROF|sections|Wikipedia:Village pump (technical)|2}}producesTemplate:NUMBEROFSECTIONS