Registered User m (11 revisions imported) |
Registered User (Merge articles) |
||
Line 2: | Line 2: | ||
==Usage== | ==Usage== | ||
The [[Template:Warning|Warning]] template is used '''to warn on a particularly important point'''. | 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. | It puts a message box with a "pink warning" icon in the page. | ||
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 | |||
|} | |} | ||
==Maintenance== | |||
This template is a template common to all ST wikis. <br> | |||
Modifications must be done into the [[stwikimodel:Template:Warning|WikiModel]]. They must be reviewed by all ST wikis maintainers.<br> | |||
When approved, the template can be pushed/merged towards all ST wikis. | |||
==Code== | ==Code== | ||
</noinclude>{|class="st-table" | </noinclude>{| class="st-table" style="border-color: {{STPink}};" | ||
| style="border-right-width: 0px;" | [[File:Warning.png|40px|link=]] | |||
| style="border-width: | | style="border-left-width: 0px;" | <span style="color: {{STPink}}; font-weight: bold;"> {{{1|Please read carefully}}}</span> | ||
|} | |} |
Revision as of 15:28, 28 July 2021
1. Usage
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.
<message>}}Usage: {{Warning |
Where <message> is the optional warning message. If this parameter is not set, the default message is "Please read carefully".
2. Basic examples
You type | You get | ||
---|---|---|---|
Warning without specific warning message
{{Warning}}
|
| ||
Warning with specific warning message
{{Warning | Please respect the order of the below actions}}
|
|
3. More examples
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.}}
|
| ||||
Check that the spaces before and after the info message
BEFORE{{Warning | Check spaces}}AFTER<br>
BEFORE
{{Warning | Check spaces}}
AFTER
|
BEFORE
BEFORE
AFTER |
4. Maintenance
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
![]() |
Please read carefully |