Template:Page or Section
pagesection
Purpose
Outputs different text depending on whether it is in a section i.e. under a level 2 header.
Usage
{{Page or Section|<ledeText>|<sectionText>}}
- ledeText — The text to display if the template is in the lede (not in a section). Defaults to
page
. - sectionText — The text to display if the template is in a section. Defaults to
section
.
Examples
# | Input | Output |
---|---|---|
1 | {{Page or Section}} | pagesection |
The above documentation is transcluded from Template:Page or Section/Documentation. (edit | history)