Template:Section

From Species-ID
Jump to: navigation, search

Purpose: Text sections are not always reliably recognized by their heading. For example, a section "distribution" may be labeled with a heading "Distribution in Asia" (because only information from Asia is available to the author). To simplify later recognition and re-use, we introduce a mechanism to classify sections unambiguously and independently of the display text (using a parameter "class"). Two methods exist:

{{Section|class=distribution|heading = Distribution}}
Content text text text text.

results in:

Distribution

Content text text text text.


(here the content will be assumed to go until the next heading) and

{{Section|class=distribution|heading = Distribution
| content=  Content text text text text.
}}

results in:

Distribution

Content text text text text.


An optional parameter "level" (default is 2) can be used to define the heading level. Valid values are 2, 3, 4, and 5.

Note: the parameter "class" was called "id" in an earlier version of this template. However, "id" is misleading since a section may occur multiple times (including non-consecutively).