Difference between revisions of "Template:Event preview infobox"

no edit summary
Line 1: Line 1:
<includeonly>{{#css:
<includeonly>{{#css:
table.infobox {
table.preview-infobox {
     background-color: #f9f9f9;
     background-color: #f9f9f9;
     border: 1px solid #aaa;
     border: 1px solid #aaa;
Line 14: Line 14:
}
}


table.infobox th {
table.preview-infobox th {
     padding: 0em 1em 0em 1em;
     padding: 0em 1em 0em 1em;
}
}


table.infobox tr:first-child th {
table.preview-infobox tr:first-child th {
     background-color: #ccf;
     background-color: #ccf;
     padding: 0.5em 1em 0.5em 1em;
     padding: 0.5em 1em 0.5em 1em;
Line 24: Line 24:
}
}


table.infobox tr:not(:first-child) th {
table.preview-infobox tr:not(:first-child) th {
     background-color: #ddf;
     background-color: #ddf;
}
}


table.infobox tr:not(:first-child) th + th {
table.preview-infobox tr:not(:first-child) th + th {
     background-color: #e4e4ff;
     background-color: #e4e4ff;
}
}


table.infobox td {
table.preview-infobox td {
     text-align: left;
     text-align: left;
     padding: 0px 7px 0px 7px;
     padding: 0px 7px 0px 7px;
Line 46: Line 46:
   |searchlabel=
   |searchlabel=
  }}
  }}
}}{{#if:{{#var:event subobj}}|<table id="event{{#eventnumber}}" class="infobox">
}}{{#if:{{#var:event subobj}}|<table id="event{{#eventnumber}}" class="preview-infobox">
<tr>
<tr>
   <th colspan="2">[[{{#var:event subobj}}|{{{en name|{{{jp name|???}}}}}}]]</th>
   <th colspan="2">[[{{#var:event subobj}}|{{{en name|{{{jp name|???}}}}}}]]</th>