Template:Warning: Difference between revisions

From Zenith
Jump to navigation Jump to search
Content added Content deleted
(it works (i think))
m (small fix)
 
Line 1: Line 1:
<onlyinclude>{{#if: {{{msg|{{{1|}}}}}}|<table class="warning-message" style="color: #eee !important; background-color: #600000; border: 1px #d33 solid; box-sizing: border-box; margin: 0.5em 0; padding: 0.5em;"><tr><td style="white-space: nowrap; vertical-align: top;">}}<span style="position: relative; top: -2px;">[[File:OOjs_UI_icon_notice-destructive.svg|18px|alt= Warning|link=]]</span> {{#if: {{{msg|{{{1|}}}}}}|</td><td style="padding-{{dir|{{pagelang}}|right|left}}: 0.5em vertical-align: top;">{{{msg|{{{1|}}}}}}</td></tr></table>}}</onlyinclude>
<onlyinclude>{{#if: {{{msg|{{{1|}}}}}}|<table class="warning-message" style="color: #eee !important; background-color: #600000; border: 1px #d33 solid; box-sizing: border-box; margin: 0.5em 0; padding: 0.5em;"><tr><td style="white-space: nowrap; vertical-align: top;">}}<span style="position: relative; top: -2px;">[[File:OOjs_UI_icon_notice-destructive.svg|18px|alt= Warning|link=]]</span> {{#if: {{{msg|{{{1|}}}}}}|</td><td style="padding-left: 0.5em vertical-align: top;">{{{msg|{{{1|}}}}}}</td></tr></table>}}</onlyinclude>


Stolen from https://www.mediawiki.org/wiki/Template:Warning, hope it works.
Stolen from https://www.mediawiki.org/wiki/Template:Warning, hope it works.

Latest revision as of 09:20, 16 August 2023

Warning

Stolen from https://www.mediawiki.org/wiki/Template:Warning, hope it works.

Warning Here is a long warning, which is sufficiently wordy to run onto a second line (unless you have a really large screen!), which would normally cause it to wrap round the icon, but because we passed it as a parameter it keeps its left alignment straight.