Difference between revisions of "Template:MCBuild"

From SMT: Dx2 Wiki
Jump to: navigation, search
(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]]|}} {{#ifeq: {{{demonsword|Any Demon}}} | Any Demon | Any Demon | {{DemonIcon|{{{demonsword|Any Demon}}}}} }}
+
| 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]]|}} {{#ifeq: {{{demonshield|Any Demon}}} | Any Demon | Any Demon | {{DemonIcon|{{{demonshield|Any Demon}}}}} }}
+
|- 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=Panel 3|ShieldPanel=Unpaneled |demonite=1xFog 1xFast 1x Dream}}
+
{{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=Panel 3|ShieldPanel=Unpaneled |demonite=ag}}
+
{{MCBuild|style=St|mc=MaleMC|demonsword=Frost Ace|demonshield=Rama|SwordPanel=P3|ShieldPanel=P0|demonite=ag}}
 
</noinclude>
 
</noinclude>

Revision as of 03:07, 10 October 2021




McLu.png FemaleMC.png Lu Style
Demonite
1xFog 1xFast 1x Dream
SwordIcon.png
Frost Ace.jpg
ShieldIcon.png
Rama.jpg
RamaP0

=

McSt.png MaleMC.png St Style
Demonite
ag
SwordIcon.png
Frost Ace.jpg
ShieldIcon.png
Rama.jpg
RamaP0