Difference between revisions of "Template:Note"
From DFM Wiki
EricThrift (talk | contribs) |
EricThrift (talk | contribs) |
||
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
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 |