Difference between revisions of "Template:Note"

From DFM Wiki
(Make both the icon and the title a bit bigger)
(Add colour options)
Line 1: Line 1:
<div class="messagebox note" style="background-color: #f9f6b7; border: 1px solid #c4c295; color: black; margin: 1ex 0; min-height: {{#expr:{{{imgwidth|60}}}+20}}px; padding-left: {{#expr:{{{imgwidth|60}}}+20}}px;">
+
<div class="messagebox note" style="background-color: {{{bgcolor|#f9f6b7}}}; border: 1px solid {{{bordercolor|#c4c295}}}; color: black; margin: 1ex 0; min-height: {{#expr:{{{imgwidth|60}}}+20}}px; padding-left: {{#expr:{{{imgwidth|60}}}+20}}px;">
 
<div style="float:left; margin-left: -{{#expr:{{{imgwidth|60}}}+10}}px;">[[Image:{{{image|Idea.png}}}|{{{imgwidth|60}}}px|link=]]</div>
 
<div style="float:left; margin-left: -{{#expr:{{{imgwidth|60}}}+10}}px;">[[Image:{{{image|Idea.png}}}|{{{imgwidth|60}}}px|link=]]</div>
 
<div><big><b>{{{title|Note}}}</b></big><BR>{{{text|Note}}}</div></div>
 
<div><big><b>{{{title|Note}}}</b></big><BR>{{{text|Note}}}</div></div>
Line 26: Line 26:
 
"type": "string",
 
"type": "string",
 
"suggested": true
 
"suggested": true
 +
},
 +
"bgcolor": {
 +
"label": "Background colour",
 +
"description": "Background colour for the info box. Use a CSS colour.",
 +
"default": "#f9f6b7"
 +
},
 +
"bordercolor": {
 +
"label": "Border colour",
 +
"description": "Colour of the info box border. Use a CSS colour.",
 +
"default": "#c4c295"
 
}
 
}
 
},
 
},

Revision as of 09:23, 16 July 2021

Idea.png
Note
Note

Template to add a box containing an image (lightbulb by default) and text note.

Template parameters

ParameterDescriptionTypeStatus
image widthimgwidth

the width of the image, in pixels

Default
60
Unknownoptional
imageimage

An inline image (lightbulb by default)

Default
Idea.png
Unknownoptional
Texttext

text of the note

Unknownrequired
Titletitle

Title to be printed at the top of the message box

Stringsuggested
Background colourbgcolor

Background colour for the info box. Use a CSS colour.

Default
#f9f6b7
Unknownoptional
Border colourbordercolor

Colour of the info box border. Use a CSS colour.

Default
#c4c295
Unknownoptional