Template:Note: Difference between revisions

From FiguraMC
PenguinEncounter (talk | contribs)
m 'q' -> 'px' (round); where did you copy this from anyway?
Tag: 2017 source edit
get template data'd
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
<div style="color: {{{color|#5ea5ff}}}">{{{icon|ⓘ}}} {{{tag|Note}}}</div>
<div style="color: {{{color|#5ea5ff}}}">{{{icon|ⓘ}}} {{{tag|Note}}}</div>
{{{1}}}
{{{1}}}
</div>
</div><noinclude>
<templatedata>
{
"params": {
"1": {
"type": "content",
"required": true,
"label": "content",
"description": "The text displayed in the note.",
"example": "You should be aware of this."
},
"color": {
"description": "The color to use for the line and tag.",
"type": "string",
"default": "#5ea5ff"
},
"icon": {
"description": "The symbol to display in the header.",
"example": "⊗",
"type": "string",
"default": "ⓘ"
},
"tag": {
"description": "The type of note to display.",
"example": "Warning",
"type": "string",
"default": "Note"
}
},
"description": "Displays an indented note.",
"paramOrder": [
"1",
"icon",
"tag",
"color"
],
"format": "block"
}
</templatedata>
</noinclude>

Latest revision as of 21:55, 9 October 2024

ⓘ Note

{{{1}}}

Displays an indented note.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
content1

The text displayed in the note.

Example
You should be aware of this.
Contentrequired
iconicon

The symbol to display in the header.

Default
Example
Stringoptional
tagtag

The type of note to display.

Default
Note
Example
Warning
Stringoptional
colorcolor

The color to use for the line and tag.

Default
#5ea5ff
Stringoptional