Template:ShowSecHead
Jump to navigation
Jump to search
[edit] [ ] Template documentation
This documentation is transcluded from Template:ShowSecHead/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and test cases (create) pages.
Subpages of this template.
Editors can experiment in this template's sandbox (create) and test cases (create) pages.
Subpages of this template.
Description
This template uses a numerical index to extract a page section (with the header).
Usage
{{ShowSecHead|page|section number|(optional) header for section 0}}
Section number | Result |
---|---|
0 | With the use of only the first two variables, this will display the page name, however with the use of the third variable, this will display the 3rd variable |
-1 | Displays the last header of the page (-2 cannot be used to display the second last section, and so on.) |
no number input | Treated as though it were section 0 |
NB: The header is returned with no formatting included. If you are wanting to have the header formatted to have the appearance of a header, please use {{H1}} - {{H6}}, as standard header formatting (<h2>, ==) can cause unusual results.