Changes

Jump to: navigation, search

Template:Warning

1,051 bytes removed, 16:31, 8 September 2016
no edit summary
<includeonly> {{#if: {{{msg|{{{1|}}}}}}|<table cellspacingdiv style="0" cellpadding="0" border="0" style="background: transparent1px solid gray; border-radius: 5px; marginbackground-topcolor:0.5em#ffe7e7;border-color:1px #b52 soliddf9898; text-align: left;padding:0.5em10px;background-color: #fef7f5"><tr><td nowrapdiv class="nowrapmessageBox" valign="top">}}<span style="positionfloat: relativeleft; topmargin: 4px; margin-2pxright: 8px;">[[File:Attention niels eptingWarningIcon.svg|18px|<translate><!--T:1-->Warning</translate>|link=png]]</spandiv> '''<translatediv><!--T:2--b>Warning:</translateb>''' {{#if: {{{msg|{{{1|}}}}}}|</td><td valign="top" style="padding-left:0.5em;"br>{{{msg|{{{1|}}}}}}</td></tr></tablediv>}}</includeonlydiv
<noinclude>
= Usage =
== Usage ==
 
This template has two possible usages:
# Will have the text flow below when the warning test is too long
# Uses a table to indent the text.
 
=== Method 1 ===
 
The following displays the warning icon and the word 'Warning:'. You can follow this with whatever text/images/markup you like.
 
Wiki Code:
<nowiki>{{warning}}</nowiki> Don't do that!
 
{{warning}} Don't do that!
=== Method 2 ===<pre>The following includes the {{warning| .. your text passed to the template, and uses a table to stop the text flowing round the icon... }}</pre>
Wiki Code: <nowiki>{{warning|Here is Inserting images in MediaWiki takes a long warning, which is sufficiently wordy few steps to accomplish. First the file needs to run onto a second line (unless be uploaded. Then you have a really large screen!), which would normally cause it will need to wrap round insert the code in the page that places the image in the icon, but because we passed it as a parameter it keeps its left alignment straightcontent. This article will explain the steps to upload and insert images into your MediaWiki pages.}}</nowiki>
{{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.}}
[[Category:Templates{{translation}}|{{PAGENAME}}]]
</noinclude>

Navigation menu