Term Definitions: Difference between revisions

From 44Net Wiki
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 Workflow =
== 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 each Term:Name page 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:Name exists, {{term|Name}} renders a linked inline term with a tooltip.
  • If Term:Name does not exist, it renders plain text with no red link.
  • Updating a term's short definition updates all inline tooltips that use that term.