Template:Main infobox: Difference between revisions

From Regnum Online Wiki
Jump to navigation Jump to search
ROWiki>Onteron
creating template
 
ROWiki>Onteron
No edit summary
Line 11: Line 11:
</pre>
</pre>
<onlyinclude><!--
<onlyinclude><!--
--><table cellpadding="0" cellspacing="0" class="{{{classes|}}}" style="background-color:{{{bgcolor}}}">
--><table cellpadding="0" cellspacing="0" class="{{{classes|}}}"  
          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>[{{fullurl:Template:{{{name}}}|action=edit}} edit this {{{type}}}]</td>
       <td style="position:relative;"><!--
      --><div style="position:absolute; left:2; top:2"><!--
        -->{{#if: {{{icon|}}} | [[File:{{{icon}}}|32px]] }}<!--
      --></div><!--
      -->[{{fullurl:Template:{{{name}}}|action=edit}} edit this {{{type}}}]<!--
    --></td>
     </tr>
     </tr>
     <tr>
     <tr>
       <td class="infoboxtitle" style="position:relative; vertical-align:middle">
       <td class="infoboxtitle" style="vertical-align:middle; padding-left:32px">
        <div style="position:absolute; left:0; top:0"></div>
         <h4 style="float:left; padding:0 0.5em 0 0.5em;">{{{name}}}</h4>
         <h4 style="float:left; padding:0 0.5em 0 0.5em;">{{{name}}}</h4>
         <div style="float:right">{{{tbcontent|}}}</div>
         <div style="float:right">{{{tbcontent|}}}</div>
Line 23: Line 28:
     </tr>
     </tr>
     <tr>
     <tr>
       <td style="padding:0.5em"><!--
       <td style="padding:0.3em 0.5em"><!--
       --><div style="visibility:hidden; height:0"><!--
       --><div style="visibility:hidden; height:0"><!--
         -->This div is put in here to make sure the box expands to the <!--
         -->This div is put in here to make sure the box expands to the <!--

Revision as of 12:40, 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}}}