Jump to content

Template:Footnote: Difference between revisions

From Insurer Brain
Content deleted Content added
No edit summary
No edit summary
 
Line 1: Line 1:
<span class="ed-fn"><span class="ed-fn-chip"></span><span class="ed-fn-pre">(footnote: </span><span class="ed-fn-body">{{{1}}}</span><span class="ed-fn-close">)</span></span><noinclude>
<span class="ed-fn" title="{{{1}}}" tabindex="0"><span class="ed-fn-chip"></span><span class="ed-fn-body">(footnote: {{{1}}})</span></span><noinclude>
This is the source of the wiki page [[Template:Footnote]].
This is the source of the wiki page [[Template:Footnote]].


Usage: {{footnote|1=note text}} — renders a small dotted-underline "note"
Usage: {{footnote|1=note text}} — renders a small dotted-underline "note" chip after
the term. Hovering it (desktop) shows the browser's native tooltip with the note;
chip; clicking opens the note as a popover card (styled by MediaWiki:Common.css,
tapping it (mobile) shows a small bubble. The note is in the title="" attribute for
toggled by MediaWiki:Common.js). The literal "(footnote: ... )" text stays in the
the tooltip, AND in a hidden "(footnote: ...)" span so bots/RAG read it from the parsed
DOM so bots/RAG read the full note from the parsed HTML. Always pass 1= (note text
HTML (Docling ignores title attributes). No JavaScript — the tooltip is native + CSS
routinely contains "="). The emitter wraps inline "(footnote: ...)" annotations in
(MediaWiki:Common.css). Always pass 1= (note text routinely contains "="); the emitter
this template automatically (tools/doc_archive/output/render.py).
escapes the text for the title attribute. The emitter wraps inline "(footnote: ...)"
annotations in this template automatically (tools/doc_archive/output/render.py).
</noinclude>
</noinclude>

Latest revision as of 19:26, 13 June 2026

(footnote: {{{1}}}) This is the source of the wiki page Template:Footnote.

Usage: (footnote: note text) — renders a small dotted-underline "note" chip after the term. Hovering it (desktop) shows the browser's native tooltip with the note; tapping it (mobile) shows a small bubble. The note is in the title="" attribute for the tooltip, AND in a hidden "(footnote: ...)" span so bots/RAG read it from the parsed HTML (Docling ignores title attributes). No JavaScript — the tooltip is native + CSS (MediaWiki:Common.css). Always pass 1= (note text routinely contains "="); the emitter escapes the text for the title attribute. The emitter wraps inline "(footnote: ...)" annotations in this template automatically (tools/doc_archive/output/render.py).