Template:Info
From MeritBadgeDotOrg
(Difference between revisions)
(allow for full width standardization) |
(add variables for width and left margin) |
||
| Line 1: | Line 1: | ||
{{ArticleMessageBox | {{ArticleMessageBox | ||
| + | |width={{{2|80%}}} | ||
| + | |left-indent = {{{3|10%}}} | ||
|barcolor = #1e90ff | |barcolor = #1e90ff | ||
|image = Info.png | |image = Info.png | ||
Revision as of 15:47, October 17, 2008
| | {{{1}}} |
Function
{{Info|Sample text}} lets you quickly note a key fact at the top of a page.
{{Info|Sample text|width|leftmargin}} is the format for the optional variables 2 and 3. The default values are width = 80% and leftmargin=10%.
Examples
- If you use {{Info|Sample text}} with just the text parameter
{{Info|Sample text}}
which gives:
| | Sample text |
- To automatically set the width to the minimum width needed
{{Info|Sample text|auto}}
which gives:
| | Sample text |
- To change the left margin to 5% and use auto width
{{Info|Sample text|auto|5%}}
which gives:
| | Sample text |
- One last example of left margin of 30px and width of 60%
{{Info|Sample text|60%|30px}}
which gives:
| | Sample text |
See also
