Template:Infobox: Difference between revisions

From VrlWiki
Jump to navigation Jump to search
Jadrian Miles (talk | contribs)
No edit summary
Jadrian Miles (talk | contribs)
No edit summary
Line 1: Line 1:
<div style="background:#{{{background|E8E8FF}}}; border:{{{border|1px dashed black}}}; padding:{{{padding|5px}}}; margin:{{{margin|1em 0em}}};">{{{content}}}</div><noinclude>
<div style="background:#{{{background|E8E8FF}}}; border:{{{border|1px dashed black}}}; padding:{{{padding|5px}}}; 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.
* '''background''': the background color as a raw hex integer.  Default value is ''E8E8FF''.
* '''background''': the background color as a raw hex integer.  Default value is ''E8E8FF''.
* '''border''': a CSS-format border style string.  Default value is ''1px dashed black'.
* '''border''': a CSS-format border style string.  Default value is ''1px dashed black'.
* '''padding''': box padding.  Default value is ''5px''.
* '''padding''': box padding.  Default value is ''5px''.
* '''margin''': box margin.  Default value is ''1em 0em''.
* '''margin''': box margin.  Default value is ''1em 0em''.
* '''content''': the contents of the box.  No default value is defined.
 
You if you don't specify the name of the first parameter, it is assumed to be '''content'''.
 
=== Examples ===
 
{| {{Prettytable|width=0}}
|-
! {{Hl2}} | Code
! {{Hl2}} | Result
|-
| <pre><nowiki>{{Infobox|content=Hello world!}}</nowiki></pre> || {{Infobox|content=Hello world!}}
|-
| <pre><nowiki>{{Infobox|Hello world!}}</nowiki></pre> || {{Infobox|Hello world!}}
|}
 
</noinclude>
</noinclude>

Revision as of 00:21, 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. Default value is E8E8FF.
  • border: a CSS-format border style string. Default value is 1px dashed black'.
  • padding: box padding. Default value is 5px.
  • margin: box margin. Default value is 1em 0em.

You if you don't specify the name of the first parameter, it is assumed to be content.

Examples

Code Result
{{Infobox|content=Hello world!}}
Hello world!
{{Infobox|Hello world!}}
Hello world!