Difference between revisions of "Template:Note"
From DFM Wiki
EricThrift (talk | contribs) |
EricThrift (talk | contribs) (Make the lightbulb smaller and eliminate the link.) |
||
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| | + | <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 style="float: left; margin-left: -{{#expr:{{{imgwidth| | + | <div style="float: left; margin-left: -{{#expr:{{{imgwidth|40}}}+10}}px;">[[Image:{{{image|Idea.png|link=}}}|{{{imgwidth|40}}}px]]</div> |
<div>{{{text|Note}}}</div> | <div>{{{text|Note}}}</div> | ||
</div> | </div> | ||
Line 11: | Line 11: | ||
"label": "image width", | "label": "image width", | ||
"description": "the width of the image, in pixels", | "description": "the width of the image, in pixels", | ||
− | "default": " | + | "default": "40" |
}, | }, | ||
"image": { | "image": { |
Revision as of 08:13, 22 June 2021
Template to add a box containing an image (lightbulb by default) and text note.
Parameter | Description | Type | Status | |
---|---|---|---|---|
image width | imgwidth | the width of the image, in pixels
| Unknown | optional |
image | image | An inline image (lightbulb by default)
| Unknown | optional |
Text | text | text of the note | Unknown | required |