Template:Main infobox: Difference between revisions

From Regnum Online Wiki
Jump to navigation Jump to search
ROWiki>Onteron
creating template
 
m 17 revisions imported
 
(16 intermediate revisions by 4 users not shown)
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="padding-right:0.5em"><!--
      --><div style="position:absolute"><!--
 
      -->{{#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:3px 0 3px 44px">
        <div style="position:absolute; left:0; top:0"></div>
         <h4 style="float:left; padding:0; margin:0">{{{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>
       </td>
       </td>
     </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 <!--

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