Editing Template:Notice

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
<includeonly><div {{#if:{{{id|}}}|id="{{{id}}}"}} class="notice hide-for-print {{{class|curved}}}" style="{{{style}}}">{{#if:{{{b|}}}|<div class="notice-main-text" style="font-weight:bold;">{{{b}}}</div>|}}<span class="{{#if:{{{b|}}}|hide-for-multinotice|notice-main-text}}">{{{1}}}</span></div></includeonly><noinclude>
+
<div class="notice {{{class|}}}" style="{{{style}}}">{{{1}}}</div>
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 ==
 
 
{{{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| ]]
 
 
== Derived Templates ==
 
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here}}
 
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=10}}
 

Please note that all contributions to The Coppermind are considered to be released under the CC4 by-nc-nd (see Coppermind:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)

Templates used on this page: