Template:Footnote: Difference between revisions

Content deleted Content added
Created page with "<details class="ed-fn"><summary class="ed-fn-chip"></summary><span class="ed-fn-pre">(footnote: </span><span class="ed-fn-body">{{{1}}}</span><span class="ed-fn-close">)</span></details>"
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1:
<detailsspan class="ed-fn"><summary classtitle="ed-fn-chip{{{1}}}" tabindex="0"></summary><span class="ed-fn-prechip">(footnote: </span><span class="ed-fn-body">(footnote: {{{1}}})</span><span class="ed-fn-close">)</span></detailsnoinclude>
This is the source of the wiki page [[Template:Footnote]].
 
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;
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).
</noinclude>