### ENDSECTION\{"name"\} -- marks the end of a named section within a topic
- Syntax: `%ENDSECTION{"name"}%`
- Syntax: `%ENDSECTION{type="include"}%`
- Syntax: `%ENDSECTION{type="templateonly"}%`
- Syntax: `%ENDSECTION{type="expandvariables"}%`
- Supported parameter:
Parameter:
Description:
"name"
Name of the section.
type="..."
Type of the section being terminated; supported types "section", "include", "templateonly", "expandvariables"
- If the `STARTSECTION` is named, the corresponding `ENDSECTION` must also be named with the same name. If the `STARTSECTION` specifies a type, then the corresponding `ENDSECTION` must also specify the same type. If the section is unnamed, `ENDSECTION` will match with the nearest unnamed `%STARTSECTION%` **of the same type** above it.
- Related: [[STARTSECTION|Main/VarSTARTSECTION]]