section
Attributes:
- title="0 or 1" • Display either the section (0) name or its title (1). Default is 0.
- link="0 or 1" • Display as plain text (0) or a link (1). Default is 0.
- wraptag="tag text" • HTML tag name to be used as the wraptag, without brackets. Default is empty.
- class="class name" • CSS class name to apply to the wraptag. Default is unset.
- url="boolean" • Whether to display the url as text, link attribute overrides this setting. Available values: 1 (yes) or 0 (no). Default is 0 (no).
- name="section name" • Sets the link to the named section. Default is empty, which sets the link to the current section.
Behaviors:
The section tag can be used as either a single tag or container tag. It will display information about the section as defined by either the name attribute, the section currently being viewed, or the section of the article being displayed (if used within an article form or an if_individual_article conditional tag). When used as a containing tag it will turn the contents into a link to that section, otherwise it will return plain text.
Attribute priorities:
- If used as a container tag, contained text is linked according to context and current settings, "link" and "url" attributes are disregarded..
- If used as a single tag with "link" set to 1 , the "url" attribute is disregarded.
- If used as a single tag with "url" set to 1 and "link" not set, the current url is returned as text.
- All other attributes are unaffected by this hierarchy.