Template:Main infobox: Difference between revisions

From Regnum Online Wiki
Jump to navigation Jump to search
ROWiki>Onteron
No edit summary
ROWiki>Onteron
No edit summary
Line 14: Line 14:
           style="margin: 0.5em 0; background-color:{{{bgcolor|#aaccff}}}">
           style="margin: 0.5em 0; background-color:{{{bgcolor|#aaccff}}}">
     <tr class="plainlinks" style="font-size:85%; font-style:italic; text-align:right">
     <tr class="plainlinks" style="font-size:85%; font-style:italic; text-align:right">
       <td style="padding-right:3px"><!--
       <td style="padding-right:0.5em"><!--
       --><div style="position:absolute; padding:2px"><!--
       --><div style="position:absolute"><!--
         -->{{#ifexist: File:{{{icon}}} | [[File:{{{icon}}}|32px]] }}<!--
         -->{{#ifexist: File:{{{icon}}} | [[File:{{{icon}}}|32px]] }}<!--
       --></div><!--
       --></div><!--
Line 22: Line 22:
     </tr>
     </tr>
     <tr>
     <tr>
       <td class="infoboxtitle" style="vertical-align:middle; padding:3px 0 3px 38px">
       <td class="infoboxtitle" style="vertical-align:middle; padding:3px 0 3px 44px">
         <h4 style="float:left; padding:0; margin:0">{{{name}}}</h4>
         <h4 style="float:left; padding:0; margin:0">{{{name}}}</h4>
         <div style="float:right">{{{tbcontent|}}}</div>
         <div style="float:right">{{{tbcontent|}}}</div>

Revision as of 13:20, 18 July 2009

  {{main infobox
    | name      = 
    | type      = 
    | classes   = 
    | bgcolor   = 
    | icon      = 
    | tbcontent = 
    | content   = 
  }}

{{{name}}}

This div is put in here to make sure the box expands to the full width possible. Therefore it needs enough text for at least one line on the page. This a really ugly hack so please replace with a better solution if you can. Thanks!
{{{content}}}