Difference between revisions of "Template:Important"

[unchecked revision] [quality revision]
(Merge articles)
 
m
 

1 Usage[edit]

The Important template is used to delivered important messages.

It puts a message in a green box with a "white warning" icon.

Usage:  {{Important | <message>}}

Where <message> is the optional important 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
{{Important}}
Warning white.png Important
Please read carefully
Warning with specific warning message
{{Important | Please respect the order of the below actions}}
Warning white.png Important
Please respect the order of the below actions

3 More examples[edit]

You type You get
Warning with a long warning message
{{Important| 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 Important
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{{Imortant test1| Check spaces}}AFTER<br>
BEFORE
{{Important | Check spaces}}
AFTER

BEFORE

Warning white.png Important
Check spaces
AFTER

BEFORE

Warning white.png Important
Check spaces

AFTER

4 Maintenance[edit]

This template is a template common to all ST wikis.
Modifications must be done into the WikiModel. They must be reviewed by all ST wikis maintainers.
When approved, the template can be pushed/merged towards all ST wikis.

5 Code[edit]

Warning white.png Important
Please read carefully
<noinclude>

==Usage==
The [[Template:Important|Important]] template is used '''to delivered important messages'''.

It puts a message in a green box with a "white warning" icon.

 Usage:  <nowiki>{{</nowiki>Important | {{HighlightParam|<message>}}}}
Where {{HighlightParam|<message>}} is the '''optional''' important 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;">

{{Important}}</pre>

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

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

|
{{Important | 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;">

{{Important| 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>

|
{{Important| 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{{Imortant test1| Check spaces}}AFTER<br>

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

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

BEFORE
{{Important| Check spaces}}
AFTER
|}

==Maintenance==
This template is a template common to all ST wikis. <br>

Modifications must be done into the [[stwikimodel:Template:Important|WikiModel]]. They must be reviewed by all  ST wikis maintainers.<br>

When approved, the template can be pushed/merged towards all ST wikis.

==Code==</noinclude>{| class="st-table" style="border-style: hidden" width="100%"| style="border-right-width: 0px; background: {{STLightGreen}}; color: #FFFFFF" | [[File:Warning_white.png|25px|link=]]  <span style="font-weight: bold;"> Important</span>

|-
| style="border-left-width: 0px; border-top-width: 0px; background: {{STLightGreen | tint=25}}" | {{{1| Please read carefully}}}
|}
Line 58: Line 58:
   
 
==Code==
 
==Code==
</noinclude>{| class="st-table" style="border-style: hidden"
+
</noinclude>{| class="st-table" style="border-style: hidden" width="100%"
 
| style="border-right-width: 0px; background: {{STLightGreen}}; color: #FFFFFF" | [[File:Warning_white.png|25px|link=]]  <span style="font-weight: bold;"> Important</span>
 
| style="border-right-width: 0px; background: {{STLightGreen}}; color: #FFFFFF" | [[File:Warning_white.png|25px|link=]]  <span style="font-weight: bold;"> Important</span>
 
|-
 
|-
 
| style="border-left-width: 0px; border-top-width: 0px; background: {{STLightGreen | tint=25}}" | {{{1| Please read carefully}}}
 
| style="border-left-width: 0px; border-top-width: 0px; background: {{STLightGreen | tint=25}}" | {{{1| Please read carefully}}}
 
|}
 
|}