Template:ShowSec
Jump to navigation
Jump to search
[edit] [ ] Template documentation
This documentation is transcluded from Template:ShowSec/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 (without the header). It is especially useful for CGI UnGames, where the {{Get}} template uses numbers anyway.
For other purposes, editors may be more interested in an alternative method using section titles instead.
Usage
{{ShowSec|page|section number}}
Section number | Result |
---|---|
0 | Displays the section of the page prior to the first header |
-1 | Displays the last section 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 |
See also
Alternative
Described by WP:SELECTIVETRANSCLUSION, the syntax is {{#section-h:page|section name}}
. If we assume the first section of Uncyclopedia:How To Be Funny And Not Just Stupid is entitled "Understand the big picture", these two statements are equivalent:
{{ShowSec|UN:HTBFANJS|1}}
{{#section-h:UN:HTBFANJS|Understand the big picture}}
Notice that a colon separates section-h
from the page name, not a pipe.