Difference between revisions of "Template:Infobox"

From Raft Wiki
Jump to: navigation, search
m
 
(22 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
***********************************************************************************************************************
 
***********************************************************************************************************************
   
  +
-->{| class="infobox"
-->{| class="infoboxtable" style="margin:0 2px 2px 10px; min-width:256px"
 
  +
{{#if: {{{imageLeftTop|}}}| ! class="header" style="max-width:30px;background:-webkit-radial-gradient(center, ellipse cover, rgba(181,153,99,1) 0%, rgba(144,114,69,1) 100%); padding:0px; border-radius:5px"{{!}} [[File:{{{imageLeftTop|}}}|50px|Click here to see information about this file]]}}
<!--
 
  +
** Heading **
 
 
! class="header" {{#if: {{{imageLeftTop|}}}||colspan="2"}}| <span style="font-size: 135%">'''{{{name|{{PAGENAME}}}}}'''</span>
-->
 
! class="header" colspan="2" style="border-bottom: 4px solid #baa16a; text-transform: uppercase; text-align: center; color: #a48754;" |
 
{| style="width:100%;"
 
! width=50 {{#if:{{{image|}}}||style="display:none"}} | {{#if: {{{image|}}} | <div class="infoboximage">[[File:{{{image}}}|50px|center]]</div> }}
 
| <span style="font-size: 135%">'''{{{name|{{PAGENAME}}}}}'''</span>
 
|}
 
 
|-
 
|-
  +
! class="headerSeperator" colspan="2"|
|colspan="2"| {{#if: {{{banner|}}}| [[File:{{{banner}}}|300px]]}}
 
 
|-
 
|colspan="4"| {{#if: {{{image|}}}| [[File:{{{image}}}|300px|Click here to see information about this file]]}}
 
|- valign="top"
 
|- valign="top"
<!--
 
Subheader
 
-->
 
 
{{#if: {{{desc|}}} | {{!}} colspan="2" {{!}} <center>'''{{{desc}}}'''</center> }}
 
{{#if: {{{desc|}}} | {{!}} colspan="2" {{!}} <center>'''{{{desc}}}'''</center> }}
 
|-
 
|-
 
<!--
 
<!--
  +
*******
Component (Crafting menu, Drops)
 
  +
Following lines may be unstable!
--->
 
  +
*******
 
-->
  +
| {{#if: {{{label1|}}} | {{StrutureInfobox/radioButton
  +
| label1 = {{{name1|}}}
  +
| content1 = <table>{{#if: {{{item1component1}}}| <tr><td>{{Infobox/components|{{{item1component1|}}}}}</td></tr>}} {{#if: {{{item1component2|}}}| <tr><td>{{Infobox/components|{{{item1component2|}}}}}</td></tr>}} {{#if: {{{item1component3|}}}| <tr><td>{{Infobox/components|{{{item1component3|}}}}}</td></tr>}} {{#if: {{{item1component4}}}| <tr><td>{{Infobox/components|{{{item1component4|}}}}}</td></tr>}} {{#if: {{{item1component5}}}| <tr><td>{{Infobox/components|{{{item1component5|}}}}}</td></tr>}} </table>
  +
| label2 = {{{name2|}}}
  +
| content2 = <table>{{#if: {{{item2component1}}}| <tr><td>{{Infobox/components|{{{item2component1|}}}}}</td></tr>}} {{#if: {{{item2component2|}}}| <tr><td>{{Infobox/components|{{{item2component2|}}}}}</td></tr>}} {{#if: {{{item2component3|}}}| <tr><td>{{Infobox/components|{{{item2component3|}}}}}</td></tr>}} {{#if: {{{item2component4}}}| <tr><td>{{Infobox/components|{{{item2component4|}}}}}</td></tr>}} {{#if: {{{item2component5}}}| <tr><td>{{Infobox/components|{{{item2component5|}}}}}</td></tr>}} </table>
  +
| label3 = {{{name3|}}}
  +
| content3 = <table>{{#if: {{{item3component1}}}| <tr><td>{{Infobox/components|{{{item3component1|}}}}}</td></tr>}} {{#if: {{{item2component2|}}}| <tr><td>{{Infobox/components|{{{item3component2|}}}}}</td></tr>}} {{#if: {{{item3component3|}}}| <tr><td>{{Infobox/components|{{{item3component3|}}}}}</td></tr>}} {{#if: {{{item3component4}}}| <tr><td>{{Infobox/components|{{{item3component4|}}}}}</td></tr>}} {{#if: {{{item3component5}}}| <tr><td>{{Infobox/components|{{{item3component5|}}}}}</td></tr>}} </table>
  +
| label4 = {{{name4|}}}
  +
| content4 = <table>{{#if: {{{item4component1}}}| <tr><td>{{Infobox/components|{{{item4component1|}}}}}</td></tr>}} {{#if: {{{item2component2|}}}| <tr><td>{{Infobox/components|{{{item4component2|}}}}}</td></tr>}} {{#if: {{{item4component3|}}}| <tr><td>{{Infobox/components|{{{item4component3|}}}}}</td></tr>}} {{#if: {{{item4component4}}}| <tr><td>{{Infobox/components|{{{item4component4|}}}}}</td></tr>}} {{#if: {{{item4component5}}}| <tr><td>{{Infobox/components|{{{item4component5|}}}}}</td></tr>}}</table>
  +
}}
  +
|-
  +
<!-- End of unstable code -->
 
{{#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}}}'''}}
 
|-
 
|-
Line 39: Line 47:
 
{{#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>}}
 
{{#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"
Line 72: Line 79:
 
{{#if: {{{data15|}}} | {{!}} width=80 {{!}} <div>'''{{{title15}}}'''</div> {{!!}} {{{data15}}}}}
 
{{#if: {{{data15|}}} | {{!}} width=80 {{!}} <div>'''{{{title15}}}'''</div> {{!!}} {{{data15}}}}}
 
|-
 
|-
|colspan="2"|<!--
+
|colspan="2"|
Footer navigation
 
--->
 
 
{{#if: {{{prev|}}}|<span style="float:left;padding:0 5px">[[{{{prev|}}}|◄ {{{prev|}}}]]</span>}}{{#if: {{{next|}}}|<span style="float:right;padding:0 5px">[[{{{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 18:41, 22 June 2021

Infobox