Template:Hatnote: Difference between revisions

From FiguraMC
Created page with "<nowiki>{{Hatnote|TEXT}}</nowiki>"
 
PenguinEncounter (talk | contribs)
No edit summary
Tag: 2017 source edit
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<nowiki>{{Hatnote|TEXT}}</nowiki>
<templatestyles src="Template:Hatnote/style.css"/><div role="note" class="hatnote {{{extraclasses|}}}">{{{1|{{{text}}}}}}</div><noinclude><!-- Documentation -->
 
<templatedata>
{
"params": {
"1": {
"aliases": [
"text"
],
"label": "Text",
"description": "Text to be displayed in the hatnote.",
"required": true,
"type": "content"
},
"extraclasses": {
"label": "CSS classes",
"description": "Additional CSS classes to add to the hatnote.",
"suggestedvalues": [
"no-border"
],
"type": "string"
}
},
"description": "Displays a hatnote; italic with padding and optionally an underline.",
"format": "inline"
}
</templatedata></noinclude>

Latest revision as of 20:17, 26 September 2024

{{{text}}}

Displays a hatnote; italic with padding and optionally an underline.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Text1 text

Text to be displayed in the hatnote.

Contentrequired
CSS classesextraclasses

Additional CSS classes to add to the hatnote.

Suggested values
no-border
Stringoptional