Difference between revisions of "Template:Note"
From DFM Wiki
EricThrift (talk | contribs) m |
EricThrift (talk | contribs) (Added heading for the admonition box.) |
||
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}}}+20}}px;"> | + | <div class="messagebox note" style="background-color: #f9f6b7; border: 1px solid #c4c295; color: black; padding: 5px; margin: 1ex 0; min-height: {{#expr:{{{imgwidth|40}}}+20}}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}}}+10}}px;">[[Image:{{{image|Idea.png}}}|{{{imgwidth|40}}}px|link=]]</div> |
− | <div>{{{text|Note}}}</div> | + | <div><h4 style="margin:5px 0">{{{title|Note}}}</h4><p style="margin:5px 0">{{{text|Note}}}</p></div></div> |
− | </div> | ||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
Line 21: | Line 20: | ||
"description": "text of the note", | "description": "text of the note", | ||
"required": true | "required": true | ||
+ | }, | ||
+ | "title": { | ||
+ | "label": "Title", | ||
+ | "description": "Title to be printed at the top of the message box", | ||
+ | "type": "string", | ||
+ | "suggested": true | ||
} | } | ||
}, | }, |
Revision as of 09:33, 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 |