Template:Main infobox: Difference between revisions

From Regnum Online Wiki
Jump to navigation Jump to search
ROWiki>Erica conjurer
m Making {{{name}}} bold, seeing how that looks. Can revert if you want.
m 17 revisions imported
 
(8 intermediate revisions by 2 users not shown)
Line 16: Line 16:
       <td style="padding-right:0.5em"><!--
       <td style="padding-right:0.5em"><!--
       --><div style="position:absolute"><!--
       --><div style="position:absolute"><!--
        -->{{#ifexist: File:{{{icon}}} | [[File:{{{icon}}}|32px]] }}<!--
 
        -->{{#ifexist: File:{{{icon2}}} | [[File:{{{icon2}}}|32px]] }}<!--
      -->{{#if: {{{icon|}}} | [[File:{{{icon}}}|32px]] }}<!--
       --></div><!--
       --></div><!--
       -->[{{fullurl:Template:{{{name}}}|action=edit}} edit this {{{type}}}]<!--
       -->[{{fullurl:Template:{{{name}}}|action=edit}} edit this {{{type}}}]<!--
Line 24: Line 24:
     <tr>
     <tr>
       <td class="infoboxtitle" style="vertical-align:middle; padding:3px 0 3px 44px">
       <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>
       </td>
       </td>

Latest revision as of 18:06, 6 November 2020

  {{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}}}