Template:Infobox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<div style="background:#{{{background| | <div style="background:#{{{background|F9F9F9}}}; border:{{{border|1px dashed #183856}}}; padding:{{{padding|1em}}}; margin:{{{margin|1em 0em}}};">{{{content|{{{1}}} }}}</div><noinclude> | ||
The following parameters to this template are defined: | The following parameters to this template are defined: | ||
* '''content''': the contents of the box. No default value is defined. | * '''content''': the contents of the box. No default value is defined. | ||
* '''background''': the background color as a raw hex integer | * '''background''': the background color as a raw hex integer. | ||
* '''border''': a CSS-format border style string | * '''border''': a CSS-format border style string. | ||
* '''padding''': box padding | * '''padding''': box padding. | ||
* '''margin''': box margin | * '''margin''': box margin. | ||
You | You can also give the specify the contents of the box in an unnamed parameter; see the examples below. | ||
=== Examples === | === Examples === | ||
| Line 20: | Line 20: | ||
|- | |- | ||
| <pre><nowiki>{{Infobox|Hello world!}}</nowiki></pre> || {{Infobox|Hello world!}} | | <pre><nowiki>{{Infobox|Hello world!}}</nowiki></pre> || {{Infobox|Hello world!}} | ||
|- | |||
| <pre><nowiki>{{Infobox|border=2px solid red|Hello world!}}</nowiki></pre> || {{Infobox|border=2px solid red|Hello world!}} | |||
|} | |} | ||
</noinclude> | </noinclude> | ||
Revision as of 00:29, 11 February 2009
{{{1}}}
The following parameters to this template are defined:
- content: the contents of the box. No default value is defined.
- background: the background color as a raw hex integer.
- border: a CSS-format border style string.
- padding: box padding.
- margin: box margin.
You can also give the specify the contents of the box in an unnamed parameter; see the examples below.
Examples
| Code | Result |
|---|---|
{{Infobox|content=Hello world!}} |
Hello world!
|
{{Infobox|Hello world!}} |
Hello world!
|
{{Infobox|border=2px solid red|Hello world!}} |
Hello world!
|