Difference between revisions of "Template:Note"

From DFM Wiki
(Move the link parameter to the right place!)
m (increase left padding)
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|40}}}px; padding-left: {{#expr:{{{imgwidth|40}}}+10}}px;">
+
<div class="messagebox note" style="background-color: #f9f6b7; border: 1px solid #c4c295; color: black; padding: 5px; margin: 1ex 0; min-height: {{{imgwidth|40}}}px; padding-left: {{#expr:{{{imgwidth|40}}}+20}}px;">
<div style="float: left; margin-left: -{{#expr:{{{imgwidth|40}}}+10}}px;">[[Image:{{{image|Idea.png}}}|{{{imgwidth|40}}}px|link=]]</div>
+
<div style="float: left; margin-left: -{{#expr:{{{imgwidth|40}}}+20}}px;">[[Image:{{{image|Idea.png}}}|{{{imgwidth|40}}}px|link=]]</div>
 
<div>{{{text|Note}}}</div>
 
<div>{{{text|Note}}}</div>
 
</div>
 
</div>

Revision as of 11:17, 6 July 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
40
Unknownoptional
imageimage

An inline image (lightbulb by default)

Default
Idea.png
Unknownoptional
Texttext

text of the note

Unknownrequired