Jump to content
Wikipedia The Free Encyclopedia

Template:NUMBEROFSECTIONS

From Wikipedia, the free encyclopedia

0

Template documentation[view] [edit] [history] [purge]
This template uses Lua:

Usage

Use to get the number of sections of a specified level on a specified page or without specifying either parameter (see below), get the number of level 2 ( i.e. sections denoted by "==" ) sections on the page where called.

Parameters

Getting the number of sections on the page where placed
{{NUMBEROFSECTIONS}} will transclude the number of level 2 sections in the page this is placed = 0
{{NUMBEROFSECTIONS|level=3}} will transclude the number of level 3 sections in the page this is placed = 0
Getting the number of sections on other pages
{{NUMBEROFSECTIONS|Wikipedia:Village pump (technical)}} will transclude the number of level 2 sections in Wikipedia:Village pump (technical) = 25
{{NUMBEROFSECTIONS|Wikipedia:Village pump (idea lab)|level=4}} will transclude the number of level 4 sections in Wikipedia:Village pump (idea lab) = 0
{{NUMBEROFSECTIONS|Wikipedia:Village pump (proposals)|level=23}} will transclude the number of level 2 and 3 sections in Wikipedia:Village pump (proposals) = 22
Arbitrary numbers of pages
State any number of # delimited pages to get the total number of named sections ( or the default 2s ) in those pages e.g. to get the number of level 4 sections in Wikipedia:Village pump (proposals), (technical) and (idea lab):
{{NUMBEROFSECTIONS|Wikipedia:Village pump (proposals)#Wikipedia:Village pump (technical)#Wikipedia:Village pump (idea lab)|level=4}} = 2

See also

The above documentation is transcluded from Template:NUMBEROFSECTIONS/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.


AltStyle によって変換されたページ (->オリジナル) /