Difference between revisions of "Module:NUMBEROFSECTIONS/doc"
Jump to navigation
Jump to search
blackwiki>Johnuniq 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) |
m (8 revisions imported) |
||
| (One intermediate revision by one other user not shown) | |||
| 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 {{tl|NUMBEROFSECTIONS}} | + | {{important|This module is invoked by {{tl|NUMBEROFSECTIONS}}}} |
; <code>sections</code> | ; <code>sections</code> | ||
| − | : <code><nowiki>{{</nowiki> #invoke: | + | : <code><nowiki>{{</nowiki> #invoke:NUMBEROFSECTIONS|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). | :# 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: | :# ''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: | + | : <code><nowiki>{{#invoke:NUMBEROFSECTIONS|main|Wikipedia:Village pump (technical)|level=2}}</nowiki></code> produces <code>{{NUMBEROFSECTIONS|Wikipedia:Village pump (technical)}}</code> |
| − | : <code><nowiki>{{#invoke: | + | : <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 | | | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
Latest revision as of 08:04, 27 September 2020
| 26x26px | This module is rated as alpha. It is ready for third-party input, and may be used on a few pages to see if problems arise, but should be watched. Suggestions for new features or changes in their input and output mechanisms are welcome. |
Usage
| Caution | This module is invoked by {{NUMBEROFSECTIONS}} |
sections{{ #invoke:NUMBEROFSECTIONS|main| page name [ # page name [ # ... ] ] | level = section level number(s) }}- Multiple page names (at least one required) are the
#delimited names of any Wikipedia pages (including namespaces). - section level(s) (required) is any group of numerals between 1 and 6 (inclusive) e.g.
435or5 3 4equates to:
- sections with a level
3( "===" ),4( "====" ) or5( "=====" ) heading.
- sections with a level
- Multiple page names (at least one required) are the
{{#invoke:NUMBEROFSECTIONS|main|Wikipedia:Village pump (technical)|level=2}}producesTemplate:NUMBEROFSECTIONS{{#invoke:NUMBEROFSECTIONS|main|Wikipedia:Village pump (technical)#Wikipedia:Village pump (proposals)|level=2}}producesTemplate:NUMBEROFSECTIONS