Template:Info/doc

From MeritBadgeDotOrg

Jump to: navigation, search

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


Personal tools
language