Template:Infobox Character: Difference between revisions

From AnotherEidos Wiki
Jump to navigation Jump to search
m (added snippet for tab injection (just a test))
No edit summary
Tag: Manual revert
 
(57 intermediate revisions by the same user not shown)
Line 4: Line 4:


note: how it hides empty optional rows is very hacky but it does what it needs to.
note: how it hides empty optional rows is very hacky but it does what it needs to.
-->
-->
<div class="infobox" style="min-width: max-content; background:#e7e7e7; overflow:overlay;">


<div class="infobox" style="width:auto;width:40%;">
<table style="width:100%; background:#f8f9fa; padding:5px; color: #304762; align:center; ">
 
<div class="infobox-title" style="font-weight:bold;">{{{character-name|{{PAGENAME}}}}}
<div style="font-size:16px">{{{character-title|}}}</div>
</div>
<hr>
<div style="">
{{{image-tabs|
<div class="infobox-image">[[File:{{{image|Charactername.png}}}|350px|center|middle]]</div>
<div class="mw-collapsible mw-collapsed" style="padding: 5px; display:{{{image2|none}}};">
<div style="font-weight:bold;line-height:1.6;">Silver Rank</div>
<div class="mw-collapsible-content" >
<div class="infobox-image">[[File:{{{image2|Charactername.png}}}|500px|center|middle]]</div> </div>
</div>
}}}
</div>
<hr>
 
<table style="width:100%;">
<tr>
<tr>
<th>Rarity</th>
<td style="min-height:120px; text-align:left; width:auto; line-height:1.2; padding-left:15px; display: table-cell; vertical-align: middle;">
<td>[[:Category:{{{rarity|{{{param5}}}}}}|{{{rarity|{{{param5}}}}}}]]</td>
{{{character-title|[Title]}}}<br>
</tr>
<span style="font-size:24px; font-weight:bold; ">{{{character-name|{{PAGENAME}} }}}</span><br>
<tr>
[[:Category:{{{rarity|6 Stars ☆☆☆☆☆☆}}}|{{{rarity|6 Stars ☆☆☆☆☆☆}}}]]</span>
<th>Class</th>
</td>
<td>[[{{{class|{{{param2}}}}}}]]</td>
<td style="width:100px; display: table-cell; vertical-align: middle; line-height:1; font-size:10px;">
</tr>
[[File:{{{class|Fighter}}}.png|50px|  center | middle|link={{{class|Fighter}}}]]
<tr>
[[{{{class|Fighter}}}]]
<th>Deploy Tile</th>
</td>
<td>[[:Category:{{{deploy-tile|{{{param6}}}}}}|{{{deploy-tile|{{{param6}}}}}}]]</td>
<td style="width:100px; display: table-cell; vertical-align: middle; line-height:1; font-size:10px; ">
</tr>
[[File:{{{country|Pays Blanc}}}.png| 50px |  center | middle|link={{{country|Pays Blanc}}}]]
<tr>
[[{{{country|Pays Blanc}}}]]
<th>Damage Type</th>
</td>
<td>[[:Category:{{{damage-type|{{{param7}}}}}}|{{{damage-type|{{{param7}}}}}}]]</td>  
</tr>
    <tr style="display:{{{attack-reach|none}}};">
<th>Attack Reach</th>
<td>[[:Category:{{{attack-reach|Ground}}}|{{{attack-reach|Ground}}}]]</td>  
</tr>
</tr>
</table>
</table>
 
<table class="wikitable mw-collapsible" style="width:100%; margin: 0.4em 0; border:0;" >
<hr>
<th>{{{image-label|Bronze}}}</th>
<table style="width:100%">
<tr><td>[[File:{{{image|Charactername.png}}}|440x440px|center|middle]]</td></tr>
</table>
  <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}}}|440x440px|center|middle]]</td></tr>
</table>
{{{skin-list|}}}
<table style="width:100%; padding-top:10px;">
<tr>  
<tr>  
<th>Country</th>  
<th style="background-color:#304762; color: white;">Illustrator</th>  
<td>[[{{{country|{{{param3}}}}}}]]</td>
<td style="background-color:white;">{{{illustrator-link}}}</td>
</tr>
</tr>
<tr>  
<tr>  
<th>Illustrator</th>  
<th style="background-color:#304762; color: white;">Release Date</th>
<td>{{{illustrator-link|{{{param1}}}}}}</td>
<td style="background-color:white;">[[:Category:Released by {{{release-year|2021}}}|{{{release-date}}}]]</td>
</tr>
<tr>
<th>Release Date</th>
<td>{{{release-date|{{{param4}}}}}}</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>{{{availability|Flyers}}}</td>
<td style="background-color:white;">[[:Category:{{{availability}}}|{{{availability}}}]]</td>
</tr>
</tr>
</table>
</table>
<div style="display:{{{alternate-link|none}}};">
<hr>
<div style="display:{{{alternate-link|none}}}">
<table style="width:100%">
<table style="width:100%; padding-top:10px;">
<tr>
<tr>
<th>Alternate</th>
<td style="background-color:white;">
<td>{{{alternate-link|n/a}}}</td>  
<span style=" color:#304762; font-weight:bold;">Alternate Variants</span><br>
{{{alternate-link|n/a}}}
</td>  
</tr>
</tr>
</table>
</table>
</div></div><div style="display:none;">__NOTOC__
</div>
[[Category:{{{class|{{{param2}}}}}}]]
 
[[Category:{{{country|{{{param3}}}}}}]]
<div>{{{alternate-list|}}}</div>
[[Category:{{{rarity|{{{param5}}}}}}]]
 
[[Category:{{{deploy-tile|{{{param6}}}}}}]]
<div style="display:">
[[Category:{{{damage-type|{{{param7}}}}}}]]
<span style="float:left; font-size:10px;">[[Characters]]</span>
[[Category:{{{attack-reach|Ground}}}]] </div>
<span style="float:right; font-size:10px;">[[Template:{{{template-name|Infobox Character}}}|[template edit]]]</span>
<noinclude>==Test==
</div></div>
<div style="display:none;">__NOTOC__
[[Category:{{{class}}}]]
[[Category:{{{country}}}]]
[[Category:{{{rarity}}}]]
[[Category:{{{availability}}}]]  
[[Category:Released by {{{release-year|2021}}}]]</div>
<noinclude>
 
 
 
 
 
 
 
 
==Test==
<pre><nowiki>
<pre><nowiki>
{{Infobox Character
{{Infobox Character

Latest revision as of 09:04, 15 May 2024

[Title]
Infobox Character
6 Stars ☆☆☆☆☆☆

Fighter

Pays Blanc

Bronze
Illustrator {{{illustrator-link}}}
Release Date {{{release-date}}}
Availability [[:Category:{{{availability}}}|{{{availability}}}]]

Alternate Variants
n/a

[[Category:{{{class}}}]] [[Category:{{{country}}}]] [[Category:{{{rarity}}}]]

[[Category:{{{availability}}}]]





Test[edit source]

{{Infobox Character
|image = barlitz.png
|param1 = [https://twitter.com/canynekhai Canyne Khai]
|param2 = Vanguard
|param3 = Pays Blanc
|param4 = 3/31/2022
|param5 = 5 Stars ☆☆☆☆☆
|param6 = Low Ground
|param7 = Single-Target Physical}}

{{Infobox Character
|character-name = Rai
|character-title = The Beach's Thunder
|image = Rai_beach.png
|image2 = FULL_rai_beach.png
|alternate-link= [[Rai]]
|rarity = 5 Stars ☆☆☆☆☆ 
|class = Vanguard
|deploy-tile = Low Ground
|damage-type = Single-Target Physical
|country = Yamato
|illustrator-link = [https://twitter.com/Cotton_nottoC 狐塚遁(Cotton)]
|release-date = 9/30/2022
|availability = Bright Summer Fest Banner, Bright Summer Fest Invite}}