Forum:New Metabox development: Difference between revisions

m
Modifying slightly to add in old metabox code, so template will display as originally intended
imported>LostInRiverview
No edit summary
imported>LostInRiverview
m (Modifying slightly to add in old metabox code, so template will display as originally intended)
 
Line 5:
On the subject of updating {{t|Metabox}}, I accidentally worked up this as a new style of message box. What do you think?
 
{|class="roundborder" style="border: 1px solid #{{#if:|{{{bordercolor}}}|{{MetaboxBorder|info}}}}; background: #{{#if:|{{{backgroundcolor}}}|{{MetaboxBG|info}}}}; -moz-border-radius:5px; border-radius:5px; border-left: 10px solid #{{#if:|{{{bordercolor}}}|{{MetaboxBorder|info}}}}; border-right: 1px solid #{{#if:|{{{bordercolor}}}|{{MetaboxBorder|info}}}}; {{#ifeq:{{{size}}}|small|font-size: 90%; margin-right:5px; line-height:120%;" width={{#if:|"{{{width}}}%"|"45%"}} align="left"|font-size: 100%; line-height:120%;" width={{#if:|"{{{width}}}%"|"85%"}} align="center"}}
{{Metabox|image=Feeling_Green_smiley.png|type=info|headline=This is Metabox|text=Hi, I'm Metabox! I'm sure I look familiar to you, don't I?}}
{{#if:Feeling_Green_smiley.png|{{!}}width={{#if:|"{{{imagewidth}}}"|"{{#ifeq:{{{size}}}|small|50px|60px}}"}} align="center"{{!}}[[File:Feeling_Green_smiley.png|{{#if:|{{{imagesize}}}px|40px}}|{{#if:|link={{{imagelink}}}|}}]] }}
|'''This is Metabox
{{Metabox|image=Feeling_Green_smiley.png|type=info|headline=This is Metabox|text=Hi, I'm Metabox! I'm sure I look familiar to you, don't I?}}
|}
<br/>
<center>