Template:Generic box: Difference between revisions
Jump to navigation
Jump to search
Ian Oliver (talk | contribs) (added options for color of text, border, and background) |
Ian Oliver (talk | contribs) m (forgot to close noinclude) |
||
| Line 15: | Line 15: | ||
| <pre>{{generic box|Go away!|textcolor=red|bordercolor=orange|bgcolor=black}}</pre> || {{generic box|Go away!|textcolor=red|bordercolor=orange|bgcolor=black}} | | <pre>{{generic box|Go away!|textcolor=red|bordercolor=orange|bgcolor=black}}</pre> || {{generic box|Go away!|textcolor=red|bordercolor=orange|bgcolor=black}} | ||
|} | |} | ||
</noinclude> | |||
Latest revision as of 04:41, 2 June 2016
Use this template to put text in a box for whatever purpose you need. The text to put in the box is given in positional argument 1. The text, border, and background colors are configurable using optional textcolor, bordercolor, and bgcolor arguments. (Because these are named, their positions don't matter. But the text needs to be the first argument.)
Examples
| Code | Result | |
|---|---|---|
{{generic box|Hello there!}} |
| |
{{generic box|Go away!|textcolor=red|bordercolor=orange|bgcolor=black}} |
|