Difference between revisions of "Template:SingleBasicBox"
(single basic box) |
Asad Saeed (talk | contribs) (Information site moved to Template:SingleBasicBox: Moved back to original Template page. ) |
||
(30 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
{| cellpadding="5px" cellspacing="0px" width="{{{width|100%}}}" | {| cellpadding="5px" cellspacing="0px" width="{{{width|100%}}}" | ||
|style="padding-top:0px; padding-right:0px; padding-left:0px; padding-bottom:0px;" valign="top" | | |style="padding-top:0px; padding-right:0px; padding-left:0px; padding-bottom:0px;" valign="top" | | ||
− | {| style="margin:0; width:100%; background: {{{background-color|#ACCDAC}}}; font-family:sans-serif; font-size: | + | {| style="margin:0; width:100%; background: {{{background-color|#ACCDAC}}}; font-family:sans-serif; font-size:{{{font-size|100%}}}; text-align:{{{text align|left}}}; color:{{{text-color|#000000}}}; padding-left:0.4em; padding-top:0em; padding-bottom:0em;" |
|{{{body}}} | |{{{body}}} | ||
|} | |} | ||
− | |} | + | |}<noinclude> |
+ | |||
+ | == Instructions == | ||
+ | |||
+ | {{font|125%|'''Example:'''}} | ||
+ | |||
+ | <div style="float:left; width=49%; padding-left:20px;"> | ||
+ | <pre> | ||
+ | {{SingleBasicBox | ||
+ | | body = enter text here | ||
+ | }} | ||
+ | </pre></div> | ||
+ | |||
+ | {{Clear}} | ||
+ | {{font|135%|'''Result:'''}} | ||
+ | {{Clear}} | ||
+ | |||
+ | {{SingleBasicBox | ||
+ | | body = enter text here | ||
+ | }} | ||
+ | |||
+ | |||
+ | {{font|125%|'''Example:'''}} Changing the background: You can use the RGB and Hex code also, besides simply green, blue, red or some other basic color. | ||
+ | |||
+ | <div style="float:left; width=49%; padding-left:20px;"> | ||
+ | <pre> | ||
+ | {{SingleBasicBox | ||
+ | | background-color = green | ||
+ | | body = enter text here | ||
+ | }} | ||
+ | </pre></div> | ||
+ | {{Clear}} | ||
+ | <br> | ||
+ | {{font|135%|'''Result:'''}} | ||
+ | {{Clear}} | ||
+ | {{SingleBasicBox | ||
+ | | background-color = green | ||
+ | | body = enter text here | ||
+ | }} | ||
+ | |||
+ | {{font|125%|'''Example:'''}} Changing Text color: Again you can use the RGB, Hex or simply the color name. | ||
+ | |||
+ | <div style="float:left; width=49%; padding-left:20px;"> | ||
+ | <pre> | ||
+ | {{SingleBasicBox | ||
+ | | background-color = green | ||
+ | | body = enter text here | ||
+ | | text-color = #E0EB26 | ||
+ | }} | ||
+ | </pre></div> | ||
+ | {{Clear}} | ||
+ | {{font|135%|'''Result:'''}} | ||
+ | {{Clear}} | ||
+ | |||
+ | {{SingleBasicBox | ||
+ | | background-color = green | ||
+ | | body = enter text here | ||
+ | | text-color = #E0EB26 | ||
+ | }} | ||
+ | |||
+ | {{font|125%|'''Example:'''}} Text alignment: Use left, right or center to change the text alignment (left by default). | ||
+ | |||
+ | <div style="float:left; width=49%; padding-left:20px;"> | ||
+ | <pre> | ||
+ | {{SingleBasicBox | ||
+ | | background-color = green | ||
+ | | body = enter text here | ||
+ | | text align = center | ||
+ | | text-color = yellow | ||
+ | }} | ||
+ | </pre></div> | ||
+ | {{Clear}} | ||
+ | {{font|135%|'''Result:'''}} | ||
+ | {{Clear}} | ||
+ | {{SingleBasicBox | ||
+ | | background-color = green | ||
+ | | body = enter text here | ||
+ | | text align = center | ||
+ | | text-color = yellow | ||
+ | }} | ||
+ | |||
+ | |||
+ | {{font|125%|'''Example:'''}} Font Size: Use percentage to change the font size (normal by default). | ||
+ | |||
+ | <div style="float:left; width=49%; padding-left:20px;"> | ||
+ | <pre> | ||
+ | {{SingleBasicBox | ||
+ | | background-color = green | ||
+ | | body = enter text here | ||
+ | | text align = center | ||
+ | | text-color = black | ||
+ | | font-size = 150% | ||
+ | }} | ||
+ | </pre></div> | ||
+ | {{Clear}} | ||
+ | {{font|135%|'''Result:'''}} | ||
+ | {{Clear}} | ||
+ | |||
+ | {{SingleBasicBox | ||
+ | | background-color = green | ||
+ | | body = enter text here | ||
+ | | text align = center | ||
+ | | text-color = yellow | ||
+ | | font-size = 150% | ||
+ | }} | ||
+ | {{Clear}} | ||
+ | == Other Basic Boxes == | ||
+ | Also see [[AboutUsBasicBox]] and [[AboutUsMultiColumnBox]]. | ||
+ | |||
+ | |||
+ | [[Category:AboutUsTemplateToolbox]] | ||
+ | </noinclude> |
Latest revision as of 08:30, 6 February 2010
|
Instructions
Example:
{{SingleBasicBox | body = enter text here }}
Result:
|
Example: Changing the background: You can use the RGB and Hex code also, besides simply green, blue, red or some other basic color.
{{SingleBasicBox | background-color = green | body = enter text here }}
Result:
|
Example: Changing Text color: Again you can use the RGB, Hex or simply the color name.
{{SingleBasicBox | background-color = green | body = enter text here | text-color = #E0EB26 }}
Result:
|
Example: Text alignment: Use left, right or center to change the text alignment (left by default).
{{SingleBasicBox | background-color = green | body = enter text here | text align = center | text-color = yellow }}
Result:
|
Example: Font Size: Use percentage to change the font size (normal by default).
{{SingleBasicBox | background-color = green | body = enter text here | text align = center | text-color = black | font-size = 150% }}
Result:
|
Other Basic Boxes
Also see AboutUsBasicBox and AboutUsMultiColumnBox.