Template:Tool infobox/doc: Difference between revisions

From Vintage Story Wiki
(Created page with "An infobox that presents information relating to a certain tool. For general items, use {{Tl|Item infobox}}. == Usage == {| class="wikitable" |- ! Parameter !! Description !!...")
 
mNo edit summary
 
Line 28: Line 28:
| style="width: 30%"|<pre>
| style="width: 30%"|<pre>
{{Tool infobox
{{Tool infobox
|title=Pickaxe
|Pickaxe
|image=pickaxe-copper.png
|pickaxe-copper
|variants=<ol style="list-style-type:none; padding:0; margin:0;">
|variants={{List|[[Copper]];[[Gold]];[[Silver]];[[Tin bronze| Tin bronze]];[[Bismuth bronze| Bismuth bronze]];[[Black bronze| Black bronze]];[[Meteoric iron]];[[Steel]]}}
<li>[[Copper]]</li><li>[[Gold]]</li><li>[[Silver]]</li><li>[[Tin bronze| Tin bronze]]</li><li>[[Bismuth bronze| Bismuth bronze]]</li><li>[[Black bronze| Black bronze]]</li><li>[[Meteoric iron]]</li><li>[[Steel]]</li></ol>
|effective= [[Ceramic]], [[Rock]], [[Ore]], [[Metal]], [[Ice]]
|effective= [[Ceramic]], [[Rock]], [[Ore]], [[Metal]], [[Ice]]
|placeTool=true}}</pre>
|placeTool=true}}</pre>
Line 37: Line 36:


{{Tool infobox
{{Tool infobox
|title=Pickaxe
|Pickaxe
|image=pickaxe-copper.png
|pickaxe-copper
|align=align:none
|align=align:none
|variants=<ol style="list-style-type:none; padding:0; margin:0;">
|variants={{List|[[Copper]];[[Gold]];[[Silver]];[[Tin bronze| Tin bronze]];[[Bismuth bronze| Bismuth bronze]];[[Black bronze| Black bronze]];[[Meteoric iron]];[[Steel]]}}
<li>[[Copper]]</li><li>[[Gold]]</li><li>[[Silver]]</li><li>[[Tin bronze| Tin bronze]]</li><li>[[Bismuth bronze| Bismuth bronze]]</li><li>[[Black bronze| Black bronze]]</li><li>[[Meteoric iron]]</li><li>[[Steel]]</li></ol>
|effective= [[Ceramic]], [[Rock]], [[Ore]], [[Metal]], [[Ice]]
|effective= [[Ceramic]], [[Rock]], [[Ore]], [[Metal]], [[Ice]]
|placeTool=true}}
|placeTool=true}}
|}
|}
<includeonly>[[Category:Infobox templates]]</includeonly>
<includeonly>[[Category:Infobox templates]]</includeonly>

Latest revision as of 23:07, 17 August 2022

An infobox that presents information relating to a certain tool. For general items, use {{Item infobox}}.

Usage

Parameter Description Type Required
title The name of the tool String yes
subtitle A smaller subtitle shown below the title box String no
image The image of the tool File yes
align Override to align this infobox differently CSS no
effective The materials this tool is effective on, as links Content yes
variants Variants of this tool, such as different metals, as links Content yes
placeTool Can this tool be placed on a tool rack? Boolean no

Example

Code Result
{{Tool infobox
|Pickaxe
|pickaxe-copper
|variants={{List|[[Copper]];[[Gold]];[[Silver]];[[Tin bronze| Tin bronze]];[[Bismuth bronze| Bismuth bronze]];[[Black bronze| Black bronze]];[[Meteoric iron]];[[Steel]]}}
|effective= [[Ceramic]], [[Rock]], [[Ore]], [[Metal]], [[Ice]]
|placeTool=true}}
Pickaxe
Pickaxe-copper.png
Effective on Ceramic, Rock, Ore, Metal, Ice
Placeable Tool rack