Scottkillen (talk | contribs) m (.) |
Scottkillen (talk | contribs) m (→Components: add spacer) |
||
Line 9: | Line 9: | ||
* {{Tl|Infobox DIY/field}} adds a field to a DIY Infobox. |
* {{Tl|Infobox DIY/field}} adds a field to a DIY Infobox. |
||
* {{Tl|Infobox DIY/line}} adds a dividing line to a DIY infobox. |
* {{Tl|Infobox DIY/line}} adds a dividing line to a DIY infobox. |
||
+ | * {{Tl|Infobox DIY/spacer}} adds a blank space to a DIY infobox. |
||
* {{Tl|Infobox DIY/end}} closes a DIY Infobox. |
* {{Tl|Infobox DIY/end}} closes a DIY Infobox. |
||
Revision as of 14:19, 25 July 2016
This series of templates allows editors to create unique infoboxes quickly.
Components
{{Infobox DIY/begin}}
creates a DIY Infobox.{{Infobox DIY/header}}
adds a section header to a DIY Infobox.{{Infobox DIY/field}}
adds a field to a DIY Infobox.{{Infobox DIY/line}}
adds a dividing line to a DIY infobox.{{Infobox DIY/spacer}}
adds a blank space to a DIY infobox.{{Infobox DIY/end}}
closes a DIY Infobox.
Parameters
{{Infobox DIY/begin}}
1: the name of the infobox.
{{Infobox DIY/header}}
1: the name of the section.
{{Infobox DIY/field}}
1: the name of the field.
2: The value of the field.
3: The css style of the value cell.
{{Infobox DIY/line}}
This template has no parameters.
{{Infobox DIY/end}}
This template has no parameters.
Example
Template:Infobox DIY/begin
ModAdvanced Generators TypeMachine Required Blocks ControllerTurbine
Optional Blocks Fuel Tank
Power Capacitor
Fluid Intake Valve
Output Module
Sensor Module
Control Module
Efficiency Upgrade
Template:Infobox DIY/end
{{Infobox DIY/begin|Gas Turbine Generator}} {{Infobox DIY/field|Mod|Advanced Generators}} {{Infobox DIY/field|Type|Machine}} {{Infobox DIY/header|Required Blocks}} {{Infobox DIY/field|Controller|{{Gc|mod=ADVG|dis=false|no-bg=true|Gas Turbine Controller}}|text-align:center}} {{Infobox DIY/field|Turbine|{{Gc|mod=ADVG|no-bg=true|Iron Turbine|link=Turbine (Advanced Generators)}}{{Gc|mod=ADVG|no-bg=true|Gold Plated Turbine|link=Turbine (Advanced Generators)}}{{Gc|mod=ADVG|no-bg=true|Bronze Turbine|link=Turbine (Advanced Generators)}}{{Gc|mod=ADVG|no-bg=true|Steel Turbine|link=Turbine (Advanced Generators)}}{{Gc|mod=ADVG|no-bg=true|Enderium Turbine|link=Turbine (Advanced Generators)}}{{Gc|mod=ADVG|no-bg=true|Vibrant Turbine|link=Turbine (Advanced Generators)}}{{Gc|mod=ADVG|no-bg=true|Manyullyn Turbine|link=Turbine (Advanced Generators)}}{{Gc|mod=ADVG|no-bg=true|Advanced Alloy Turbine|link=Turbine (Advanced Generators)}}|text-align:center}} {{Infobox DIY/header|Optional Blocks}} {{Infobox DIY/field|Fuel Tank|{{Gc|mod=ADVG|no-bg=true|dis=false|Fuel Tank}}|text-align:center}} {{Infobox DIY/field|Power Capacitor|{{Gc|mod=ADVG|no-bg=true|Basic Power Capacitor|link=Capacitor}}{{Gc|mod=ADVG|no-bg=true|Advanced Power Capacitor|link=Capacitor}}{{Gc|mod=ADVG|no-bg=true|High Density Power Capacitor|link=Capacitor}}|text-align:center}} {{Infobox DIY/field|Fluid Intake Valve|{{Gc|mod=ADVG|no-bg=true|dis=false|Fluid Intake Valve}}|text-align:center}} {{Infobox DIY/field|Output Module|{{Gc|mod=ADVG|no-bg=true|Fluid Output Valve|link=Output Module}}{{Gc|mod=ADVG|no-bg=true|Item Output Port|link=Output Module}}{{Gc|mod=ADVG|no-bg=true|Pressurized Output Valve|link=Output Module}}|text-align:center}} {{Infobox DIY/field|Sensor Module|{{Gc|mod=ADVG|no-bg=true|dis=false|Sensor Module}}|text-align:center}} {{Infobox DIY/field|Control Module|{{Gc|mod=ADVG|no-bg=true|dis=false|Redstone Control Module}}|text-align:center}} {{Infobox DIY/field|Efficiency Upgrade|{{Gc|mod=ADVG|no-bg=true|dis=false|Fuel Air Mixer|Fuel/Air Mixer}}{{Gc|mod=ADVG|no-bg=true|dis=false|Gas Mix Compressor}}|text-align:center}} {{Infobox DIY/end}}
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.