|
|
Riga 1: |
Riga 1: |
| <noinclude>Questo template genera un popup (tooltip) quando l'utente fa il mouseover su una parola chiave. | | <includeonly> |
| | | {{#if: {{{2|}}} | |
| Sintassi:
| | <span class="tooltip-trigger{{#ifeq: {{{3|}}}|2|-2}}"> |
| | | {{#if: {{{1|}}} | {{{1}}} | <span class="tooltip-icon">i</span> }} |
| <pre>{{Tooltip|Parola chiave|Approfondimento sulla parola chiave (max. 70-100 parole)|livello}}</pre>
| | <span class="tooltip-wrapper"> |
| | | <span class="tooltip-blur-layer"></span> |
| Al posto di "livello", scrivere "2" se il tooltip è "figlio" di un altro tooltip, ossia se è un popup di secondo livello.
| | <span class="tooltip-content{{#ifeq: {{{3|}}}|2|-2}}">{{{2}}}</span> |
| </noinclude><includeonly><span class="tooltip-trigger{{#ifeq: {{{3|}}} | 2 | -2 | }}">{{#if: {{{1|}}} | {{{1|}}} | [[File:Info.png|13px|link=]]}}<span class="tooltip-content{{#ifeq: {{{3|}}} | 2 | -2 | }}">{{{2|}}}</span></span></includeonly><noinclude>
| | </span> |
| <templatedata>
| | </span> |
| {
| | }} |
| "params": {
| | </includeonly> |
| "1": {
| |
| "label": "Keyword (leave empty to display \"i\" icon)",
| |
| "type": "string"
| |
| },
| |
| "2": {
| |
| "label": "Description (max. 70-100 words)",
| |
| "type": "string",
| |
| "required": true
| |
| },
| |
| "3": {
| |
| "label": "Insert \"2\" if this is a second-level popup",
| |
| "type": "number"
| |
| }
| |
| },
| |
| "description": "To add tootlips (popups) on keywords",
| |
| "format": "inline"
| |
| } | |
| </templatedata> | |
| </noinclude>
| |