No edit summary |
m (Reverted edits by CityOfSilver (talk) to last revision by RichardF) |
||
(20 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{| cellspacing="0" align="center" cellpadding="5" style="width: {{{width}}}; background-color: {{{background-color}}}; border: | {| cellspacing="0" align="center" cellpadding="5" style="margin-bottom: {{{margin-bottom|1em}}}; width: {{{width}}}; background-color: {{{background-color}}}; border: 2px solid {{{border-color}}}; text-align: center; border-radius:{{{radius}}}px;" | ||
| style="padding: 4pt; line-height: 1.25em;" | | | style="padding: 4pt; line-height: 1.25em;" | | ||
|- | |- | ||
!<big><big>{{{headline}}}</big></big> | |||
|- | |||
{{{content}}} | |{{{content}}} | ||
|} <noinclude> | |} <noinclude> | ||
Line 10: | Line 10: | ||
==Usage== | ==Usage== | ||
< | The [[Help:Notices]] page has detailed help (including for the {{tl|slim notice}} option). The following is a brief version. | ||
Use this template to create one-off notices, or use to create a notice template for a specific purpose. | |||
E.g. for a box with square corners | |||
<pre>{{notice | |||
|width=80% | |||
|background-color=Wheat | |||
|border-color=SaddleBrown | |||
|radius=0 | |||
|headline=Blah blah | |||
|content=Yabba dabba doo | |||
}} | |||
</pre> | |||
creates: | creates: | ||
{{ | {{notice | ||
|width=80% | |||
|background-color=Wheat | |||
|border-color=SaddleBrown | |||
|radius=0 | |||
|headline=Blah blah | |||
|content=Yabba dabba doo | |||
}} | |||
You can also create a box with rounded corners, e.g.: | |||
<pre>{{notice | |||
|width=80% | |||
|background-color=#E3E4FA | |||
|border-color=#993399 | |||
|radius=10 | |||
|headline=Hello! | |||
|content=Join us - why not? | |||
}} | |||
</pre> | |||
creates: | |||
{{notice | |||
|width=80% | |||
|background-color=#E3E4FA | |||
|border-color=#993399 | |||
|radius=10 | |||
|headline=Hello! | |||
|content=Join us - why not? | |||
}} | |||
(If you leave out the "radius" term, it seems to default to a box with square corners, but it seems like good practice to always use the parameters, as in other cases it breaks the template.) | |||
== Choosing colors == | |||
Choose your colors from a "palette" such as the table at [[Wikipedia:Web colors#X11 color names]]. | |||
Note that you can use hex codes for colors such as #F3F2E0, as in this example: | |||
<pre>{{notice | |||
|width=80% | |||
|background-color=#F3F2E0 | |||
|border-color=#B5B380 | |||
|headline=Blah blah | |||
|content=Yabba dabba doo}} | |||
</pre> | |||
See [[Help:Notices]] for more examples of colors. | |||
== See also == | |||
* [[Help:Notices]] | |||
[[Category:Notice templates]] | [[Category:Notice templates]] | ||
</noinclude> | </noinclude> |
Revision as of 05:21, 23 June 2017
{{{headline}}} |
---|
{{{content}}} |
Usage
The Help:Notices page has detailed help (including for the {{slim notice}} option). The following is a brief version.
Use this template to create one-off notices, or use to create a notice template for a specific purpose.
E.g. for a box with square corners
{{notice |width=80% |background-color=Wheat |border-color=SaddleBrown |radius=0 |headline=Blah blah |content=Yabba dabba doo }}
creates:
Blah blah |
---|
Yabba dabba doo |
You can also create a box with rounded corners, e.g.:
{{notice |width=80% |background-color=#E3E4FA |border-color=#993399 |radius=10 |headline=Hello! |content=Join us - why not? }}
creates:
Hello! |
---|
Join us - why not? |
(If you leave out the "radius" term, it seems to default to a box with square corners, but it seems like good practice to always use the parameters, as in other cases it breaks the template.)
Choosing colors
Choose your colors from a "palette" such as the table at Wikipedia:Web colors#X11 color names.
Note that you can use hex codes for colors such as #F3F2E0, as in this example:
{{notice |width=80% |background-color=#F3F2E0 |border-color=#B5B380 |headline=Blah blah |content=Yabba dabba doo}}
See Help:Notices for more examples of colors.