Difference between revisions of "Template:Note"
From DFM Wiki
EricThrift (talk | contribs) (Remove hard-coded padding) |
EricThrift (talk | contribs) (Make both the icon and the title a bit bigger) |
||
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| | + | <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 style="float:left; margin-left: -{{#expr:{{{imgwidth| | + | <div style="float:left; margin-left: -{{#expr:{{{imgwidth|60}}}+10}}px;">[[Image:{{{image|Idea.png}}}|{{{imgwidth|60}}}px|link=]]</div> |
− | <div> | + | <div><big><b>{{{title|Note}}}</b></big><BR>{{{text|Note}}}</div></div> |
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
Line 10: | Line 10: | ||
"label": "image width", | "label": "image width", | ||
"description": "the width of the image, in pixels", | "description": "the width of the image, in pixels", | ||
− | "default": " | + | "default": "60" |
}, | }, | ||
"image": { | "image": { |
Revision as of 12:20, 7 July 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 |
Title | title | Title to be printed at the top of the message box | String | suggested |