Template:Tooltip: Difference between revisions
Appearance
Content deleted Content added
Undo revision 782 by Wikilah admin (talk) Tag: Undo |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
<templatestyles src="Template:Tooltip/styles.css" /> |
<templatestyles src="Template:Tooltip/styles.css" /> |
||
<span class="tooltip {{{class|}}}{{#ifeq:{{yesno-yes|{{{dotted}}}}}|no|| tooltip-dotted}}" |
|||
{{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}}> |
|||
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using tooltip with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Tooltip]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | class | dotted | id | link | style }}<noinclude> |
|||
{{#ifeq:{{yesno-no|{{{link}}}}}|yes |
|||
| ⚫ | |||
| [[{{{1}}}|<span class="tooltip-target" aria-describedby="{{#if:{{{id|}}}|{{{id}}}-tip}}">{{{1|}}}</span>]] |
|||
</noinclude> |
|||
| <span class="tooltip-target" tabindex="0" role="button" aria-expanded="false" |
|||
aria-describedby="{{#if:{{{id|}}}|{{{id}}}-tip}}">{{{1|}}}</span> |
|||
}} |
|||
<span class="tooltip-body" role="tooltip" {{#if:{{{id|}}}|id="{{{id}}}-tip"}}> |
|||
{{{2|}}} |
|||
</span> |
|||
{{#ifeq:{{yesno-no|{{{link}}}}}|yes |
|||
| <button class="tooltip-toggle" type="button" |
|||
aria-label="Show definition" |
|||
aria-controls="{{#if:{{{id|}}}|{{{id}}}-tip}}">ⓘ</button> |
|||
| }} |
|||
</span> |
|||
{{#invoke:Check for unknown parameters |
|||
|check |
|||
|unknown={{main other|[[Category:Pages using tooltip with unknown parameters|_VALUE_{{PAGENAME}}]]}} |
|||
|preview=Page using [[Template:Tooltip]] with unknown parameter "_VALUE_" |
|||
|ignoreblank=y |
|||
| 1 | 2 | class | dotted | id | link | style |
|||
}} |
|||
| ⚫ | |||