Jump to content

Template:Robelbox: Difference between revisions

From IdeaWazaWiki
wikademia>McCormack
No edit summary
wikademia>Darklama
maybe this will make the icon fit a bit better inside the heading...
Line 1: Line 1:
{| cellspacing="2" cellpadding="0" style="margin:0em 0em 0em 0em; width:{{{width|100%}}}"
<div style="margin:0px; width:{{{width|100%}}}; border:1px solid {{Robelbox/C2|{{{theme|1}}}}};">
| colspan="1" style="width:100%; vertical-align:top; border:1px solid {{Robelbox/C2|{{{theme|1}}}}}; background-color:{{Robelbox/C1|{{{theme|1}}}}};" |
<div style="width:{{{width|100%}}}; vertical-align:top; background-color:{{Robelbox/C1|{{{theme|1}}}}}; margin:0px; padding:0px;">
[[Image:{{{icon|Namespace Wikipedia.svg}}}|{{{iconwidth|32px}}}|right]]
[[Image:{{{icon|Namespace Wikipedia.svg}}}|{{{iconwidth|32}}}x{{{iconheight|{{{iconwidth|32}}}}}}px|right]]
<div style="border-bottom:1px solid {{Robelbox/C2|{{{theme|1}}}}}; background-color:{{Robelbox/C3|{{{theme|1}}}}}; padding:0.2em 0.9em 0.2em 0.5em; font-size:120%; font-weight:bold;">{{{title|Title}}}</div>
<div style="border-bottom:1px solid {{Robelbox/C2|{{{theme|1}}}}}; background-color:{{Robelbox/C3|{{{theme|1}}}}}; padding:0.25em 0.9em 0.25em 0.5em; font-size:120%; font-weight:bold;">{{{title|Title}}}</div>
<noinclude><div style="padding:0.75em 1.5em 0em 0.75em;">
</div><noinclude>
<div style="margin:0px; padding:0.25em 1.5em 0em 0.75em;">
''Parameters:''
''Parameters:''
* ''theme'': Values 1 to 6; gives colour scheme.
* ''theme'': Values 1 to 6; gives colour scheme.
Line 9: Line 10:
* ''width'': Box width; default is 100%.
* ''width'': Box width; default is 100%.
* ''icon'': Image name for icon.
* ''icon'': Image name for icon.
* ''iconwidth'': Pixel width of icon; default is 56. Include "px".
* ''iconwidth'': Width of icon in pixels; default is 32.
* ''iconheight'': Height of icon in pixels; default is iconwidth or 32 if not provided.
''Don't forget to use the <nowiki>{{Robelbox-close}}</nowiki> template after your content!''
''Don't forget to use the <nowiki>{{Robelbox-close}}</nowiki> template after your content!''
</div>
</div>
|}
</div>
[[Category:Design templates]]</noinclude>
[[Category:Design templates]]</noinclude>

Revision as of 15:00, 23 March 2008

Title

Parameters:

  • theme: Values 1 to 6; gives colour scheme.
  • title: Box title.
  • width: Box width; default is 100%.
  • icon: Image name for icon.
  • iconwidth: Width of icon in pixels; default is 32.
  • iconheight: Height of icon in pixels; default is iconwidth or 32 if not provided.

Don't forget to use the {{Robelbox-close}} template after your content!