Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Note: Difference between revisions

Template page
m mobile compat
get template data'd
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="border-left: 6q solid #5ea5ff; border-radius: 6q; padding-left: 8q">
<div style="border-left: 6px solid {{{color|#5ea5ff}}}; border-radius: 6px; padding-left: 7.5px">
<div style="color: #5ea5ff">ⓘ 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