Difference between revisions of "Template:Infobox"

From Raft Wiki
Jump to: navigation, search
m
Line 17: Line 17:
 
{{#if: {{{component1name|}}} | {{!}} colspan="2" style="text-transform: uppercase; text-align: left;" {{!}} '''{{{componentTitle|Requires}}}''' }}
 
{{#if: {{{component1name|}}} | {{!}} colspan="2" style="text-transform: uppercase; text-align: left;" {{!}} '''{{{componentTitle|Requires}}}''' }}
 
|-
 
|-
{{#if: {{{component1name|}}} | {{!}} width=50 {{!}} <div class="componentsimage">[[File:{{#titleparts:{{{component1name}}}|1}}.png|center|48px]]</div> {{!!}} style="padding:0;" {{!}} <div style="font-size:120%;" class="components">'''[[{{{component1name}}}|{{{component1transl|{{{component1name}}}}}}]]''' <span style="float: right; padding: 0 15px 0 5px;">'''{{{component1amount|}}}'''</span></div> }}
+
{{#if: {{{component1name|}}} | {{!}} width=50 {{!}} <div class="componentsimage">[[File:{{#titleparts:{{{component1name}}}|1}}.png|center|48px]]</div> {{!!}} style="padding:0;" {{!}} <div style="font-size:120%;" class="components">'''[[{{{component1name}}}|{{{component1transl|{{{component1name}}}}}}]]''' <span style="float: right; padding: 0 15px 0 9px;">'''{{{component1amount|}}}'''</span></div> }}
 
|-
 
|-
{{#if: {{{component2name|}}} | {{!}} width=50 {{!}} <div class="componentsimage">[[File:{{#titleparts:{{{component2name}}}|1}}.png|center|48px]]</div> {{!!}} <div style="font-size:120%;" class="components">'''[[{{{component2name|}}}]]''' <span style="float: right; padding: 0 15px 0 5px;">'''{{{component2amount|}}}'''</span></div> }}
+
{{#if: {{{component2name|}}} | {{!}} width=50 {{!}} <div class="componentsimage">[[File:{{#titleparts:{{{component2name}}}|1}}.png|center|48px]]</div> {{!!}} <div style="font-size:120%;" class="components">'''[[{{{component2name|}}}]]''' <span style="float: right; padding: 0 15px 0 9px;">'''{{{component2amount|}}}'''</span></div> }}
 
|-
 
|-
{{#if: {{{component3name|}}} | {{!}} width=50 {{!}} <div class="componentsimage">[[File:{{#titleparts:{{{component3name}}}|1}}.png|center|48px]]</div> {{!!}} <div style="font-size:120%;" class="components">'''[[{{{component3name|}}}]]''' <span style="float: right; padding: 0 15px 0 5px;">'''{{{component3amount|}}}'''</span></div> }}
+
{{#if: {{{component3name|}}} | {{!}} width=50 {{!}} <div class="componentsimage">[[File:{{#titleparts:{{{component3name}}}|1}}.png|center|48px]]</div> {{!!}} <div style="font-size:120%;" class="components">'''[[{{{component3name|}}}]]''' <span style="float: right; padding: 0 15px 0 9px;">'''{{{component3amount|}}}'''</span></div> }}
 
|-
 
|-
{{#if: {{{component4name|}}} | {{!}} width=50 {{!}} <div class="componentsimage">[[File:{{#titleparts:{{{component4name}}}|1}}.png|center|48px]]</div> {{!!}} <div style="font-size:120%;" class="components">'''[[{{{component4name|}}}]]''' <span style="float: right; padding: 0 15px 0 5px;">'''{{{component4amount|}}}'''</span></div> }}
+
{{#if: {{{component4name|}}} | {{!}} width=50 {{!}} <div class="componentsimage">[[File:{{#titleparts:{{{component4name}}}|1}}.png|center|48px]]</div> {{!!}} <div style="font-size:120%;" class="components">'''[[{{{component4name|}}}]]''' <span style="float: right; padding: 0 15px 0 9px;">'''{{{component4amount|}}}'''</span></div> }}
 
|-
 
|-
{{#if: {{{component5name|}}} | {{!}} width=50 {{!}} <div class="componentsimage">[[File:{{#titleparts:{{{component5name}}}|1}}.png|center|48px]]</div> {{!!}} <div style="font-size:120%;" class="components">'''[[{{{component5name|}}}]]''' <span style="float: right; padding: 0 15px 0 5px;">'''{{{component5amount|}}}'''</span></div> }}
+
{{#if: {{{component5name|}}} | {{!}} width=50 {{!}} <div class="componentsimage">[[File:{{#titleparts:{{{component5name}}}|1}}.png|center|48px]]</div> {{!!}} <div style="font-size:120%;" class="components">'''[[{{{component5name|}}}]]''' <span style="float: right; padding: 0 15px 0 9px;">'''{{{component5amount|}}}'''</span></div> }}
 
|-
 
|-
 
{{#if: {{{descHeader|}}} | {{!}} colspan="2" style="text-transform: uppercase; text-align: left;" {{!}} {{{descHeader|}}} }}
 
{{#if: {{{descHeader|}}} | {{!}} colspan="2" style="text-transform: uppercase; text-align: left;" {{!}} {{{descHeader|}}} }}

Revision as of 09:12, 29 March 2021

Infobox