Difference between revisions of "Template:Infobox"

(Infobox template!)
 
Line 1: Line 1:
 +
{{#css:
 +
  table.infobox th.title {
 +
    text-align: center;
 +
    background-color: rgba(70, 94, 100, 0.5);
 +
  }
 +
}}
 
<table class="infobox" cellspacing="5" style="width: {{{width|260px}}}; text-align: left; font-size: 88%; line-height: 1.5em; border: 1px solid #aaa; background-color: #f9f9f9; padding: .2em; margin: .5em 0 .5em 1em; float: right;"><!--
 
<table class="infobox" cellspacing="5" style="width: {{{width|260px}}}; text-align: left; font-size: 88%; line-height: 1.5em; border: 1px solid #aaa; background-color: #f9f9f9; padding: .2em; margin: .5em 0 .5em 1em; float: right;"><!--
 
Title -->{{#if:{{{title|}}}|<tr><th colspan="2" style="text-align: center; background: #E8E8E8; font-size: 1.25em; padding: .3em 0;">{{{title}}}</th></tr>}}<!--
 
Title -->{{#if:{{{title|}}}|<tr><th colspan="2" style="text-align: center; background: #E8E8E8; font-size: 1.25em; padding: .3em 0;">{{{title}}}</th></tr>}}<!--

Revision as of 13:34, 22 September 2020

This is a meta template supposed to be used only on other templates.