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

Template:Notice: Difference between revisions

Template page
PenguinEncounter (talk | contribs)
Created page with "<templatestyles src="Template:Notice/style.css"/><div class="noticebox" style="--outline: {{{outline|#36c}}}; --noticebox-background: {{{background|#cdf}}}"> {{{1|{{{content}}}}}} </div>"
Tag: 2017 source edit
 
PenguinEncounter (talk | contribs)
m Fix bracket error
Tag: 2017 source edit
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<templatestyles src="Template:Notice/style.css"/><div class="noticebox" style="--outline: {{{outline|#36c}}}; --noticebox-background: {{{background|#cdf}}}">
<templatestyles src="Template:Notice/style.css"/><div class="noticebox" style="--border-light: {{{outline|#36c}}}; --background-light: {{{background|#def}}}; --text-light: {{{textcolor|#000}}}; --border-dark: {{{outline-dark|#6d9eff}}}; --background-dark: {{{background-dark|#041424}}}; --text-dark: {{{textcolor-dark|#eee}}};">
{{{1|{{{content}}}}}}
{{{1|{{{content}}}}}}
</div>
</div><noinclude>
<templatedata>
{
"params": {
"outline": {
"label": "Outline",
"description": "Color used for the border, including the left side color swatch.",
"default": "#36c"
},
"background": {
"label": "Background",
"description": "Color used for the background of the box.",
"default": "#def"
},
"content": {
"aliases": [
"1"
],
"label": "Content",
"type": "content",
"required": true
},
"textcolor": {
"aliases": [
"color"
],
"label": "Text Color",
"description": "Color to use for the box's text",
"type": "string",
"default": "#000"
},
"outline-dark": {
"label": "Outline (Dark mode)",
"description": "Outline color in dark themes. For a quick fix, invert and hue-rotate the light theme by 180deg.",
"type": "string",
            "default": "#6d9eff"
},
"background-dark": {
"label": "Background (Dark mode)",
"description": "Background color in dark themes.",
"type": "string",
"default": "#041424"
},
"textcolor-dark": {
"label": "Text color (Dark mode)",
"description": "Text color in dark themes.",
"type": "string",
"default": "#eee"
}
},
"paramOrder": [
"content",
"outline",
"background",
"textcolor",
"outline-dark",
"background-dark",
"textcolor-dark"
],
"format": "inline"
}
</templatedata>
</noinclude>

Latest revision as of 20:01, 24 October 2024

{{{content}}}

No description.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Contentcontent 1

no description

Contentrequired
Outlineoutline

Color used for the border, including the left side color swatch.

Default
#36c
Unknownoptional
Backgroundbackground

Color used for the background of the box.

Default
#def
Unknownoptional
Text Colortextcolor color

Color to use for the box's text

Default
#000
Stringoptional
Outline (Dark mode)outline-dark

Outline color in dark themes. For a quick fix, invert and hue-rotate the light theme by 180deg.

Default
#6d9eff
Stringoptional
Background (Dark mode)background-dark

Background color in dark themes.

Default
#041424
Stringoptional
Text color (Dark mode)textcolor-dark

Text color in dark themes.

Default
#eee
Stringoptional