Template:Abbr: Difference between revisions
From Tyne and Wear Metro wiki
Hopperelec (talk | contribs) Created page with "<abbr {{#if:{{{class|}}}|class="{{{class}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}} title="{{#tag:nowiki|{{#invoke:String|replace|{{{2|}}}|"|"}}}}">{{{1|}}}</abbr>" |
Hopperelec (talk | contribs) Add documentation |
||
Line 1: | Line 1: | ||
<abbr {{#if:{{{class|}}}|class="{{{class}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}} title="{{#tag:nowiki|{{#invoke:String|replace|{{{2|}}}|"|"}}}}">{{{1|}}}</abbr> | <abbr {{#if:{{{class|}}}|class="{{{class}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}} title="{{#tag:nowiki|{{#invoke:String|replace|{{{2|}}}|"|"}}}}">{{{1|}}}</abbr><noinclude><TemplateData> | ||
{ | |||
"description": "An abbreviation or acronym with a tooltip displayed on mouse-over.", | |||
"params": { | |||
"1": { | |||
"label": "Term", | |||
"description": "Shows as text", | |||
"type": "line", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "Meaning", | |||
"description": "Shows as a mouse-over tooltip; do not use markup", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"style": { | |||
"label": "CSS", | |||
"description": "applies the specified CSS directives to the content of parameter 1", | |||
"type": "string", | |||
"required": false | |||
}, | |||
"class": { | |||
"label": "Class", | |||
"description": "Adds a one or more CSS classes", | |||
"type": "string", | |||
"required": false | |||
}, | |||
"id": { | |||
"label": "ID", | |||
"description": "Adds an HTML id (must be unique in the page)", | |||
"type": "string", | |||
"required": false | |||
} | |||
} | |||
} | |||
</TemplateData></noinclude> |
Latest revision as of 14:09, 22 August 2025
An abbreviation or acronym with a tooltip displayed on mouse-over.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Term | 1 | Shows as text | Line | required |
Meaning | 2 | Shows as a mouse-over tooltip; do not use markup | String | required |
CSS | style | applies the specified CSS directives to the content of parameter 1 | String | optional |
Class | class | Adds a one or more CSS classes | String | optional |
ID | id | Adds an HTML id (must be unique in the page) | String | optional |