Template:GlossaryEntry: Difference between revisions

From OODA WIKI
Jump to navigation Jump to search
AdminIsidore (talk | contribs)
No edit summary
AdminIsidore (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>[[Category:Glossary Entries]][[Glossary-Term::{{{Term|{{PAGENAME}}}}}]][[Glossary-Definition::{{{Definition|}}}]]
[[Category:Glossary Entries]]
[[Glossary-Term::{{{Term|{{PAGENAME}}}}}]]
[[Glossary-Definition::{{{Definition|}}}]]


== Semantic Graph ==
== Semantic Graph ==
<div class="glossary-graph" data-page-title="{{FULLPAGENAME}}">Loading graph...</div>
<div class="glossary-graph" data-page-title="{{FULLPAGENAME}}">Loading graph...</div></includeonly><noinclude>
</includeonly><noinclude>
{{documentation}}
This template defines a single glossary entry page.
 
It performs two functions:
1. Sets the semantic properties needed for the Semantic Glossary tooltips.
2. Creates a placeholder div for the D3.js graph visualization.
 
Usage: {{GlossaryEntry |Term= (optional) |Definition=Your definition here.}}
</noinclude>
</noinclude>

Revision as of 20:47, 29 August 2025

Documentation
       This template defines a single glossary entry page.

It performs two functions:

  1. Sets the semantic properties (Glossary-Term and Glossary-Definition) needed for the Semantic Glossary extension to generate tooltips.
  2. Creates a placeholder <div> with the class glossary-graph. This div is targeted by the GlossaryGraph gadget to render a d3.js force-directed graph of the term's connections.

Usage[edit]

{{GlossaryEntry
|Term= (optional - defaults to the page name)
|Definition=Your definition here. Wikilinks to other terms will automatically become nodes in the graph.
}}