Template:Term: Difference between revisions
mw push |
No edit summary |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{#if:{{{1|}}} | {{#if:{{{1|}}}|{{#ifexist:Term:{{{1}}}|[[Term:{{{1}}}|{{#tag:span|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}{{#tag:span|{{Term:{{{1}}}|mode=short}}|class=term__card mw-term__card|role=tooltip|style=display:none;}}|class=term mw-term}}]]|[[Term:{{{1}}}|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]]}}}}<noinclude> | ||
}} | |||
<noinclude> | |||
Editor usage: | Editor usage: | ||
<pre>{{term|BGP}}</pre> | <pre>{{term|BGP}}</pre> | ||
| Line 13: | Line 8: | ||
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 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> | ||
Latest revision as of 20:22, 7 August 2026
Editor usage:
{{term|BGP}}
Optional display text:
{{term|Autonomous System|AS}}
Behavior:
- If
Term:<name>exists, this renders a link with a hover card using the term's short definition. - If it does not exist, this renders plain text (no red link).