Template:Info
From MeritBadgeDotOrg
(Difference between revisions)
m (Protected "Template:Info": High-risk template [edit=sysop:move=sysop]) |
m (mod cat) |
||
| Line 3: | Line 3: | ||
| style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center;" | [[image:120px-Exquisite-khelpcenter.png|60px|Info]] | | style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center;" | [[image:120px-Exquisite-khelpcenter.png|60px|Info]] | ||
| style="padding: 0.25em 0.5em;" | {{{1}}} | | style="padding: 0.25em 0.5em;" | {{{1}}} | ||
| - | |}<noinclude>{{{{FULLPAGENAME}}/doc}}[[Category: | + | |}<noinclude>{{{{FULLPAGENAME}}/doc}}[[Category:Article message box templates|{{PAGENAME}}]] |
</noinclude> | </noinclude> | ||
Revision as of 05:06, March 10, 2008
| | {{{1}}} |
{{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
