Difference between revisions of "Template:Infobox"

From Raft Wiki
Jump to: navigation, search
m
m
(One intermediate revision by the same user not shown)
Line 13: Line 13:
 
! class="header" colspan="2" style="border-bottom: 4px solid #baa16a; text-transform: uppercase; text-align: center; color: #a48754;" |
 
! class="header" colspan="2" style="border-bottom: 4px solid #baa16a; text-transform: uppercase; text-align: center; color: #a48754;" |
 
{| style="width:100%;"
 
{| style="width:100%;"
! width=50 {{#if:{{{image|}}}||style="display:none"}} | {{#if: {{{image|}}} | <div class="infoboximage">[[File:{{{image}}}|50px|center]]</div> }}
+
! width=50 {{#if:{{{image|}}}||style="display:none"}} | {{#if: {{{image|}}} | <div class="infoboximage">[[File:{{{image}}}|50px|center|Click here to see information about this file]]</div> }}
 
| <span style="font-size: 135%">'''{{{name|{{PAGENAME}}}}}'''</span>
 
| <span style="font-size: 135%">'''{{{name|{{PAGENAME}}}}}'''</span>
 
|}
 
|}
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:53, 18 April 2021

Infobox