(based on Template:Notice, but with a picture and no pre-defined headline) |
(Tidy up Usage; troubleshooting imagesize term) |
||
Line 2: | Line 2: | ||
| style="padding: 4pt; line-height: 1.25em;" | | | style="padding: 4pt; line-height: 1.25em;" | | ||
|- | |- | ||
| style="width: | | style="width: 120px; height: 120px" | [[Image:{{{image}}}|50x50]] | ||
| style="font-size: 12pt; color: black; padding: 4pt; line-height: 1.25em;" |{{{content}}} | | style="font-size: 12pt; color: black; padding: 4pt; line-height: 1.25em;" |{{{content}}} | ||
|- | |- | ||
Line 13: | Line 13: | ||
E.g. for a box with square corners | E.g. for a box with square corners | ||
<pre> | <pre> | ||
Line 22: | Line 19: | ||
creates: | creates: | ||
{{notice | {{notice with image | ||
|width= | |width=70% | ||
|background-color=LightYellow | |background-color=LightYellow | ||
|border-color=DarkOrange | |border-color=DarkOrange | ||
Line 39: | Line 36: | ||
creates: | creates: | ||
{{notice | {{notice with image | ||
|width=60% | |||
|background-color=#E3E4FA | |||
|border-color=#993399 | |||
|radius=10 | |||
|image=Under construction orange.jpg | |||
|imagesize=120px | |||
|content=Roll up and join the fun! Help build topic XYZ on Appropedia... | |||
}} | |||
{{notice with image | |||
|width=80% | |width=80% | ||
|background-color=#E3E4FA | |background-color=#E3E4FA |
Revision as of 17:14, 17 April 2011
[[Image:{{{image}}}|50x50]] | {{{content}}} |
Usage
Create one-off notices, or use to create a notice template for a specific purpose.
E.g. for a box with square corners
creates:
This is a notice with a picture. | |
You can also create a box with rounded corners, e.g.:
creates:
Roll up and join the fun! Help build topic XYZ on Appropedia... | |
[[Image:{{{image}}}|50x50]] | 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.
See also
- {{notice}}
- Help:Notices