Difference between revisions of "Template:Infobox"

From Raft Wiki
Jump to: navigation, search
m
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<!--
 
<!--
  +
*********************************************************************************************************************
+
***********************************************************************************************************************
This code implements infobox! It is designed to work perfectly with Wiki-Bot, while correctly showing on Wiki pages.
+
This code implements an infobox! It is designed to work perfectly with Wiki-Bot, while correctly showing on Wiki pages.
Please, don't make changes, unless you are sure what are you doing, as your edits may destroy entire system.
+
Please, don't make big changes, unless you are sure what are you doing, as your edits may break the entire infobox. Use
*********************************************************************************************************************
 
  +
[[Template:Infobox/Draft]] instead.
-->{| class="infoboxtable" style="margin-left:10px; min-width:256px"
 
 
***********************************************************************************************************************
  +
 
-->{| class="infoboxtable" style="margin:0 2px 2px 10px; min-width:256px"
  +
<!--
  +
** Heading **
  +
-->
 
! 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 13: Line 19:
 
|colspan="2"| {{#if: {{{banner|}}}| [[File:{{{banner}}}|300px]]}}
 
|colspan="2"| {{#if: {{{banner|}}}| [[File:{{{banner}}}|300px]]}}
 
|- valign="top"
 
|- valign="top"
  +
<!--
  +
Subheader
  +
-->
 
{{#if: {{{desc|}}} | {{!}} colspan="2" {{!}} <center>'''{{{desc}}}'''</center> }}
 
{{#if: {{{desc|}}} | {{!}} colspan="2" {{!}} <center>'''{{{desc}}}'''</center> }}
 
|-
 
|-
  +
<!--
{{#if: {{{component1name|}}} | {{!}} colspan="2" style="text-transform: uppercase; text-align: left;" {{!}} '''{{{componentTitle|Requires}}}''' }}
 
  +
Component (Crafting menu, Drops)
  +
--->
 
{{#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 -->
 
{{#if: {{{descHeader|}}} | {{!}} colspan="2" style="text-transform: uppercase; text-align: left;" {{!}} {{{descHeader|}}} }}
 
{{#if: {{{descHeader|}}} | {{!}} colspan="2" style="text-transform: uppercase; text-align: left;" {{!}} {{{descHeader|}}} }}
 
|- valign="top"
 
|- valign="top"
{{#if: {{{data1|}}} | {{!}} width=80 {{!}} <div>'''{{{title1}}}'''</div> {{!!}} {{{data1}}} }}
+
{{#if: {{{data1|}}} | {{!}} width=80 {{!}} <div>'''{{{title1}}}'''</div> {{!!}} {{{data1}}}}}
 
|- valign="top"
 
|- valign="top"
{{#if: {{{data2|}}} | {{!}} width=80 {{!}} <div>'''{{{title2}}}'''</div> {{!!}} {{{data2}}} }}
+
{{#if: {{{data2|}}} | {{!}} width=80 {{!}} <div>'''{{{title2}}}'''</div> {{!!}} {{{data2}}}}}
 
|- valign="top"
 
|- valign="top"
{{#if: {{{data3|}}} | {{!}} width=80 {{!}} <div>'''{{{title3}}}'''</div> {{!!}} {{{data3}}} }}
+
{{#if: {{{data3|}}} | {{!}} width=80 {{!}} <div>'''{{{title3}}}'''</div> {{!!}} {{{data3}}}}}
 
|- valign="top"
 
|- valign="top"
{{#if: {{{data4|}}} | {{!}} width=80 {{!}} <div>'''{{{title4}}}'''</div> {{!!}} {{{data4}}} }}
+
{{#if: {{{data4|}}} | {{!}} width=80 {{!}} <div>'''{{{title4}}}'''</div> {{!!}} {{{data4}}}}}
 
|- valign="top"
 
|- valign="top"
{{#if: {{{data5|}}} | {{!}} width=80 {{!}} <div>'''{{{title5}}}'''</div> {{!!}} {{{data5}}} }}
+
{{#if: {{{data5|}}} | {{!}} width=80 {{!}} <div>'''{{{title5}}}'''</div> {{!!}} {{{data5}}}}}
 
|- valign="top"
 
|- valign="top"
{{#if: {{{data6|}}} | {{!}} width=80 {{!}} <div>'''{{{title6}}}'''</div> {{!!}} {{{data6}}} }}
+
{{#if: {{{data6|}}} | {{!}} width=80 {{!}} <div>'''{{{title6}}}'''</div> {{!!}} {{{data6}}}}}
 
|- valign="top"
 
|- valign="top"
{{#if: {{{data7|}}} | {{!}} width=80 {{!}} <div>'''{{{title7}}}'''</div> {{!!}} {{{data7}}} }}
+
{{#if: {{{data7|}}} | {{!}} width=80 {{!}} <div>'''{{{title7}}}'''</div> {{!!}} {{{data7}}}}}
 
|- valign="top"
 
|- valign="top"
{{#if: {{{data8|}}} | {{!}} width=80 {{!}} <div>'''{{{title8}}}'''</div> {{!!}} {{{data8}}} }}
+
{{#if: {{{data8|}}} | {{!}} width=80 {{!}} <div>'''{{{title8}}}'''</div> {{!!}} {{{data8}}}}}
 
|- valign="top"
 
|- valign="top"
{{#if: {{{data9|}}} | {{!}} width=80 {{!}} <div>'''{{{title9}}}'''</div> {{!!}} {{{data9}}} }}
+
{{#if: {{{data9|}}} | {{!}} width=80 {{!}} <div>'''{{{title9}}}'''</div> {{!!}} {{{data9}}}}}
 
|- valign="top"
 
|- valign="top"
{{#if: {{{data10|}}} | {{!}} width=80 {{!}} <div>'''{{{title10}}}'''</div> {{!!}} {{{data10}}} }}
+
{{#if: {{{data10|}}} | {{!}} width=80 {{!}} <div>'''{{{title10}}}'''</div> {{!!}} {{{data10}}}}}
 
|- valign="top"
 
|- valign="top"
{{#if: {{{data11|}}} | {{!}} width=80 {{!}} <div>'''{{{title11}}}'''</div> {{!!}} {{{data11}}} }}
+
{{#if: {{{data11|}}} | {{!}} width=80 {{!}} <div>'''{{{title11}}}'''</div> {{!!}} {{{data11}}}}}
 
|- valign="top"
 
|- valign="top"
{{#if: {{{data12|}}} | {{!}} width=80 {{!}} <div>'''{{{title12}}}'''</div> {{!!}} {{{data12}}} }}
+
{{#if: {{{data12|}}} | {{!}} width=80 {{!}} <div>'''{{{title12}}}'''</div> {{!!}} {{{data12}}}}}
 
|- valign="top"
 
|- valign="top"
{{#if: {{{data13|}}} | {{!}} width=80 {{!}} <div>'''{{{title13}}}'''</div> {{!!}} {{{data13}}} }}
+
{{#if: {{{data13|}}} | {{!}} width=80 {{!}} <div>'''{{{title13}}}'''</div> {{!!}} {{{data13}}}}}
 
|- valign="top"
 
|- valign="top"
{{#if: {{{data14|}}} | {{!}} width=80 {{!}} <div>'''{{{title14}}}'''</div> {{!!}} {{{data14}}} }}
+
{{#if: {{{data14|}}} | {{!}} width=80 {{!}} <div>'''{{{title14}}}'''</div> {{!!}} {{{data14}}}}}
 
|- valign="top"
 
|- valign="top"
{{#if: {{{data15|}}} | {{!}} width=80 {{!}} <div>'''{{{title15}}}'''</div> {{!!}} {{{data15}}} }}
+
{{#if: {{{data15|}}} | {{!}} width=80 {{!}} <div>'''{{{title15}}}'''</div> {{!!}} {{{data15}}}}}
 
|-
 
|-
|colspan="2"|<!-- Footer navigation --->
+
|colspan="2"|<!--
  +
Footer navigation
{{#if: {{{prev|}}}|<span style="float:left">[[{{{prev|}}}|◄ {{{prev|}}}]]</span>}}{{#if: {{{next|}}}|<span style="float:right">[[{{{next|}}}|{{{next|}}} ►]]</span>}}
 
  +
--->
 
{{#if: {{{prev|}}}|<span style="float:left;padding:0 5px">[[{{{prev|}}}|◄ {{{prev|}}}]]</span>}}{{#if: {{{next|}}}|<span style="float:right;padding:0 5px">[[{{{next|}}}|{{{next|}}} ►]]</span>}}
 
|}
 
|}

Latest revision as of 15:32, 28 April 2021

Infobox