Difference between revisions of "Template:Notice"
BeskarKomrk (talk | contribs) (Added more documentation and examples) |
BeskarKomrk (talk | contribs) m |
||
Line 7: | Line 7: | ||
A 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. |
A 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 |
+ | == Parameters == |
{{{style}}} - allows the user to set various style elements of the notice box, like background color |
{{{style}}} - allows the user to set various style elements of the notice box, like background color |
Revision as of 17:59, 22 December 2016
A template that helps build 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
{{notice|style=background-color:#CCA;
|b=This is the bold title of the box!
|1=This is the regular text with more detail
}}
produces this when the template is used:
Here's another example, this time without the bold line at the top.
This code on the template page
{{notice|style=background-color:#FAA;
|1=This notice doesn't have a bold title
}}