Difference between revisions of "Template:MachineComponents"
Jump to navigation
Jump to search
(this is my first attempt at making a template, heavily inspiried by User:LordisMangis' Userboxes) |
m |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| class="wikitable" style="width:100%;" | {| class="wikitable" style="width:{{{Width|100%}}};margin-bottom:{{{Margin-b|0em}}};" | ||
|- style="vertical-align:top;" | |- style="vertical-align:top;" | ||
| style="width:30%; background-color:{{{ | | style="width:30%; background-color:{{{Background-c|#E0BADC}}}; text-align:center;" | '''{{{Name|PLACEHOLDER}}}''' <br> [[File:{{{File|burger.png}}}|{{{File-s|64px}}}]] | ||
| rowspan='2' style="width:70%;" | | | rowspan='2' style="width:70%;" | | ||
{| style="width:100%; text-align:left;" | {| style="width:100%; text-align:left;" | ||
| style="background-color:{{{ | | style="background-color:{{{Header-c|#642d5f}}}; color:white; text-align:center;"|'''Component Upgrade Information''' | ||
|- | |- | ||
| {{{Information|[[File:Capacitor.png|32px]] '''Capacitors:''' <br><br>[[File:Micro-laser.png|32px]] '''Lasers:''' <br><br>[[File:Micro_Manipulator.png|32px]] '''Manipulators:''' <br><br>[[File:Scanning_Module.gif|32px]] '''Scanning Modules:''' <br><br>[[File:Matter_bin.png|32px]] '''Matter Bins:''' <br><br>[[File:Powercell.png|32px]] '''Power Cells:''' <br>}}} | | {{{Information|[[File:Capacitor.png|32px]] '''Capacitors:''' <br><br>[[File:Micro-laser.png|32px]] '''Lasers:''' <br><br>[[File:Micro_Manipulator.png|32px]] '''Manipulators:''' <br><br>[[File:Scanning_Module.gif|32px]] '''Scanning Modules:''' <br><br>[[File:Matter_bin.png|32px]] '''Matter Bins:''' <br><br>[[File:Powercell.png|32px]] '''Power Cells:''' <br>}}} | ||
Line 11: | Line 11: | ||
| | | | ||
{| style="width:100%;" | {| style="width:100%;" | ||
| style="background-color:{{{ | | style="background-color:{{{Header-c|#642d5f}}}; color: white; text-align:center;"|'''Components''' | ||
|- | |- | ||
| style="text-align:left;" | {{{Components|[[File:Capacitor.png|32px]] 1x Capacitor <br>[[File:Micro-laser.png|32px]] 1x Laser <br>[[File:Micro_Manipulator.png|32px]] 1x Manipulator <br>[[File:Scanning_Module.gif|32px]] 1x Scanning Module <br>[[File:Matter_bin.png|32px]] 1x Matter Bin <br>[[File:Powercell.png|32px]] 1x Power Cell <br>[[File:Crystal.png|32px]] 1x Bluespace Crystal <br>[[File:Glass.png|32px]] 1x Sheet of Glass <br>[[File:Plasteel.png|32px]] 1x Sheet of Plasteel <br>[[File:Igniter.png|32px]] 1x Igniter <br>[[File:CableCoils.png|32px]] 1x Piece of Cable}}} | | style="text-align:left;" | {{{Components|[[File:Capacitor.png|32px]] 1x Capacitor <br>[[File:Micro-laser.png|32px]] 1x Laser <br>[[File:Micro_Manipulator.png|32px]] 1x Manipulator <br>[[File:Scanning_Module.gif|32px]] 1x Scanning Module <br>[[File:Matter_bin.png|32px]] 1x Matter Bin <br>[[File:Powercell.png|32px]] 1x Power Cell <br>[[File:Crystal.png|32px]] 1x Bluespace Crystal <br>[[File:Glass.png|32px]] 1x Sheet of Glass <br>[[File:Plasteel.png|32px]] 1x Sheet of Plasteel <br>[[File:Igniter.png|32px]] 1x Igniter <br>[[File:CableCoils.png|32px]] 1x Piece of Cable}}} | ||
Line 18: | Line 18: | ||
<noinclude> | <noinclude> | ||
<br><br> | <br><br> | ||
* ''''Margin-b'''' (optional): Changes the margin of the bottom of the chart. '''Default: 0em''' | |||
* ''''Width'''' (optional): Changes the width of the chart. '''Default: 100%''' | |||
* ''''Background-c'''': The colour that appears behind the Item. '''Default: #E0BADC''' | * ''''Background-c'''': The colour that appears behind the Item. '''Default: #E0BADC''' | ||
* ''''Name'''': Name of the Item. '''Default: PLACEHOLDER''' | * ''''Name'''': Name of the Item. '''Default: PLACEHOLDER''' | ||
* ''''File'''': The Items file. '''Default: burger.png''' | * ''''File'''': The Items file. '''Default: burger.png''' | ||
* | * ''''File-s'''' (optional): Changes the file size. '''Default: 64px''' | ||
* ''''Header-c'''': The colour that the headers take. '''Default: #642d5f''' | * ''''Header-c'''': The colour that the headers take. '''Default: #642d5f''' | ||
* ''''Components'''': The field that contains the amount of components the item requires. '''Default: A long list of every item''' | |||
* ''''Information'''': The field that contains information on component upgrading. '''Default: A long list of every item''' | * ''''Information'''': The field that contains information on component upgrading. '''Default: A long list of every item''' | ||
<br><br> | |||
An example of the useage of the template <br> | |||
<nowiki>{{MachineComponents|Width=50%|Background-c=#FF66FF|Name=Purple|File=IPC.png|File-s=64px|Header-c=#660066|Components=[[file:burger.png|32px]] i dunno but i hungry|Information=Why he ourple}}</nowiki> | |||
{{MachineComponents|Width=50%|Background-c=#FF66FF|Name=Purple|File=IPC.png|File-s=64px|Header-c=#660066|Components=[[file:burger.png|32px]] i dunno but i hungry|Information=Why he ourple}} | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 07:31, 9 April 2024
- 'Margin-b' (optional): Changes the margin of the bottom of the chart. Default: 0em
- 'Width' (optional): Changes the width of the chart. Default: 100%
- 'Background-c': The colour that appears behind the Item. Default: #E0BADC
- 'Name': Name of the Item. Default: PLACEHOLDER
- 'File': The Items file. Default: burger.png
- 'File-s' (optional): Changes the file size. Default: 64px
- 'Header-c': The colour that the headers take. Default: #642d5f
- 'Components': The field that contains the amount of components the item requires. Default: A long list of every item
- 'Information': The field that contains information on component upgrading. Default: A long list of every item
An example of the useage of the template
{{MachineComponents|Width=50%|Background-c=#FF66FF|Name=Purple|File=IPC.png|File-s=64px|Header-c=#660066|Components=[[file:burger.png|32px]] i dunno but i hungry|Information=Why he ourple}}
Purple |
| ||
|