Difference between revisions of "Template:notice"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
m (Protected "Template:notice": High traffic page (‎[edit=autoconfirmed] (indefinite) ‎[move=autoconfirmed] (indefinite)))
 
(58 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| style="background-color: white; border: 1px solid #aaa; box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2); border-left: 10px solid #1E90FF; margin: 0 auto;" class="{{{class|}}}"
+
<div style="display: flex; justify-content: center;">
| [[File:{{{image|Ambox notice.png}}}|link=|40x40px]]
+
{| style="background-color: #{{{bgcolor|f8f9fa}}}; border: 1px solid #aaa; box-shadow: 2px 2px 2px rgba(0, 0, 0, 0); border-left: 10px solid #{{{bcolor|6485d1}}}; margin: 0 auto; width: auto; max-width: 70%; display: inline-block;" class="{{{class|notice_tpl}}}"  
|style="padding:0 1em"| {{{1|This is a notification template. To use it in any page, place <code><nowiki>{{notice|Text of the notice}}</nowiki></code> in the page.<br>It is possible to customize the icon image, like so: <code><nowiki>{{notice|Text of the notice|image=Another_icon.png}}</nowiki></code>.}}}
+
|style="padding:0 0.5em; line-height: 330%; text-align: left;"|[[File:{{{image|Ambox notice.png}}}|link=|40x40px]]
|}<noinclude>
+
|style="padding:0 0.75em; text-align: left;"| {{{1|This is a notification template. To use it in any page, place <code><nowiki>{{notice|Text of the notice}}</nowiki></code> in the page. To use a more eye-catching notice, use {{tl|notice2}} instead.}}}
 +
|}
 +
</div><noinclude>
  
 +
 +
It is possible to customize the icon image:
 +
 +
{{notice|Text of the notice'''|image=Another_icon.png'''<nowiki>}}</nowiki>
 +
 +
It is also possible to customize the left border color:
 +
 +
{{notice|Text of the notice'''|bcolor=123456'''<nowiki>}}</nowiki>
 +
 +
as well as the background color:
 +
 +
{{notice|Text of the notice'''|bgcolor=789abc'''<nowiki>}}</nowiki>
 +
 +
This template is used for the {{tl|incomplete}} and the {{tl|incomplete transcript}} templates, among [[:Category:Templates|others]]. To use a more eye-catching notice, use {{tl|notice2}} instead:
 +
{{notice2}}
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 20:18, 28 July 2025

Ambox notice.png This is a notification template. To use it in any page, place {{notice|Text of the notice}} in the page. To use a more eye-catching notice, use {{notice2}} instead.


It is possible to customize the icon image:

{{notice|Text of the notice|image=Another_icon.png}}

It is also possible to customize the left border color:

{{notice|Text of the notice|bcolor=123456}}

as well as the background color:

{{notice|Text of the notice|bgcolor=789abc}}

This template is used for the {{incomplete}} and the {{incomplete transcript}} templates, among others. To use a more eye-catching notice, use {{notice2}} instead:

warning!!.png This is a notification template. To use it in any page, place {{notice2|Text of the notice}} in the page. To use a more standard notice, use {{notice}} instead.