Toggle menu
3
389
1
853
Seul En Groupe
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Section: Difference between revisions

Template page
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
{{Css}}
{{Css}}
This template is used to create a section box with a heading and content.
This template is used to create a section box with a heading and content.
{{Note|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 <code><nowiki>__NOEDITSECTION__</nowiki></code> [[mw:Help:Magic words#Behavior switches|magic word]].}}
==Usage==
==Usage==
===Syntax===
===Syntax===
Line 48: Line 45:
</noinclude>
</noinclude>


<includeonly>
<includeonly><div class="pz-section theme-{{#switch:{{{class|}}}|blue=blue|#default=red}}" {{#if:{{{style|}}}|style="{{{style}}}"}}>
__NOEDITSECTION__
<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>

Latest revision as of 21:07, 28 March 2026

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.

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, use 2 = to specify the content.
style
Custom style.
class
Custom class for section heading, can be the following values:
  • red (default)
  • blue

Examples


Section Heading

Section content.

  • {{Section|Custom Heading|Custom content.}}


Custom Heading

Custom content.


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:

  1. Create a subpage of this template with the language code of the language you want to translate to.
  2. 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.
  3. 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.