Template:Section
This template is used to create a section box with a heading and content.
Because pages using this template don't need to be edited often, there is no need to remain the [edit] link next to the section heading. Therefore, this template automatically hides them with
__NOEDITSECTION__
magic word.Usage
Syntax
{{Section | Section heading | Section content | style = custom style | class = custom class }}
Parameters
1
- Section heading, default to
Section Heading
. 2
- Section content, default to
Section content.
. - If the content is not shown, the possible reason is that the content contains
=
so that the template cannot parse it correctly. To solve this problem, use2 =
to specify the content. style
- Custom style.
class
- Custom class for section heading, can be the following values:
red
(default)blue
Examples
{{Section}}
Section Heading
Section content.
{{Section|Custom Heading|Custom content.}}
Custom Heading
Custom content.
{{Section|class=blue}}
Section Heading
Section content.
How to translate
This template doesn't need to/shouldn't be translated, but you can translate the documentation of this template with the following steps:
- Create a subpage of this template with the language code of the language you want to translate to.
- Copy the code wrapped in the
<noinclude>
tag in this template into the page you created.{{Translation guide}}
template should be removed from the translated documentation.
- Translate the page according to the translation requirements of normal pages.
See also
The following pages transclude this template:
Editors can experiment in this template's sandbox.