Template:Infobox Character: Difference between revisions

From AnotherEidos R Wiki
original>Jeebs
No edit summary
Bejeebs (talk | contribs)
No edit summary
Tag: 2017 source edit
 
(45 intermediate revisions by the same user not shown)
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 {background:#e7e7e7; float: right; border: solid black 1px;}
    Template: Infobox Character Alter will now just rely on this template
.anados-infobox table{ width:100%; background:#f8f9fa; padding:5px; color: #304762;}
 
.anados-infobox .heading-row{ text-align: left; line-height:1.2; padding:5px; display: table-cell; }
note: how it hides empty optional rows is very hacky but it does what it needs to.
.anados-infobox .heading-row .heading-cell { width:80%;}
 
.anados-infobox .heading-row .heading-cell span{font-size:24px; font-weight:bold;}
-->
.anados-infobox .heading-row .icon{width:10%; font-size:10px; text-align:center;}
<div class="infobox" style=" width:380px; background:#e7e7e7; overflow:overlay;">
.anados-infobox image-container{background-color:#304762; color:white;}
 
.anados-infobox .details-table th{background-color:#304762; color: white;}
<table style="width:100%; background:#f8f9fa; padding:5px; color: #304762; align:center; ">
}}
<tr>
<div class="anados-infobox">
<td style="min-height:120px; text-align:left; width:auto; line-height:1.2; padding-left:15px; display: table-cell; vertical-align: middle;">
<table>
<tr class="heading-row">
<td class="icon">
[[File:{{{class|Fighter}}}.png|50px|  link={{{class|Fighter}}}]]<br>[[{{{class|Fighter}}}]]
</td>
<td class="heading-cell">
{{{character-title|[Title]}}}<br>
{{{character-title|[Title]}}}<br>
<span style="font-size:24px; font-weight:bold; ">{{{character-name|{{PAGENAME}} }}}</span><br>
<span>{{{character-name|{{PAGENAME}} }}}</span><br> {{GetRarityCategory| rarity={{{rarity}}} }}
[[:Category:{{{rarity|6 Stars ☆☆☆☆☆☆}}}|{{{rarity|6 Stars ☆☆☆☆☆☆}}}]]</span>
</span>
</td>
<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}}}]]
[[{{{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| 80px | link={{{country|Pays Blanc}}}]]<br>[[{{{country|Pays Blanc}}}]]
[[{{{country|Pays Blanc}}}]]
</td>
</td>
</tr>
</tr>
</table>
</table>
<table class="wikitable mw-collapsible" style="width:100%; margin: 0.4em 0; border:0;" >
<div class="image-container">
<th>{{{image-label|Bronze}}}</th>
{{#tag:tabber | {{!}}-{{!}}  {{{tab1|Bronze}}}= [[File:{{{image|Charactername.png}}}|440x440px|center|middle]]  
<tr><td>[[File:{{{image|Charactername.png}}}|330px|center|middle]]</td></tr>
{{#if: {{{image2|}}} | {{!}}-{{!}} {{{tab2|Silver}}}= [[File:{{{image2|Charactername.png}}}|440x440px|center|middle]] }}
</table>
{{#if: {{{skin-list|}}} | {{{skin-list}}} }}
  <table class="wikitable mw-collapsible mw-collapsed" style="width:100%;  margin: 0.4em 0; display:{{{image2|none}}}; border:0;" >
}}
<th>{{{image2-label|Silver}}}</th>
</div>
<tr><td>[[File:{{{image2|Charactername.png}}}|330px|center|middle]]</td></tr>
<table class="details-table">
</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|{{#explode:{{{release-date}}}|/|2}}}}}|{{{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:{{{Good_name|}}}| <div>{{Crystalline Good|Good_name={{{Good_name}}} | filename={{{filename}}} }}</div>}}
<div style="display:{{{alternate-link|none}}}">
<table style="width:100%; padding-top:10px;">
<tr>
<td style="background-color:white;">
<span style=" color:#304762; font-weight:bold;">Alternate Variants</span><br>
{{{alternate-link|n/a}}}
</td>
</tr>
</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><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 style="display:">
</div> <includeonly>[[Category:{{{class}}}]] [[Category:{{{country}}}]] [[Category:{{{availability}}}]] [[Category:Released by {{{release-year|{{#explode:{{{release-date}}}|/|2}}}}}]]</includeonly>
<span style="float:left; font-size:10px;">[[Characters]]</span>
__NOTOC__
<span style="float:right; font-size:10px;">[[Template:{{{template-name|Infobox Character}}}|[template edit]]]</span>
</div></div>
<div style="display:none;">__NOTOC__
[[Category:{{{class}}}]]
[[Category:{{{country}}}]]
[[Category:{{{rarity}}}]]
[[Category:{{{availability}}}]]
[[Category:Released by {{{release-year|2021}}}]]</div>
<noinclude>
<noinclude>
==Test==
==Test==
<pre><nowiki>
<pre><nowiki>