Template:Info
From MeritBadgeDotOrg
(Difference between revisions)
(<noinclude>{{Documentation}}</noinclude>) |
(|left-indent = 5%) |
||
| Line 2: | Line 2: | ||
|barcolor = #1e90ff | |barcolor = #1e90ff | ||
|width = | |width = | ||
| + | |left-indent = 5% | ||
|image = Info.png | |image = Info.png | ||
|text = {{{1}}} | |text = {{{1}}} | ||
}} | }} | ||
<noinclude>{{Documentation}}[[Category:Article Message Boxes]]</noinclude> | <noinclude>{{Documentation}}[[Category:Article Message Boxes]]</noinclude> | ||
Revision as of 08:02, July 18, 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
