模板:Warning

来自百问网嵌入式Linux wiki
Wiki讨论 | 贡献2020年4月10日 (五) 15:34的版本 (创建页面,内容为“<noinclude> ==Usage== The Warning template is used '''to warn on a particularly important point'''. It puts a message box with a "pink warning"…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

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.

Usage:  {{Warning | <message>}}

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

Basic examples

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

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.}}
Warning.png 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.png Check spaces
AFTER

BEFORE

Warning.png Check spaces

AFTER

Code

Warning.png Please read carefully