Difference between revisions of "Template:Note"

From DFM Wiki
m (typo)
Tag: 2017 source edit
Line 1: Line 1:
 
<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|100}}}+20}}px; width:100%">
 
<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|100}}}+20}}px; width:100%">
 
<div style="display:table-cell; width: {{#expr:{{{imgwidth|100}}}+40}}px; vertical-align:top;">[[Image:{{{image|Information icon.svg}}}|{{{imgwidth|100}}}px|link=]]</div>
 
<div style="display:table-cell; width: {{#expr:{{{imgwidth|100}}}+40}}px; vertical-align:top;">[[Image:{{{image|Information icon.svg}}}|{{{imgwidth|100}}}px|link=]]</div>
<div style="display:table-cell; vertical-align:middle; padding-left:2em; width:100%;"><big><b>{{{title|Note}}}</b></big><BR>{{{text|Note}}}</div></div><noinclude>
+
<div style="display:table-cell; vertical-align:middle; padding-left:2em; "><big><b>{{{title|Note}}}</b></big><BR>{{{text|Note}}}</div></div><noinclude>
 
<templatedata>
 
<templatedata>
  

Revision as of 10:59, 29 November 2021

Information icon.svg
Note
Note

Template to add a box containing an image (lightbulb by default) and text note.

Template parameters

ParameterDescriptionTypeStatus
image widthimgwidth

the width of the image, in pixels

Default
100
Unknownoptional
imageimage

An inline image (information icon by default)

Default
Information icon.svg
Unknownoptional
Texttext

text of the note

Unknownrequired
Titletitle

Title to be printed at the top of the message box

Stringsuggested
Background colourbgcolor

Background colour for the info box. Use a CSS colour.

Default
lightblue
Unknownoptional
Border colourbordercolor

Colour of the info box border. Use a CSS colour.

Default
royalblue
Unknownoptional