Double Bracket Template Syntax
Updated: 2025-09-28 20:57:48
This documentation was generated by Copilot's βClaude Sonnet 4 (Preview)β and has not yet been verified by a human.
This document provides comprehensive documentation for the terminology templates and specification references used in Spec-Up-T, an enhanced version of Spec-Up that adds terminology tooling capabilities.
Overviewβ
Spec-Up-T uses a double-bracket template syntax [[template-type:arguments]] to handle term definitions, references, and cross-specification linking. These templates are processed during the markdown-to-HTML conversion and enable sophisticated terminology management across multiple specifications.
Terminology Templatesβ
1. Definition Template: [[def:term]]β
Purpose: Defines a new term and creates an anchor for referencing.
Syntax:
[[def: primary-term, synonym1, synonym2, ...]]
Description:
- Creates a definition term with multiple synonyms
- Generates HTML anchor IDs for each synonym
- Must be the first line of a term definition file
- Followed by the definition content using
~prefix
Example:
[[def: term 1, term one, Term One]]
~ Lorem ipsum dolor sit amet, consectetur adipiscing elit. This is the definition of the term.
~ Additional paragraphs of the definition can be added with ~ prefix.
Rendered Output:
- Creates
<span id="term:term-1">,<span id="term:term-one">,<span id="term:term-one">anchors - Generates proper HTML definition list structure
- All synonyms become searchable and referenceable
Implementation Details:
- Spaces in terms are converted to hyphens and lowercased for IDs
- The primary term (first one) is used as the display name
- All synonyms are indexed and can be referenced