Template:Term: Difference between revisions
mw push |
mw push |
||
| Line 1: | Line 1: | ||
{{#if:{{{1|}}} | {{#if:{{{1|}}} | ||
| {{#ifexist:Term:{{{1}}} | | {{#ifexist:Term:{{{1}}} | ||
| [[Term:{{{1}}}|{{#tag:span|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}{{#tag:span|{{Term:{{{1}}}|mode=short}}|class=term__card|role=tooltip}}|class=term}}]] | |||
| {{#if:{{{2|}}}|{{{2}}}|{{{1}}}}} | | {{#if:{{{2|}}}|{{{2}}}|{{{1}}}}} | ||
}} | }} | ||
| Line 16: | Line 13: | ||
Behavior: | Behavior: | ||
* If <code>Term:<name></code> exists, this renders a link with a | * If <code>Term:<name></code> exists, this renders a link with a CSS hover card using the term's short definition. | ||
* If it does not exist, this renders plain text (no red link). | * If it does not exist, this renders plain text (no red link). | ||
</noinclude> | </noinclude> | ||
Revision as of 21:57, 25 February 2026
Editor usage:
{{term|BGP}}
Optional display text:
{{term|Autonomous System|AS}}
Behavior:
- If
Term:<name>exists, this renders a link with a CSS hover card using the term's short definition. - If it does not exist, this renders plain text (no red link).