Template:Section: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 48: | Line 48: | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly><div class="pz-section theme-{{#switch:{{{class|}}}|blue=blue|#default=red}}" {{#if:{{{style|}}}|style="{{{style}}}"}}> | ||
<div class="pz-section theme-{{#switch:{{{class|}}}|blue=blue|#default=red}}" {{#if:{{{style|}}}|style="{{{style}}}"}}> | |||
=={{#if:{{{1|}}}|{{{1}}}|Section Heading}}== | =={{#if:{{{1|}}}|{{{1}}}|Section Heading}}== | ||
<div> | <div> | ||
Revision as of 21:05, 28 March 2026
English • čeština • Deutsch • español • français • italiano • 日本語 • 한국어 • polski • português • português do Brasil • русский • ไทย • Türkçe • українська • Tiếng Việt • 中文(简体) • 中文(繁體)
File:Notebook.pngDocumentation
This template relies heavily on CSS for its layout and styling.
Any edits may affect layout or appearance across multiple pages.
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.