Template:Notice: Difference between revisions
Appearance
Начало |
m DP moved page Template:Template:Notice to Template:Notice: 1 |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<div style="width:100%; padding:10px; margin:15px 0; background:{{{ | <noinclude> | ||
{{{1| | == Documentation == | ||
A template for creating colored notices in articles. | |||
=== Syntax === | |||
<pre> | |||
{{Notice | |||
| text = Your text | |||
| background = #color (optional) | |||
| border = #color (optional) | |||
}} | |||
</pre> | |||
=== Examples === | |||
{{#tag:div| | |||
{{Notice|text=⚠️Article requires verification!⚠️|background=#fff3cd|border=#ffeeba}} | |||
{{Notice|text=ℹ️This article needs improvement!|background=#d4edda|border=#c3e6cb}} | |||
{{Notice|text=❌Article marked for deletion!|background=#ffdddd|border=#ff9999}} | |||
|style="border:1px dashed #aaa; padding:10px;" | |||
}} | |||
[[Category:Templates]] | |||
</noinclude> | |||
<includeonly> | |||
<div style="width:100%; padding:10px; margin:15px 0; background:{{{background|#f8f9fa}}}; border:2px solid {{{border|#a2a9b1}}}; text-align:center; font-weight:bold;"> | |||
{{{text|{{{1| Notice}}}}}} | |||
</div> | </div> | ||
</includeonly> | |||
[[Category:Templates]] | |||