Module:NUMBEROFSECTIONS/doc: Difference between revisions

Content deleted Content added
m Johnuniq moved page Module:NUMBEROF/doc to Module:NUMBEROFSECTIONS/doc without leaving a redirect: implement Template talk:NUMBEROF#Requested move 3 May 2020 a little early to allow final development of the separate NUMBEROF and NUMBEROFSECTIONS functions
Update doc for move
Line 2:
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
== Usage ==
{{important|This module is invoked by {{tl|NUMBEROFSECTIONS}} and may be expanded to include any other NUMBEROFthings.}}
; <code>sections</code>
: <code><nowiki>{{</nowiki> #invoke:NUMBEROF NUMBEROFSECTIONS| sections main| page name ''[ # page name [ # ... <nowiki>] ]</nowiki>'' | level = section level number(s) }}</code>
:# Multiple ''page name''s <small>'''(at least one required)'''</small> are the <code>#</code> delimited names of any Wikipedia pages (including namespaces).
:# ''section level(s)'' <small>'''(required)'''</small> is any group of numerals between ''1'' and ''6'' (inclusive) ''e.g.'' <code>435</code> or <code>5 3 4</code> equates to:
::: sections with a level <code>3</code> ( "===" ), <code>4</code> ( "====" ) or <code>5</code> ( "=====" ) heading.
: <code><nowiki>{{#invoke:NUMBEROFNUMBEROFSECTIONS|sectionsmain|Wikipedia:Village pump (technical)|level=2}}</nowiki></code> produces <code>{{NUMBEROFSECTIONS|Wikipedia:Village pump (technical)}}</code>
: <code><nowiki>{{#invoke:NUMBEROFNUMBEROFSECTIONS|sectionsmain|Wikipedia:Village pump (technical)#Wikipedia:Village pump (proposals)|level=2}}</nowiki></code> produces <code>{{NUMBEROFSECTIONS|Wikipedia:Village pump (technical)#Wikipedia:Village pump (proposals)}}</code>
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |