Difference between revisions of "Template:Tooltip"
From Drawn to Life Wiki
(Created page with "<div class="tooltip-template">{{{mastertext|hover over me!}}} <span class="tooltiptext-template">{{{tooltip|tooltip text}}}</span> </div>") |
|||
| Line 2: | Line 2: | ||
<span class="tooltiptext-template">{{{tooltip|tooltip text}}}</span> | <span class="tooltiptext-template">{{{tooltip|tooltip text}}}</span> | ||
</div> | </div> | ||
| + | <noinclude> | ||
| + | <templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "mastertext": { | ||
| + | "aliases": [ | ||
| + | "1" | ||
| + | ], | ||
| + | "label": "Article text", | ||
| + | "description": "The main text that will display on the page that spawns the tooltip when hovered.", | ||
| + | "example": "mastertext=Lorem Ipsum", | ||
| + | "type": "string", | ||
| + | "required": true | ||
| + | }, | ||
| + | "tooltip": { | ||
| + | "label": "Tooltip Text", | ||
| + | "description": "The text to display in a tooltip when mastertext is hovered over.", | ||
| + | "example": "|tooltip=Hover text", | ||
| + | "type": "string", | ||
| + | "required": true | ||
| + | } | ||
| + | }, | ||
| + | "description": "Adds a mobile-friendly tooltip to any text." | ||
| + | } | ||
| + | </templatedata> | ||
| + | </noinclude> | ||
Revision as of 23:39, 17 June 2022
hover over me!
tooltip text
Adds a mobile-friendly tooltip to any text.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Article text | mastertext 1 | The main text that will display on the page that spawns the tooltip when hovered.
| String | required |
| Tooltip Text | tooltip | The text to display in a tooltip when mastertext is hovered over.
| String | required |