Difference between revisions of "Template:Warning"

[unchecked revision] [quality revision]
m
m

1 Usage[edit]

The Warning template is used to warn on a particularly important point.

It puts a message box with a "pink warning" icon in the page.

Usage:  {{Warning | <message>}}

Where <message> is the optional warning message. If this parameter is not set, the default message is "Please read carefully".

2 Basic examples[edit]

You type You get
Warning without specific warning message
{{Warning}}
Warning white.png Warning
Please read carefully
Warning with specific warning message
{{Warning | Please respect the order of the below actions}}
Warning white.png Warning
Please respect the order of the below actions

3 More examples[edit]

You type You get
Warning with a long warning message
{{Warning | The warning message is a long sentence. Lorem ipsum: isdem diebus Apollinaris Domitiani gener, paulo ante agens palatii Caesaris curam, ad Mesopotamiam missus a socero per militares numeros immodice scrutabatur, an quaedam altiora meditantis iam Galli.}}
Warning white.png Warning
The warning message is a long sentence. Lorem ipsum: isdem diebus Apollinaris Domitiani gener, paulo ante agens palatii Caesaris curam, ad Mesopotamiam missus a socero per militares numeros immodice scrutabatur, an quaedam altiora meditantis iam Galli.
Check that the spaces before and after the info message

BEFORE{{Warning | Check spaces}}AFTER<br>
BEFORE
{{Warning | Check spaces}}
AFTER

BEFORE

Warning white.png Warning
Check spaces
AFTER

BEFORE

Warning white.png Warning
Check spaces

AFTER

4 Code[edit]

Warning.png Please read carefully
<noinclude>

==Usage==
The [[Template:Warning|Warning]] template is used '''to warn on a particularly important point'''.

It puts a message box with a "pink warning" icon in the page.

 Usage:  <nowiki>{{</nowiki>Warning | {{HighlightParam|<message>}}}}
Where {{HighlightParam|<message>}} is the '''optional''' warning message. If this parameter is not set, the default message is "Please read carefully".

==Basic examples==
{| class="st-table"
! You type !! You get
|-
| Warning without specific warning message<pre style="white-space: pre-wrap;">

{{Warning}}</pre>

|
{{Warning}}
|-
| Warning with specific warning message<pre style="white-space: pre-wrap;">

{{Warning | Please respect the order of the below actions}}</pre>

|
{{Warning | Please respect the order of the below actions}}
|}

==More examples==
{| class="st-table"
! You type !! You get
|-
| Warning with a long warning message<pre style="white-space: pre-wrap;">

{{Warning | The warning message is a long sentence. Lorem ipsum: isdem diebus Apollinaris Domitiani gener, paulo ante agens palatii Caesaris curam, ad Mesopotamiam missus a socero per militares numeros immodice scrutabatur, an quaedam altiora meditantis iam Galli.}}</pre>

|
{{Warning | The warning message is a long sentence. Lorem ipsum: isdem diebus Apollinaris Domitiani gener, paulo ante agens palatii Caesaris curam, ad Mesopotamiam missus a socero per militares numeros immodice scrutabatur, an quaedam altiora meditantis iam Galli.}}
|}

==Code==</noinclude>{|class="st-table"
| style="border-width: 1px 0px 1px 1px; border-style: solid; border-color: {{STPink}}; background-color: transparent; color: #58585A; font-weight: normal; text-align:left;-
| Check that the spaces before and after the info message<pre style="white-space: pre-wrap;">

BEFORE{{Warning | Check spaces}}AFTER<br>

BEFORE
{{Warning | Check spaces}}
AFTER</pre>

|
BEFORE{{Warning | Check spaces}}AFTER<br>

BEFORE
{{Warning | Check spaces}}
AFTER
|}

==Code==</noinclude>{| class="st-table" style="border-color: {{STPink}};"
| style="border-right-width: 0px;" | [[File:Warning.png|40px|link=]]
| style="border-left-width: 1px 1px 1px 0px; border-style: solid; border-color: {{STPink}}; background-color: transparent; color: #58585A; font-weight: normal; text-align:left; font-family:Arial;0px;" | <span style="color: {{STPink}}; font-weight: bold;"> {{{1|Please read carefully}}}</span>

|}
Line 37: Line 37:
 
|
 
|
 
{{Warning | The warning message is a long sentence. Lorem ipsum: isdem diebus Apollinaris Domitiani gener, paulo ante agens palatii Caesaris curam, ad Mesopotamiam missus a socero per militares numeros immodice scrutabatur, an quaedam altiora meditantis iam Galli.}}
 
{{Warning | The warning message is a long sentence. Lorem ipsum: isdem diebus Apollinaris Domitiani gener, paulo ante agens palatii Caesaris curam, ad Mesopotamiam missus a socero per militares numeros immodice scrutabatur, an quaedam altiora meditantis iam Galli.}}
  +
|-
  +
| Check that the spaces before and after the info message
  +
<pre style="white-space: pre-wrap;">
  +
BEFORE{{Warning | Check spaces}}AFTER<br>
  +
BEFORE
  +
{{Warning | Check spaces}}
  +
AFTER
  +
</pre>
  +
|
  +
BEFORE{{Warning | Check spaces}}AFTER<br>
  +
BEFORE
  +
{{Warning | Check spaces}}
  +
AFTER
 
|}
 
|}
   
 
==Code==
 
==Code==
</noinclude>{|class="st-table"
+
</noinclude>{| class="st-table" style="border-color: {{STPink}};"
| style="border-width: 1px 0px 1px 1px; border-style: solid; border-color: {{STPink}}; background-color: transparent; color: #58585A; font-weight: normal; text-align:left;" | [[File:Warning.png|40px|link=]]
+
| style="border-right-width: 0px;" | [[File:Warning.png|40px|link=]]
| style="border-width: 1px 1px 1px 0px; border-style: solid; border-color: {{STPink}}; background-color: transparent; color: #58585A; font-weight: normal; text-align:left; font-family:Arial;" | <span style="color: {{STPink}}; font-weight: bold;"> {{{1|Please read carefully}}}</span>
+
| style="border-left-width: 0px;" | <span style="color: {{STPink}}; font-weight: bold;"> {{{1|Please read carefully}}}</span>
 
|}
 
|}