Module:NUMBEROFSECTIONS/doc: Difference between revisions
Appearance
Content deleted Content added
Fred Gandt (talk | contribs) reduced rating to alpha - planned improvement after sleep |
Fred Gandt (talk | contribs) update per update |
||
Line 4: | Line 4: | ||
{{important|This module is invoked by {{tl|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)}} |
: <code><nowiki>{{</nowiki> #invoke:NUMBEROF | sections | page name ''[ | page name [ | ... <nowiki>] ]</nowiki>'' | section level(s) }}</code> |
||
:* ''page name'' <small>'''(required)'''</small> |
:* Multiple ''page name''s <small>'''(at least one required)'''</small> are the names of any Wikipedia pages (including namespaces). |
||
:* ''section level(s)'' <small>'''(required)'''</small> is any group of numerals between '' |
:* ''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. |
::: sections with a level <code>3</code> ( "===" ), <code>4</code> ( "====" ) or <code>5</code> ( "=====" ) heading. |
||
: <code><nowiki>{{#invoke:NUMBEROF|sections|Wikipedia:Village pump (technical)|2}}</nowiki></code> produces <code>{{NUMBEROFSECTIONS|Wikipedia:Village pump (technical)}}</code> |
: <code><nowiki>{{#invoke:NUMBEROF|sections|Wikipedia:Village pump (technical)|level=2}}</nowiki></code> produces <code>{{NUMBEROFSECTIONS|Wikipedia:Village pump (technical)}}</code> |
||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
Revision as of 05:45, 25 March 2016
Usage
![]() | This module is invoked by {{NUMBEROFSECTIONS}} and may be expanded to include any other NUMBEROFthings. |
sections
{{ #invoke:NUMBEROF | sections | page name [ | page name [ | ... ] ] | section level(s) }}
- Multiple page names (at least one required) are the names of any Wikipedia pages (including namespaces).
- section level(s) (required) is any group of numerals between 1 and 6 (inclusive) e.g.
435
or5 3 4
equates to:
- sections with a level
3
( "===" ),4
( "====" ) or5
( "=====" ) heading.
- sections with a level
{{#invoke:NUMBEROF|sections|Wikipedia:Village pump (technical)|level=2}}
produces28