Template:Info
From MeritBadgeDotOrg
(Difference between revisions)
(New template) |
m (fixed <noinclude> position) |
||
| (11 intermediate revisions not shown.) | |||
| Line 1: | Line 1: | ||
| - | {| | + | {{ArticleMessageBox |
| - | |- | + | |width={{{2|80%}}} |
| - | | | + | |left-indent = {{{3|10%}}} |
| - | | | + | |barcolor = #1e90ff |
| - | + | |image = Info.png | |
| - | </noinclude> | + | |text = {{{1}}} |
| + | }}<noinclude> | ||
| + | {{Documentation}}[[Category:Article Message Boxes]]</noinclude> | ||
Current revision
| | {{{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
