Template:Em: Difference between revisions

From The Goon Show Depository

en>Bsherr
m (→‎top: as found, replacing Template:Tld with Template:Tlc or adding/updating category placement comments, plus general and typo fixes)
m (1 revision imported)
Line 1: Line 1:
<em {{#if:{{{role|}}}|role="{{{role}}}"}} {{#if:{{{class|}}}|class="{{{class}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}} {{#if:{{{title|}}}|title="{{{title}}}"}}>{{{1}}}</em><noinclude>
<em {{#if:{{{class|}}}|class="{{{class}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}} {{#if:{{{title|}}}|title="{{{title}}}"}}>{{{1}}}</em><noinclude>
{{documentation}}
{{documentation}}
<!-- Add categories to the /doc subpage, interwikis to Wikidata, not here -->
<!-- Add categories to the /doc subpage, not here! -->
<templatedata>
{
"params": {
"1": {
"label": "Text",
"description": "Text to be emphasized",
"required": true
},
"class": {
"label": "Custom CSS classes",
"description": "takes a class name (or multiple class names, separated by commas); adds class=\"classname[s]\" to the HTML code",
"type": "string"
},
"id": {
"label": "Custom Element ID",
"description": "takes a valid, unique HTML id (must begin with an alphabetic letter); adds id=\"name\" to the HTML code",
"type": "string"
},
"style": {
"label": "Custom CSS styles",
"description": "takes inline CSS input; adds style=\"CSS directive[s]\" to the HTML code",
"type": "string"
},
"title": {
"label": "Custom Title",
"description": "takes text, which cannot be marked up in any way, and displays it as a pop-up \"tooltip\" (in most browsers) when the cursor hovers over the span",
"type": "string"
}
},
"description": "Semantically emphasise a word (or) phrase.",
"paramOrder": [
"class",
"id",
"style",
"title",
"1"
],
"format": "inline"
}
</templatedata>
</noinclude>
</noinclude>

Revision as of 10:02, 20 July 2022

{{{1}}}

Semantically emphasise a word (or) phrase.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Custom CSS classesclass

takes a class name (or multiple class names, separated by commas); adds class="classname[s]" to the HTML code

Stringoptional
Custom Element IDid

takes a valid, unique HTML id (must begin with an alphabetic letter); adds id="name" to the HTML code

Stringoptional
Custom CSS stylesstyle

takes inline CSS input; adds style="CSS directive[s]" to the HTML code

Stringoptional
Custom Titletitle

takes text, which cannot be marked up in any way, and displays it as a pop-up "tooltip" (in most browsers) when the cursor hovers over the span

Stringoptional
Text1

Text to be emphasized

Unknownrequired