Difference between revisions of "Template:MCBuild"
(Added some conditional formatting and flex display.) |
|||
Line 8: | Line 8: | ||
{{#if: {{{demonite|}}} | <tr style="color: white; background: #4b4d4f; text-align: center; font-size: 12px"><td>'''Demonite'''</td></tr> | <tr height="0"></tr>}} | {{#if: {{{demonite|}}} | <tr style="color: white; background: #4b4d4f; text-align: center; font-size: 12px"><td>'''Demonite'''</td></tr> | <tr height="0"></tr>}} | ||
{{#if: {{{demonite|}}} | <tr style="color: black; background: #f0f0f0; text-align: center; font-size: 12px; height: 15px;"><td>{{{demonite}}}</td></tr>|<tr height="0"></tr>}} | {{#if: {{{demonite|}}} | <tr style="color: black; background: #f0f0f0; text-align: center; font-size: 12px; height: 15px;"><td>{{{demonite}}}</td></tr>|<tr height="0"></tr>}} | ||
+ | |- style="color: white; background: #4b4d4f; text-align: center; font-size: 12px; height: 5px" | ||
+ | | | ||
|- | |- | ||
− | | style="text-align: left" |{{#if: {{{demonsword|}}} | [[File: SwordIcon.png|45px]]|}} {{# | + | | style="text-align: left; display: flex; flex-flow: row nowrap; gap: 4px" |{{#if: {{{demonsword|}}} | [[File: SwordIcon.png|45px]]|}} {{ |
+ | #if: {{{demonsword|}}} | | ||
+ | <div style="display: inline">[[File:{{{demonsword}}}.jpg|50px|link={{{demonsword}}}]]</div><div style="display: flex; flex-flow: row wrap; align-content: flex-start; justify-content: center; align-items: flex-start;"> <span style="flex: 1 1 100%; text-align: center">[[{{{demonsword}}}]]</span><span style="flex: 0 1 51%; text-align: center">{{#if: {{{SwordPanel|}}} |{{{SwordPanel}}}}}</span></div> | ||
+ | }} | ||
|- | |- | ||
− | | style="text-align: left" |{{#if: {{{demonshield|}}} | [[File: ShieldIcon.png|45px]]|}} {{# | + | |- style="color: white; background: #4b4d4f; text-align: center; font-size: 12px; height: 5px" |
+ | | | ||
+ | |- | ||
+ | | style="text-align: left; display: flex; flex-flow: row nowrap; gap: 4px" |{{#if: {{{demonshield|}}} | [[File: ShieldIcon.png|45px]]|}} {{ | ||
+ | #if: {{{demonshield|}}} | | ||
+ | <div style="display: inline">[[File:{{{demonshield}}}.jpg|50px|link={{{demonshield}}}]]</div><div style="display: flex; flex-flow: row wrap; align-content: flex-start; justify-content: center; align-items: flex-start;flex: 1 1 auto"> <span style="flex: 1 1 100%; text-align: center">[[{{{demonshield}}}]]</span><span style="flex: 0 1 51%; text-align: center">{{#if: {{{ShieldPanel|}}} |{{{ShieldPanel}}}}}</span></div> | ||
+ | }} | ||
| | | | ||
|}</includeonly> | |}</includeonly> | ||
Line 20: | Line 31: | ||
<noinclude> | <noinclude> | ||
− | {{MCBuild|style=Lu|mc=FemaleMC|demonsword=Frost Ace|demonshield=Rama|SwordPanel= | + | {{MCBuild|style=Lu|mc=FemaleMC|demonsword=Frost Ace|demonshield=Rama|SwordPanel=P3|ShieldPanel=P0|demonite=1xFog 1xFast 1x Dream}} |
======= | ======= | ||
− | {{MCBuild|style=St|mc=MaleMC|demonsword=Frost Ace|demonshield=Rama|SwordPanel= | + | {{MCBuild|style=St|mc=MaleMC|demonsword=Frost Ace|demonshield=Rama|SwordPanel=P3|ShieldPanel=P0|demonite=ag}} |
</noinclude> | </noinclude> |