Jump to content

Template:Notice: Difference between revisions

From GLOBULA
Начало
 
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="width:100%; padding:10px; margin:15px 0; background:{{{фон|#f8f9fa}}}; border:2px solid {{{рамка|#a2a9b1}}}; text-align:center; font-weight:bold;">
<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]]
 
{{Уведомление|Эта статья требует проверки!|фон=#fff3cd|рамка=#ffeeba}} <!-- жёлтый -->
{{Уведомление|Информация в статье дополняется!|фон=#d4edda|рамка=#c3e6cb}} <!-- зелёный -->

Latest revision as of 12:56, 4 December 2025

Documentation

[edit]

A template for creating colored notices in articles.

Syntax

[edit]
{{Notice
| text = Your text
| background = #color (optional)
| border = #color (optional)
}}

Examples

[edit]


⚠️Article requires verification!⚠️


ℹ️This article needs improvement!


❌Article marked for deletion!