Difference between revisions of "Template:Infobox"

From Raft Wiki
Jump to: navigation, search
m
m
Line 29: Line 29:
 
{{#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:115%;" class="components">'''[[{{{component1name}}}|{{{component1transl|{{{component1name}}}}}}]]''' <span style="float: right; padding: 0 15px 0 9px;">'''{{{component1amount|}}}'''</span></div> }}
+
{{#if: {{{component1name|}}} | {{!}} width=50 {{!}} <div class="componentsimage">[[File:{{#titleparts:{{{component1name}}}|1}}.png|center|48px|link={{{component1name}}}]]</div> {{!!}} style="padding:0;" {{!}} <div style="font-size:115%;" 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:115%;" class="components">'''[[{{{component2name|}}}]]''' <span style="float: right; padding: 0 15px 0 9px;">'''{{{component2amount|}}}'''</span></div>}}
+
{{#if: {{{component2name|}}} | {{!}} width=50 {{!}} <div class="componentsimage">[[File:{{#titleparts:{{{component2name}}}|1}}.png|center|48px|link={{{component2name}}}]]</div> {{!!}} <div style="font-size:115%;" 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:115%;" class="components">'''[[{{{component3name|}}}]]''' <span style="float: right; padding: 0 15px 0 9px;">'''{{{component3amount|}}}'''</span></div>}}
+
{{#if: {{{component3name|}}} | {{!}} width=50 {{!}} <div class="componentsimage">[[File:{{#titleparts:{{{component3name}}}|1}}.png|center|48px|link={{{component3name}}}]]</div> {{!!}} <div style="font-size:115%;" 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:115%;" class="components">'''[[{{{component4name|}}}]]''' <span style="float: right; padding: 0 15px 0 9px;">'''{{{component4amount|}}}'''</span></div>}}
+
{{#if: {{{component4name|}}} | {{!}} width=50 {{!}} <div class="componentsimage">[[File:{{#titleparts:{{{component4name}}}|1}}.png|center|48px|link={{{component4name}}}]]</div> {{!!}} <div style="font-size:115%;" 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:115%;" class="components">'''[[{{{component5name|}}}]]''' <span style="float: right; padding: 0 15px 0 9px;">'''{{{component5amount|}}}'''</span></div>}}
+
{{#if: {{{component5name|}}} | {{!}} width=50 {{!}} <div class="componentsimage">[[File:{{#titleparts:{{{component5name}}}|1}}.png|center|48px|link={{{component5name}}}]]</div> {{!!}} <div style="font-size:115%;" class="components">'''[[{{{component5name|}}}]]''' <span style="float: right; padding: 0 15px 0 9px;">'''{{{component5amount|}}}'''</span></div>}}
 
|-
 
|-
 
<!-- Content header 1 -->
 
<!-- Content header 1 -->

Revision as of 13:52, 18 April 2021

Infobox