Difference between revisions of "Template:Note"

From DFM Wiki
Line 1: Line 1:
 
<div class="messagebox note" style="background-color: #f9f6b7; border: 1px solid #c4c295; color: black; padding: 5px; margin: 1ex 0; min-height: {{{imgwidth|60}}}px; padding-left: {{#expr:{{{imgwidth|60}}}+10}}px;">
 
<div class="messagebox note" style="background-color: #f9f6b7; border: 1px solid #c4c295; color: black; padding: 5px; margin: 1ex 0; min-height: {{{imgwidth|60}}}px; padding-left: {{#expr:{{{imgwidth|60}}}+10}}px;">
 
<div style="float: left; margin-left: -{{#expr:{{{imgwidth|60}}}+10}}px;">[[Image:{{{image|Idea.png}}}|{{{imgwidth|60}}}px]]</div>
 
<div style="float: left; margin-left: -{{#expr:{{{imgwidth|60}}}+10}}px;">[[Image:{{{image|Idea.png}}}|{{{imgwidth|60}}}px]]</div>
<div>{{{text}}}</div>
+
<div>{{{text|Note}}}</div>
 
</div>
 
</div>
 +
<noinclude>
 +
<templatedata>
 +
 +
{
 +
"params": {
 +
"imgwidth": {
 +
"label": "image width",
 +
"description": "the width of the image, in pixels",
 +
"default": "60"
 +
},
 +
"image": {
 +
"label": "image",
 +
"description": "An inline image (lightbulb by default)",
 +
"default": "Idea.png"
 +
},
 +
"text": {
 +
"description": "text of the note",
 +
"required": true
 +
}
 +
},
 +
"description": "Template to add a box containing an image (lightbulb by default) and text note."
 +
}</templatedata>
 +
</noinclude>

Revision as of 14:46, 27 January 2021

Idea.png
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