Difference between revisions of "Template:Tooltip"
| (7 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
| Sintassi: | Sintassi: | ||
| {{Tooltip|Parola chiave|Approfondimento sulla parola chiave (max. 70-100 parole)}}</noinclude><span class="tooltip-trigger">{{{1|}}}<span class="tooltip-content">{{{2|}}}</span></span><noinclude> | <pre>{{Tooltip|Parola chiave|Approfondimento sulla parola chiave (max. 70-100 parole)|livello}}</pre> | ||
| Al posto di "livello", scrivere "2" se il tooltip è "figlio" di un altro tooltip, ossia se è un popup di secondo livello. | |||
| </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> | |||
| <templatedata> | <templatedata> | ||
| { | { | ||
| 	"params": { | 	"params": { | ||
| 		"1": { | 		"1": { | ||
| 			"label": "Keyword", | 			"label": "Keyword (leave empty to display \"i\" icon)", | ||
| 			"type": "string" | 			"type": "string" | ||
| 		}, | 		}, | ||
| 		"2": { | 		"2": { | ||
| Line 16: | Line 18: | ||
| 			"type": "string", | 			"type": "string", | ||
| 			"required": true | 			"required": true | ||
| 		}, | |||
| 		"3": { | |||
| 			"label": "Insert \"2\" if this is a second-level popup", | |||
| 			"type": "number" | |||
| 		} | 		} | ||
| 	}, | 	}, | ||
Latest revision as of 13:22, 25 October 2024
Questo template genera un popup (tooltip) quando l'utente fa il mouseover su una parola chiave.
Sintassi:
{{Tooltip|Parola chiave|Approfondimento sulla parola chiave (max. 70-100 parole)|livello}}
Al posto di "livello", scrivere "2" se il tooltip è "figlio" di un altro tooltip, ossia se è un popup di secondo livello.
To add tootlips (popups) on keywords
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Keyword (leave empty to display "i" icon) | 1 | no description | String | optional | 
| Description (max. 70-100 words) | 2 | no description | String | required | 
| Insert "2" if this is a second-level popup | 3 | no description | Number | optional |