Module:NUMBEROFSECTIONS/doc explained

Usage

sections
  • <nowiki>{{</nowiki> #invoke:NUMBEROFSECTIONS|main| page name ''[ # page name [ # ... <nowiki>] ]</nowiki>'' | level = section level number(s) }}
    1. Multiple page names (at least one required) are the # delimited names of any Wikipedia pages (including namespaces).
    1. section level(s) (required) is any group of numerals between 1 and 6 (inclusive) e.g. 435 or 5 3 4 equates to:

    sections with a level 3 ("

    "), 4 ("

    ") or 5 ("

    ") heading.

    <nowiki>{{#invoke:NUMBEROFSECTIONS|main|Wikipedia:Village pump (technical)|level=2}}</nowiki> produces {{NUMBEROFSECTIONS|Wikipedia:Village pump (technical)}}

    <nowiki>{{#invoke:NUMBEROFSECTIONS|main|Wikipedia:Village pump (technical)#Wikipedia:Village pump (proposals)|level=2}}</nowiki> produces {{NUMBEROFSECTIONS|Wikipedia:Village pump (technical)#Wikipedia:Village pump (proposals)}}