Template:Infobox Character: Difference between revisions

From AnotherEidos R Wiki
Bejeebs (talk | contribs)
No edit summary
original>Jeebs
No edit summary
Line 1: Line 1:
{{#css:
<!-- Infobox Character
.anados-infobox { width: 400px; background-color:#e7e7e7; float:right; padding: 15px; border: solid black 1px;}
WIP Updated Infoboxm Still figuring out how best to handle some stuff, but it's mostly ok
.anados-infobox table{ width:100%; background-color:#f8f9fa; padding:5px; color:#304762;}
    Template: Infobox Character Alter will now just rely on this template
.anados-infobox .character-heading { height:120px; text-align:left; line-height:1.2; padding-left:15px; display: table-cell; vertical-align: middle;}
 
.anados-infobox .character-heading span{font-size:24px; font-weight:bold;}
note: how it hides empty optional rows is very hacky but it does what it needs to.
.anados-infobox .icon-container {width:100px; display:table-cell; vertical-align: middle; line-height:1; font-size:10px;}
 
.infobox-table-cells th{background-color:#304762; color: #ffffff; width:140px;}
-->
.infobox-table-cells td{background-color: #ffffff;}
<div class="infobox" style=" width:380px; background:#e7e7e7; overflow:overlay;">
.anados-template-footer {font-size:10px; width:100%;}
 
.anados-template-footer .left {float:left;}
<table style="width:100%; background:#f8f9fa; padding:5px; color: #304762; align:center; ">
.anados-template-footer .right {float:right;}
}}
<div class="anados-infobox">
<table>
<tr>
<tr>
<td class="character-heading">
<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>{{{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 class="icon-container">
<td style="width:100px; display: table-cell; vertical-align: middle; line-height:1; font-size:10px;">
[[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 class="icon-container">
<td style="width:100px; display: table-cell; vertical-align: middle; line-height:1; font-size:10px; ">
[[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 29: Line 25:
</tr>
</tr>
</table>
</table>
{{#tag:tabber | {{!}}-{{!}}  Bronze= [[File:{{{image|Charactername.png}}}|440x440px|center|middle]]  
<table class="wikitable mw-collapsible" style="width:100%; margin: 0.4em 0; border:0;" >
{{#if: {{{image2|}}} | {{!}}-{{!}} Silver= [[File:{{{image2|Charactername.png}}}|440x440px|center|middle]] }}
<th>{{{image-label|Bronze}}}</th>
{{#if: {{{skin-list|}}} | {{!}}-{{!}} {{{skin-list}}} }}
<tr><td>[[File:{{{image|Charactername.png}}}|330px|center|middle]]</td></tr>
}}
</table>
<table class="infobox-table-cells" style="width:100%; padding-top:10px;">
  <table class="wikitable mw-collapsible mw-collapsed" style="width:100%;  margin: 0.4em 0; display:{{{image2|none}}}; border:0;" >
<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>Illustrator</th>  
<th style="background-color:#304762; color: white;">Illustrator</th>  
<td>{{{illustrator-link}}}</td>
<td style="background-color:white;">{{{illustrator-link}}}</td>
</tr>
</tr>
<tr>  
<tr>  
<th >Release Date</th>
<th style="background-color:#304762; color: white;">Release Date</th>
<td><includeonly>[[:Category:Released by {{{release-year|2021}}}|{{{release-date}}}]]</includeonly></td>
<td style="background-color:white;"><includeonly>[[:Category:Released by {{{release-year|2021}}}|{{{release-date}}}]]</includeonly></td>
</tr>
</tr>
<tr style="display:{{{availability|none}}};">  
<tr style="display:{{{availability|none}}};">  
<th>Availability</th>
<th style="background-color:#304762; color: white;">Availability</th>
<td>[[:Category:{{{availability}}}|{{{availability}}}]]</td>
<td style="background-color:white;">[[:Category:{{{availability}}}|{{{availability}}}]]</td>
</tr>
</tr>
</table>
</table>
<table class="infobox-table-cells" style="width:100%; padding-top:10px;">
<tr>  
<div style="display:{{{alternate-link|none}}}">
<th>Crystalline Good</th>  
<table style="width:100%; padding-top:10px;">
<td>[[File:item_crystal_{{{filename|}}}.png|200px|]]<br>{{{Good_name|Good Name}}}</td>
<tr>
<td style="background-color:white;">
<span style=" color:#304762; font-weight:bold;">Alternate Variants</span><br>
{{{alternate-link|n/a}}}
</td>  
</tr>
</tr>
</table>
</table>
</div>
<div style="display:{{{Good_name|none}}};">{{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 class="anados-template-footer">
 
<span class="left">[[Characters]]</span>
<div style="display:">
<span class="right">[[Template:{{{template-name|Infobox Character}}}|[template edit]]]</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>
</div></div>
</div></div>
<div style="display:none;">__NOTOC__
<div style="display:none;">__NOTOC__
Line 66: Line 75:
[[Category:Released by {{{release-year|2021}}}]]</div>
[[Category:Released by {{{release-year|2021}}}]]</div>
<noinclude>
<noinclude>
==Test==
==Test==
<pre><nowiki>
<pre><nowiki>