Difference between revisions of "Template:Note"
From DFM Wiki
EricThrift (talk | contribs) m (EricThrift moved page Template:Message to Template:Note) |
EricThrift (talk | contribs) (Fix image pixel dimensions) Tag: 2017 source edit |
||
(21 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <div class="messagebox | + | <div class="messagebox note" style="display:table; background-color: {{{bgcolor|lightblue}}}; border: 1px solid {{{bordercolor|royalblue}}; color: black; margin: 1ex 0; min-height: {{#expr:{{{imgwidth|60}}}+20}}px; width:100%"> |
− | <div style=" | + | <div style="display:table-cell; width: {{#expr:{{{imgwidth|60}}}+20}}px; vertical-align:top;">[[Image:{{{image|Information icon.svg}}}|{{{imgwidth|60}}}px|link=]]</div> |
− | <div>{{{ | + | <div style="display:table-cell; vertical-align:middle; padding-left:1em; padding-right:1em;"><big><b>{{{title|Note}}}</b></big><BR>{{{text|Note}}}</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 (information icon by default)", | ||
+ | "default": "Information icon.svg" | ||
+ | }, | ||
+ | "text": { | ||
+ | "description": "text of the note", | ||
+ | "required": true | ||
+ | }, | ||
+ | "title": { | ||
+ | "label": "Title", | ||
+ | "description": "Title to be printed at the top of the message box", | ||
+ | "type": "string", | ||
+ | "suggested": true | ||
+ | }, | ||
+ | "bgcolor": { | ||
+ | "label": "Background colour", | ||
+ | "description": "Background colour for the info box. Use a CSS colour.", | ||
+ | "default": "lightblue" | ||
+ | }, | ||
+ | "bordercolor": { | ||
+ | "label": "Border colour", | ||
+ | "description": "Colour of the info box border. Use a CSS colour.", | ||
+ | "default": "royalblue" | ||
+ | } | ||
+ | }, | ||
+ | "description": "Template to add a box containing an image (lightbulb by default) and text note." | ||
+ | }</templatedata> | ||
+ | </noinclude> |
Latest revision as of 13:40, 29 November 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 (information icon 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 |
Background colour | bgcolor | Background colour for the info box. Use a CSS colour.
| Unknown | optional |
Border colour | bordercolor | Colour of the info box border. Use a CSS colour.
| Unknown | optional |