Jump to content

Module:NUMBEROFSECTIONS/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
basic starter doc
 
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 {{tls|NUMBEROFSECTIONS}} and may be expanded to include any other NUMBEROFthings.}}
{{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

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 or 5 3 4 equates to:
sections with a level 3 ( "===" ), 4 ( "====" ) or 5 ( "=====" ) heading.
{{#invoke:NUMBEROF|sections|Wikipedia:Village pump (technical)|2}} produces 28