Template:TechCard: Difference between revisions

Jump to navigation Jump to search
No edit summary
LVL (talk | contribs)
Refactored to use templatestyles
Line 1: Line 1:
<div style="clear:both;">
<templatestyles src="TechCard/styles.css" />
{| style="float: right; font-family:Retail Demo, Open Sans, PT Serif; width:300px; padding:10px; background-color:#2F2F2F; color:#FFEFD7; font-weight:bold; margin: 0 0 1em 1em;"
<div class="techcard-wrapper">
! colspan="2" style="color: #FFEFD7; background-color: #2F2F2F; font-size: 30px; font-family:Retail Demo, Open Sans, PT Serif; font-weight: bold; text-align:center; padding:6px; text-shadow: 2px 2px 4px rgba(0,0,0,0.8);" | {{{name|N/A}}}
{| class="techcard"
! colspan="2" class="techcard-header" | {{{name|N/A}}}
{{#if: {{{nofile|}}} | |
{{#if: {{{nofile|}}} | |
{{!}}-
{{!}}-
{{!}} colspan="2" style="text-align:center; border:none; padding:6px" {{!}}
{{!}} colspan="2" class="techcard-image" {{!}}
[[File:{{{file|}}}|frameless|center|400px|alt={{{name|N/A}}}]]
[[File:{{{file|}}}|frameless|center|400px|alt={{{name|N/A}}}]]
}}
}}
|-
|-
! style="width:124px;font-size: 15px;text-shadow: 1.5px 1.5px 2px rgba(0, 0, 0, 0.8);text-align:right;color: #afafaf; background-color: #2F2F2F;height:29.5px; padding-right:0.5em" | Tech Type:  
! class="techcard-label" | Tech Type:
| style="font-size:16px; color:#FFEFD7; text-shadow:1.5px 1.5px 0.8px rgba(0,0,0,0.8);" | [[{{{tech_type|N/A}}}]]
| class="techcard-value" | [[{{{tech_type|N/A}}}]]
|-
|-
{{#if: {{{difficulty|}}} |
{{#if: {{{difficulty|}}} |
{{!}}-
{{!}}- class="techcard-row"
{{!}}-style="vertical-align:top;"
{{!}}class="techcard-label" {{!}} Difficulty:
{{!}}style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:right;color: #afafaf; background-color: #2F2F2F;height:29.5px" {{!}} Difficulty:
{{!}}class="techcard-value" {{!}} <span class="techcard-value-text">{{{difficulty}}}</span>
{{!}}style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:left; color:#FFEFD7;" {{!}} <span style="margin-left: 2px;">{{{difficulty}}}</span>
}}
}}
{{#if: {{{character_dependent|}}} |
{{#if: {{{character_dependent|}}} |
{{!}}-
{{!}}- class="techcard-row"
{{!}}-style="vertical-align:top;"
{{!}}class="techcard-label" {{!}} Character Dependent:
{{!}}style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:right;color: #afafaf; background-color: #2F2F2F;height:29.5px" {{!}} Character Dependent:
{{!}}class="techcard-value" {{!}} <span class="techcard-value-text">{{{character_dependent}}}</span>
{{!}}style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:left; color:#FFEFD7;" {{!}} <span style="margin-left: 2px;">{{{character_dependent}}}</span>
}}
}}
|-
|-
{{#if: {{{stamina|}}} |
{{#if: {{{stamina|}}} |
{{!}}-
{{!}}- class="techcard-row"
{{!}}-style="vertical-align:top;"
{{!}}class="techcard-label" {{!}} Stamina:
{{!}}style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:right;color: #afafaf; background-color: #2F2F2F;height:29.5px" {{!}} Stamina:
{{!}}class="techcard-value" {{!}} <span class="techcard-value-text">{{{stamina}}}</span>
{{!}}style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:left; color:#FFEFD7;" {{!}} <span style="margin-left: 2px;">{{{stamina}}}</span>
}}
}}
{{#if: {{{inputs|}}} |
{{#if: {{{inputs|}}} |
{{!}}-
{{!}}- class="techcard-row"
{{!}}-style="vertical-align:top;"
{{!}}class="techcard-label" {{!}} Inputs:
{{!}}style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:right;color: #afafaf; background-color: #2F2F2F;height:29.5px" {{!}} Inputs:
{{!}}class="techcard-value" {{!}} <span class="techcard-value-text">{{{inputs}}}</span>
{{!}}style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:left; color:#FFEFD7;" {{!}} <span style="margin-left: 2px;">{{{inputs}}}</span>
}}
}}
{{#if: {{{notes|}}} |
{{#if: {{{notes|}}} |
{{!}}-
{{!}}- class="techcard-row"
{{!}}-style="vertical-align:top;"
{{!}}class="techcard-label" {{!}} Notes:
{{!}}style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:right;color: #afafaf; background-color: #2F2F2F;height:29.5px" {{!}} Notes:
{{!}}class="techcard-value" {{!}} <span class="techcard-value-text">{{{notes}}}</span>
{{!}}style="font-size: 15px;text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.8);text-align:left; color:#FFEFD7;" {{!}} <span style="margin-left: 2px;">{{{notes}}}</span>
}}
}}
|}
|}
</div>
</div>