Difference between revisions of "Template:Notice"

Jump to navigation Jump to search
1,384 bytes added ,  4 years ago
m
+usage
m (+usage)
(11 intermediate revisions by 3 users not shown)
<includeonly><div {{#if:{{{id|}}}|id="{{{id}}}"}} class="notice hide-for-print {{{class|curved}}}" style="{{{style}}}">{{#if:{{{b|}}}|<div style="font-weight:bold;">{{{b}}}</div>|}}{{{1}}}</div></includeonly><noinclude>A template that helps build [[:Category:Notices|Notice templates]].
The Notice template is a parent template that helps build [[:Category: Notices|Notice Templates]]. This template should never be used in its raw form on an article, but instead should be used to create new templates.
 
== Parameters ==
[[Category:Notices|{{PAGENAME}}]]
 
{{{style}}} - allows the user to set various style elements of the notice box, like background color
 
{{{b}}} - optional parameter that creates a bolded title for the notice box
 
{{{1}}} - the regular text in the notice box
 
== Examples ==
 
Here is one example of a potential notice box.
 
This code on the template page
<code><nowiki>
{{notice|style=background-color:#CCA;
|b=This is the bold title of the box!
|1=This is the regular text with more detail
}}
</nowiki></code>
 
produces this when the template is used:
 
{{notice|style=background-color:#CCA;
|b=This is the bold title of the box!
|1=This is the regular text with more detail
}}
 
Here's another example, this time without the bold line at the top.
 
This code on the template page
<code><nowiki>
{{notice|style=background-color:#FAA;
|1=This notice doesn't have a bold title
}}
</nowiki></code>
 
{{notice|style=background-color:#FAA;
|1=This notice doesn't have a bold title
}}
 
[[Category: Notices|{{PAGENAME}} ]]
 
== Derived Templates ==
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here}}
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=10}}
40,275

edits

Navigation menu