Template:Abbr: Difference between revisions

From Tyne and Wear Metro wiki
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>"
 
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|}}}|"|&quot;}}}}">{{{1|}}}</abbr>
<abbr {{#if:{{{class|}}}|class="{{{class}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}} title="{{#tag:nowiki|{{#invoke:String|replace|{{{2|}}}|"|&quot;}}}}">{{{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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Term1

Shows as text

Linerequired
Meaning2

Shows as a mouse-over tooltip; do not use markup

Stringrequired
CSSstyle

applies the specified CSS directives to the content of parameter 1

Stringoptional
Classclass

Adds a one or more CSS classes

Stringoptional
IDid

Adds an HTML id (must be unique in the page)

Stringoptional