Difference between revisions of "Template:Infobox"

From Raft Wiki
Jump to: navigation, search
m
(4 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
Please, don't make changes, unless you are sure what are you doing, as your edits may destroy entire system.
 
Please, don't make changes, unless you are sure what are you doing, as your edits may destroy entire system.
 
*********************************************************************************************************************
 
*********************************************************************************************************************
-->{| class="infoboxtable" style="width:350px" style="margin-left:10px;"
+
-->{| class="infoboxtable" style="margin-left:10px; min-width:256px"
 
! 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]]</div> }}
| <span style="font-size: 140%">'''{{{name|{{PAGENAME}}}}}'''</span>
+
| <span style="font-size: 135%">'''{{{name|{{PAGENAME}}}}}'''</span>
 
|}
 
|}
 
|-
 
|-
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-right: 15px;">'''{{{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: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:120%;" class="components">'''[[{{{component2name|}}}]]''' <span style="float: right; padding-right: 15px;">'''{{{component2amount|}}}'''</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: {{{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-right: 15px;">'''{{{component3amount|}}}'''</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: {{{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-right: 15px;">'''{{{component4amount|}}}'''</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: {{{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-right: 15px;">'''{{{component5amount|}}}'''</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: {{{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:30, 29 March 2021

Infobox