Template:Infobox Character: Difference between revisions

From AnotherEidos R Wiki
Bejeebs (talk | contribs)
No edit summary
Bejeebs (talk | contribs)
No edit summary
Tag: 2017 source edit
Line 1: Line 1:
<!-- Infobox Character
{{#css:
WIP Updated Infoboxm Still figuring out how best to handle some stuff, but it's mostly ok
.anados-infobox {width:380px; background:#e7e7e7; float: right;}
    Template: Infobox Character Alter will now just rely on this template
.anados-infobox table{ width:100%; background:#f8f9fa; padding:5px; color: #304762;}
.anados-infobox .character-heading{ min-height:120px; text-align: left; line-height:1.2; padding-left:15px; display: table-cell; vertical-align: middle;}
.anados-infobox .character-heading td{font-size:24px; font-weight: bold;}
.anados-infobox .character-heading .icon{width:100px; display: table-cell; vertical-align: middle; line-height:1; font-size:10px;}
.anados-infobox .details-table{ width:100%; padding-top:10px;}
.anados-infobox .details-table th{background-color:#304762; color: white;}
.anados-infobox .details-table td{background-color: white;}
}}
<div class="infobox anados-infobox">


note: how it hides empty optional rows is very hacky but it does what it needs to.
<table>
 
<tr class="character-heading">
-->
<td>
<div class="infobox" style=" width:380px; background:#e7e7e7; overflow:overlay; float:right;">
 
<table style="width:100%; background:#f8f9fa; padding:5px; color: #304762; align:center; ">
<tr>
<td style="min-height:120px; text-align:left; width:auto; line-height:1.2; padding-left:15px; display: table-cell; vertical-align: middle;">
{{{character-title|[Title]}}}<br>
{{{character-title|[Title]}}}<br>
<span style="font-size:24px; font-weight:bold; ">{{{character-name|{{PAGENAME}} }}}</span><br>
<span style="font-size:24px; font-weight:bold; ">{{{character-name|{{PAGENAME}} }}}</span><br>
[[:Category:{{{rarity|6 Stars ☆☆☆☆☆☆}}}|{{{rarity|6 Stars ☆☆☆☆☆☆}}}]]</span>
[[:Category:{{{rarity|6 Stars ☆☆☆☆☆☆}}}|{{{rarity|6 Stars ☆☆☆☆☆☆}}}]]</span>
</td>
</td>
<td style="width:100px; display: table-cell; vertical-align: middle; line-height:1; font-size:10px;">
<td class="icon">
[[File:{{{class|Fighter}}}.png|50px|  center | middle|link={{{class|Fighter}}}]]
[[File:{{{class|Fighter}}}.png|50px|  center | middle|link={{{class|Fighter}}}]]
[[{{{class|Fighter}}}]]
[[{{{class|Fighter}}}]]
</td>
</td>
<td style="width:100px; display: table-cell; vertical-align: middle; line-height:1; font-size:10px; ">
<td class="icon">
[[File:{{{country|Pays Blanc}}}.png| 50px |  center | middle|link={{{country|Pays Blanc}}}]]
[[File:{{{country|Pays Blanc}}}.png| 50px |  center | middle|link={{{country|Pays Blanc}}}]]
[[{{{country|Pays Blanc}}}]]
[[{{{country|Pays Blanc}}}]]
Line 25: Line 28:
</tr>
</tr>
</table>
</table>
<table class="wikitable mw-collapsible" style="width:100%; margin: 0.4em 0; border:0;" >
{{#tag:tabber | {{!}}-{{!}} Bronze= [[File:{{{image|Charactername.png}}}|440x440px|center|middle]]  
<th>{{{image-label|Bronze}}}</th>
{{#if: {{{image2|}}} | {{!}}-{{!}} Silver= [[File:{{{image2|Charactername.png}}}|440x440px|center|middle]] }}
<tr><td>[[File:{{{image|Charactername.png}}}|330px|center|middle]]</td></tr>
{{#if: {{{skin-list|}}} | {{!}}-{{!}} {{{skin-list}}} }}
</table>
}}
  <table class="wikitable mw-collapsible mw-collapsed" style="width:100%;  margin: 0.4em 0; display:{{{image2|none}}}; border:0;" >
<table class="details-table">
<th>{{{image2-label|Silver}}}</th>
<tr><td>[[File:{{{image2|Charactername.png}}}|330px|center|middle]]</td></tr>
</table>
{{{skin-list|}}}
<table style="width:100%; padding-top:10px;">
<tr>  
<tr>  
<th style="background-color:#304762; color: white;">Illustrator</th>  
<th>Illustrator</th>  
<td style="background-color:white;">{{{illustrator-link}}}</td>
<td>{{{illustrator-link}}}</td>
</tr>
</tr>
<tr>  
<tr>  
<th style="background-color:#304762; color: white;">Release Date</th>
<th>Release Date</th>
<td style="background-color:white;"><includeonly>[[:Category:Released by {{{release-year|2021}}}|{{{release-date}}}]]</includeonly></td>
<td><includeonly>[[:Category:Released by {{{release-year|2021}}}|{{{release-date}}}]]</includeonly></td>
</tr>
<tr style="display:{{{availability|none}}};">
<th  style="background-color:#304762; color: white;">Availability</th>
<td style="background-color:white;">[[:Category:{{{availability}}}|{{{availability}}}]]</td>
</tr>
</tr>
      {{#if:{{{availability|}}}|
        <tr>
<th>Availability</th>
<td>[[:Category:{{{availability}}}|{{{availability}}}]]</td>
</tr>}}
</table>
</table>
{{#if:{{{alternate-link|}}}|
<div style="display:{{{alternate-link|none}}}">
<div>
<table style="width:100%; padding-top:10px;">
<table style="width:100%; padding-top:10px;">
<tr>
<tr>
Line 56: Line 55:
{{{alternate-link|n/a}}}
{{{alternate-link|n/a}}}
</td>  
</td>  
</tr>
</tr>}}
</table>
</table>
</div>
</div>
 
{{#if:{{{Good_name|}}}|
<div style="display:{{{Good_name|none}}};">{{Crystalline Good|Good_name={{{Good_name}}} | filename={{{filename}}} }}</div>
<div style>{{Crystalline Good|Good_name={{{Good_name}}} | filename={{{filename}}} }}</div>}}
<div>{{{alternate-list|}}}</div>
<div>{{{alternate-list|}}}</div>
<div>{{{eidos-list|}}}</div>
<div>{{{eidos-list|}}}</div>
 
<div>
<div style="display:">
<span style="float:left; font-size:10px;">[[Characters]]</span>
<span style="float:left; font-size:10px;">[[Characters]]</span>
<span style="float:right; font-size:10px;">[[Template:{{{template-name|Infobox Character}}}|[template edit]]]</span>
<span style="float:right; font-size:10px;">[[Template:{{{template-name|Infobox Character}}}|[template edit]]]</span>