Template:Notice: Difference between revisions
Appearance
+ категория |
Translation |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
== | == Documentation == | ||
A template for creating colored notices in articles. | |||
=== | === Syntax === | ||
<pre> | <pre> | ||
{{ | {{Notice | ||
| | | text = Your text | ||
| | | background = #color (optional) | ||
| | | border = #color (optional) | ||
}} | }} | ||
</pre> | </pre> | ||
=== | === Examples === | ||
{{#tag:div| | {{#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;" | |style="border:1px dashed #aaa; padding:10px;" | ||
}} | }} | ||
[[ | [[Category:Notice Templates]] | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
<div style="width:100%; padding:10px; margin:15px 0; background:{{{ | <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> | </includeonly> | ||
[[ | [[Category:Templates]] | ||
Revision as of 12:52, 4 December 2025
Documentation
A template for creating colored notices in articles.
Syntax
{{Notice
| text = Your text
| background = #color (optional)
| border = #color (optional)
}}
Examples
⚠️Article requires verification!⚠️
ℹ️This article needs improvement!
❌Article marked for deletion!