Template:Warning: Difference between revisions

From Octave
Jump to navigation Jump to search
(change style to have larger border, round corners, and chance to use it inline (by using span instead of div))
(Update layout.)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><span style="background-color: #ffc1c1; padding: 1em; border-radius: 1em; border:.1em solid #ff7070; display:inline-block">'''Warning:''' {{{1}}}</span></includeonly><noinclude>{{TemplateDoc}}[[Category:Templates]]</noinclude>
<includeonly><div style="background-color: #ffc1c1; padding: 0.5em; border-radius: 0.5em; border:.1em solid #ff7070; margin-top: 1em; margin-bottom: 1em; display: inline-block;"><div style="float: left; width: 26px;">[[File:Warning_icon.svg|26px]]</div><div style="padding-left: 3em; padding-right: 1em;">{{{1}}}</div></div></includeonly><noinclude>{{TemplateDoc}}[[Category:Templates]]</noinclude>

Latest revision as of 14:20, 11 June 2019

[edit]

Template-info.png Template Documentation

This template is for important warnings.

Example:

{{Warning|The reactor may be destroyed if you disable the cooling system. As a result, a large area around the reactor may become dangerously radioactive. If this happens, seek medical assistance immediately.}}

Will produce:

Warning icon.svg
The reactor may be destroyed if you disable the cooling system. As a result, a large area around the reactor may become dangerously radioactive. If this happens, seek medical assistance immediately.