From Test-Scratch-Wiki

m (Undo revision 3688 by Smrman (talk))
(Automated edit: Updated Test wiki copy of English wiki page)
 
Line 1: Line 1:
{{#if: {{{1|}}}|<table cellspacing="0" cellpadding="0" border="0" style="background: transparent;"><tr><td nowrap="nowrap" valign="top">}}<span style="position: relative; top: 2px;">[[File:Caution (2).png|link=]]</span> '''Caution:''' {{#if: {{{1|}}}|</td><td valign="top" style="padding-left:0.5em; position: relative; top: 3px">{{{1|}}}</td></tr></table>}}<noinclude>[[Category:Templates|Caution]]{{/doc}}[[de:t:Caution]]</noinclude>
+
<noinclude>{{:Template:Caution/translate}}</noinclude>
 +
{{note|{{{1|}}}|{{{2|Caution}}}|img=Caution (2).png}}<noinclude>{{/doc}}[[Category:Templates]]</noinclude>

Latest revision as of 17:09, 9 April 2020

Template:Caution/translate

Note Caution:

[edit] [history] [purge] Documentation Template documentation

This documentation is transcluded from Template:Caution/doc.

Usage

Method 1

The following displays the caution icon and the word 'Caution:'. You can follow this with whatever text/images/markup you like.

{{caution}}Don't do that!


Note Caution: Don't do that!

Method 2

The following includes the text passed to the template, and uses a table to stop the text flowing round the icon.

{{caution|This is a very long caution! It is sufficiently wordy to run
 onto a second line, which would normally cause it to wrap round the
 icon, but because we passed it as a parameter it keeps its left
 alignment straight!}}


Note Caution: This is a very long caution! It is sufficiently wordy to run onto a second line, which would normally cause it to wrap round the icon, but because we passed it as a parameter it keeps its left alignment straight!

Method 3

The following changes the word "Caution" to a different word.

{{caution|Don't do that!|Whoa}}


Note Whoa: Don't do that!

To make it like Method 1 (i.e. to allow the text to run onto another line) simply only specify the second parameter and put the text outside the template:

{{caution|2=Whoa}}Don't do that!


Note Whoa: Don't do that!

Cookies help us deliver our services. By using our services, you agree to our use of cookies.