Term Definitions: Difference between revisions
mw push |
mw push |
||
| Line 2: | Line 2: | ||
This wiki uses two templates for inline technical terms: | This wiki uses two templates for inline technical terms: | ||
* <code>{{term|Name}}</code> for inline references inside normal pages | * <code><nowiki>{{term|Name}}</nowiki></code> for inline references inside normal pages | ||
* <code>{{TermDefinition}}</code> on each <code>Term:Name</code> page to store the definition | * <code><nowiki>{{TermDefinition}}</nowiki></code> on each <code>Term:Name</code> page to store the definition | ||
= Editor | == Editor workflow == | ||
1. Create a term page, for example <code>Term:BGP</code>. | 1. Create a term page, for example <code>Term:BGP</code>. | ||
| Line 19: | Line 19: | ||
<pre>{{term|BGP}}</pre> | <pre>{{term|BGP}}</pre> | ||
= Behavior = | == Behavior == | ||
* If <code>Term:Name</code> exists, <code>{{term|Name}}</code> renders a linked inline term with a tooltip. | * If <code>Term:Name</code> exists, <code><nowiki>{{term|Name}}</nowiki></code> renders a linked inline term with a tooltip. | ||
* If <code>Term:Name</code> does not exist, it renders plain text with no red link. | * If <code>Term:Name</code> does not exist, it renders plain text with no red link. | ||
* Updating a term's <code>short</code> definition updates all inline tooltips that use that term. | * Updating a term's <code>short</code> definition updates all inline tooltips that use that term. | ||
Latest revision as of 22:50, 25 February 2026
This wiki uses two templates for inline technical terms:
{{term|Name}}for inline references inside normal pages{{TermDefinition}}on eachTerm:Namepage to store the definition
Editor workflow
1. Create a term page, for example Term:BGP.
2. Add:
{{TermDefinition
| short = One-sentence definition used in inline tooltips.
| long = Optional expanded explanation for readers visiting the term page.
| mode = {{{mode|view}}}
}}
3. Reference the term in content:
{{term|BGP}}
Behavior
- If
Term:Nameexists,{{term|Name}}renders a linked inline term with a tooltip. - If
Term:Namedoes not exist, it renders plain text with no red link. - Updating a term's
shortdefinition updates all inline tooltips that use that term.