Child pages
  • Section Macro

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Document Properties Marker
doctypemacro
overridefalse
Doctypemacrohide
NameSection Macro 
Short DescriptionRenders a section, if the body is not empty. Supports authors to create content, clutter-free rendering without empty sections. 
Parent
Parent Property
property-nameName
 
Audience
Name List
doctyperole
render-no-hits-as-blanktrue
render-list-as-comma-separated-valuestrue
namesAuthor, Template Author
 
TagsHide, Section 
Iteration
Iteration
valueproduction
 
CategoryTransclusion / Marker 
SelectorsownMacroStylehide
Sort Keyhide
projectdoc Toolbox VersionSection Macro 
Since1.1 
Section
indextrue
show-titlefalse
titleDescription

This macro renders a section with a title and its content. The content is added to the macro's body.

If the content is empty, the section will not be rendered. This macro is an essential element for template authors. The structure of a template for a document type can be defined so that document authors have guidance which information to place where. But as long as no content is provided by the document author, the reader of the document is not distracted by empty sections.

...