Module:NUMBEROFSECTIONS/doc: Difference between revisions

Content deleted Content added
reduced rating to alpha - planned improvement after sleep
Bump rating
 
(5 intermediate revisions by 3 users not shown)
Line 1:
{{Module rating |alphaprotected}}
<!-- 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:NUMBEROFNUMBEROFSECTIONS|sectionsmain| page name ''[ # page name [ # ... <nowiki>] ]</nowiki>'' | level = section level number(s) }}</nowiki></code>
:*# Multiple ''page name''s <small>'''(at least one required)'''</small> isare the name<code>#</code> delimited names of any Wikipedia pagepages (including namespacenamespaces).
:*# ''section level(s)'' <small>'''(required)'''</small> is any group of numerals between ''21'' 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:NUMBEROFSECTIONS|main|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 | |