Template:Warning: Difference between revisions

From Artisans Asylum Wiki
No edit summary
No edit summary
Line 1: Line 1:
<table class="warning-message" style="background-color: #fee7e6; border: 1px #d33 solid; box-sizing: border-box; margin: 0.5em 0; padding: 0.5em;">
<table class="warning-message" style="background-color: #fee7e6; border: 1px #d33 solid; box-sizing: border-box; margin: 0.5em 0; padding: 0.5em;">
<tr><td style="white-space: nowrap; vertical-align: top;">[[File:OOjs_UI_icon_notice-destructive.png|20px|alt=Warning|link=]] <b>Warning</b>: {{{msg|{{{1|}}}}}}</td></tr></table>
<tr><td style="white-space: nowrap; vertical-align: top;">[[File:OOjs_UI_icon_notice-destructive.png|20px|alt=Warning|link=]] <b>Warning</b>: </td><td>{{{msg|{{{1|}}}}}}</td></tr></table>
 
<noinclude>
<noinclude>
{{Documentation|content=
==Warning Template==
==Warning Template==
The following displays the warning icon and the word "Warning: " followed by the included text:
The following displays the warning icon and the word "Warning: " followed by the included text.
 
Wiki code:


  <nowiki>{{warning|1=</nowiki>Don't do that!<nowiki>}}</nowiki>  
  <nowiki>{{warning|1=</nowiki>Don't do that!<nowiki>}}</nowiki>  
{{warning|1=Don't do that!}}


==Example==
==Example==
{{Warning|1=Don't do that!}}
 
Here is a longer example.
 
Wiki code:
 
<nowiki>{{warning|1=</nowiki> 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.<nowiki>}}</nowiki>
 
 
{{warning|1= 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.}}
</noinclude>
</noinclude>

Revision as of 22:06, 17 January 2024

Warning Warning:


Warning Template

The following displays the warning icon and the word "Warning: " followed by the included text.

Wiki code:

{{warning|1=Don't do that!}} 
Warning Warning: Don't do that!


Example

Here is a longer example.

Wiki code:

{{warning|1= 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.}} 


Warning 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.