Difference between revisions of "Template:Note"

From Flexible Survival
Jump to: navigation, search
m (Attempt to fix variables)
m (Attempt to fix CSS)
Line 13: Line 13:
 
     background-color: #efefef;
 
     background-color: #efefef;
 
}
 
}
div.note.warning {
+
div.note-warning {
 
     border-color: #c63f17;
 
     border-color: #c63f17;
 
     background-color: #ffa270;
 
     background-color: #ffa270;
 +
    box-shadow: 0 12px 18px -12px #c63f17;
 
}
 
}
 
div.note img:first-of-type {
 
div.note img:first-of-type {
Line 27: Line 28:
 
}
 
}
 
</css>
 
</css>
<div class="note {{lc:{{{Icon}}}}}">
+
<div class="note note-{{lc:{{{Icon}}}}}">
 
[[File:icon_note{{#if: {{{Icon|}}} | _{{lc:{{{Icon}}}}} | }}.png|frameless|link=]]
 
[[File:icon_note{{#if: {{{Icon|}}} | _{{lc:{{{Icon}}}}} | }}.png|frameless|link=]]
 
{{{Content|There's an interesting note you should probably be aware of here, but whoever added this note forgot to fill it in.}}}
 
{{{Content|There's an interesting note you should probably be aware of here, but whoever added this note forgot to fill it in.}}}
Line 45: Line 46:
 
{{Note
 
{{Note
 
| Icon =
 
| Icon =
 +
| Content = Content of the note, which can be as long as you like really, but this template is intended for notes of a few sentences in length really.
 +
}}
 +
{{Note
 +
| Icon = Warning
 
| Content = Content of the note, which can be as long as you like really, but this template is intended for notes of a few sentences in length really.
 
| Content = Content of the note, which can be as long as you like really, but this template is intended for notes of a few sentences in length really.
 
}}
 
}}

Revision as of 01:22, 1 November 2019

A template for short notes.

Usage

{{Note
| Icon = [<empty>|Warning]
| Content = Content of the note, which can be as long as you like really, but this template is intended for notes of a few sentences in length really.
}}

Examples

Icon note.png Content of the note, which can be as long as you like really, but this template is intended for notes of a few sentences in length really.


Icon note warning.png Content of the note, which can be as long as you like really, but this template is intended for notes of a few sentences in length really.


Icon note warning.png Content of the note, which can be as long as you like really, but this template is intended for notes of a few sentences in length really.