As part of the Unified Community Platform project, this wiki and 38 others will be migrated to the new platform in the next few weeks. Minimal changes are expected as part of this migration. Read more here.

Module:Infobox/thing

From Feed The Beast Wiki
Jump to: navigation, search

Documentation for this module may be created at Module:Infobox/thing/doc

local p = {}

-- Units
local units = {
    cf = [=[<translate><!--T:301--> CF</translate>]=],
    cfPerTick = [=[<translate><!--T:302--> CF/t</translate>]=],
    emc = [=[<translate><!--T:16--> EMC</translate>]=],
    emcPerSec = [=[<translate><!--T:17--> EMC/second</translate>]=],
    eu = [=[<translate><!--T:18--> EU</translate>]=],
    euAmps = [=[<translate><!--T:19--> EU-Amps</translate>]=],
    euPerTick = [=[<translate><!--T:20--> EU/t</translate>]=],
    euPerUse = [=[<translate><!--T:21--> EU/use</translate>]=],
    euVolts = [=[<translate><!--T:22--> EU-Volts</translate>]=],
    huPerTick = [=[<translate><!--T:238--> hU/t</translate>]=],
    k = [=[<translate><!--T:23--> K</translate>]=],
    kuPerTick = [=[<translate><!--T:239--> kU/t</translate>]=],
    litres = [=[<translate><!--T:24--> L</translate>]=],
    litresPerSec = [=[<translate><!--T:25--> L/s</translate>]=],
    litresPerTick = [=[<translate><!--T:26--> L/t</translate>]=],
    mb = [=[<translate><!--T:27--> mB</translate>]=],
    mj = [=[<translate><!--T:28--> MJ</translate>]=],
    mjPerTick = [=[<translate><!--T:29--> MJ/t</translate>]=],
    metersPerSec = [=[<translate><!--T:30--> m/s</translate>]=],
    nm = [=[<translate><!--T:31--> Nm</translate>]=],
    degc = [=[<translate><!--T:32--> ºC</translate>]=],
    degf = [=[<translate><!--T:33--> ºF</translate>]=],
    perTick = [=[<translate><!--T:34--> per tick</translate>]=],
    radPerSec = [=[<translate><!--T:35--> rad/s</translate>]=],
    rf = [=[<translate><!--T:36--> RF</translate>]=],
    rfPerTick = [=[<translate><!--T:37--> RF/t</translate>]=],
    t = [=[<translate><!--T:287--> T</translate>]=],
    tPerTick = [=[<translate><!--T:288--> T/t</translate>]=],
    stacksPerSec = [=[<translate><!--T:38--> Stacks/s</translate>]=],
    su = [=[<translate><!--T:39--> SU</translate>]=],
    suPerTick = [=[<translate><!--T:40--> SU/t</translate>]=],
    suPerUse = [=[<translate><!--T:41--> SU/use</translate>]=],
    watts = [=[<translate><!--T:42--> W</translate>]=],
    aePerUse = [=[<translate><!--T:271--> AE/use</translate>]=]
}

-- This variable holds the list of item types.
local itemTypes = {
    armor = [=[<translate><!--T:43--> Armor</translate>]=],
    block = [=[<translate><!--T:44--> Solid block</translate>]=],
    sblock = [=[<translate><!--T:45--> Solid block</translate>]=],
    oblock = [=[<translate><!--T:46--> Solid block</translate>]=],
    tblock = [=[<translate><!--T:47--> Transparent block</translate>]=],
    component = [=[<translate><!--T:48--> Component</translate>]=],
    crop = [=[<translate><!--T:49--> Crop</translate>]=],
    entity = [=[<translate><!--T:50--> Entity</translate>]=],
    tentity = [=[<translate><!--T:51--> Tile entity</translate>]=],
    food = [=[<translate><!--T:52--> Food</translate>]=],
    item = [=[<translate><!--T:53--> Item</translate>]=],
    machine = [=[<translate><!--T:54--> Machine</translate>]=],
    mob = [=[<translate><!--T:55--> Monster</translate>]=],
    hmob = [=[<translate><!--T:56--> Hostile monster</translate>]=],
    nmob = [=[<translate><!--T:57--> Neutral monster</translate>]=],
    fmob = [=[<translate><!--T:58--> Friendly monster</translate>]=],
    seed = [=[<translate><!--T:59--> Seed</translate>]=],
    tool = [=[<translate><!--T:60--> Tool</translate>]=],
    wand = [=[<translate><!--T:61--> Wand</translate>]=],
    weap = [=[<translate><!--T:62--> Weapon</translate>]=],
    weapon = [=[<translate><!--T:63--> Weapon</translate>]=],
    hull = [=[<translate><!--T:64--> {{L|Steve's Carts}} {{L|Hull}}</translate>]=],
    module = [=[<translate><!--T:65--> {{L|Steve's Carts}} {{L|Module (Steve's Carts)|Module}}</translate>]=],
    upgrade = [=[<translate><!--T:66--> {{L|Steve's Carts}} {{L|Upgrades (Steve's Carts)|Upgrade}}</translate>]=],
    landmark = [=[<translate><!--T:67--> Landmark</translate>]=],
    ritual = [=[<translate><!--T:68--> Ritual</translate>]=],
    liquid = [=[<translate><!--T:69--> Fluid</translate>]=],
    fluid = [=[<translate><!--T:231--> Fluid</translate>]=],
    ["multiblock structure"] = [=[<translate><!--T:70--> Multiblock structure</translate>]=],
    enchant = [=[<translate><!--T:71--> Enchantment</translate>]=],
    mechanic = [=[<translate><!--T:72--> Mechanic</translate>]=],
    dimension = [=[<translate><!--T:73--> Dimension</translate>]=],
    flower = [=[<translate><!--T:74--> Flower</translate>]=],
    command = [=[<translate><!--T:75--> Command</translate>]=],
    aspect = [=[<translate><!--T:232--> Aspect</translate>]=],
    bauble = [=[<translate><!--T:233--> Bauble</translate>]=],
    book = [=[<translate><!--T:234--> Book</translate>]=],
    cover = [=[<translate><!--T:235--> Cover</translate>]=],
    cable = [=[<translate><!--T:236--> Cable</translate>]=],
    pipe = [=[<translate><!--T:237--> Pipe</translate>]=]
}

p.docLead = [=[<translate><!--T:3--> This one is for items, blocks, and the like.</translate>]=]

p.format = {
    {
        name = [=[<translate><!--T:1--> Basic</translate>]=],
        title = {arg="name", desc=[=[<translate><!--T:2--> The title that will be displayed at the top of the info box.</translate>]=]},
        {
            {{arg={"blockimage","image"}, type="image", desc=[=[<translate><!--T:76--> The big picture.</translate>]=]}},
            
            {{arg={"iconimage","imageicon"}, desc=[=[<translate><!--T:77--> The icon image. Use {{Tl|Gc}} or {{Tl|O}}.</translate>]=]}}
        },
        {   
            {[=[<translate><!--T:78--> Mod</translate>]=], {arg="mod", desc=[=[<translate><!--T:79--> The mod the item belongs to. Always refer to the main page of the mod. Please do ''not'' use version numbers like "Flaxbeard's Steam Power 0.28.0"; just use the regular name instead. '''(Will detect page language and link to respective languages)'''</translate>]=]}},
            
            {[=[<translate><!--T:80--> Type</translate>]=], {arg="type", type="switch", allowedValues=itemTypes, desc=[=[<translate><!--T:81--> The item type.</translate>]=]}},
            
            {[=[<translate><!--T:82--> Tooltip text</translate>]=], {arg="lore", desc=[=[<translate><!--T:83--> Additional information that is displayed on the tooltip of the item in game. If the in-game tooltip has custom colors, they should be added to this parameter using the {{Tl|Color}} template. Colors that are typically used can be found on the [[mcw:Formatting codes#Color codes|Minecraft Wiki]].</translate>]=]}},
            
            {[=[<translate><!--T:84--> Required modules</translate>]=], {arg="module", desc=[=[<translate><!--T:85--> The module or modules that are required to be installed/enabled for the item to be present in the mod. Some examples of mods that add modules include {{L|RedPower 2}}, {{L|Project Red}}, and {{L|Railcraft}}.</translate>]=]}},
            
            { [=[<translate><!--T:86--> Chemical composition</translate>]=], {arg="chemcomp", desc=[=[<translate><!--T:87--> Chemical composition of the item.</translate>]=]}}
        }
    },
    {
        name="Basic",
        title=[=[<translate><!--T:88--> Properties</translate>]=],
        {
            {[=[<translate><!--T:89--> Blast resistance</translate>]=], {arg="blastresistance", desc=[=[<translate><!--T:90--> The blast resistance of the block. Include '''only''' the number.</translate>]=]} },
            
            {[=[<translate><!--T:91--> Hardness</translate>]=], {arg="hardness", desc=[=[<translate><!--T:92--> The hardness of a block.</translate>]=]}},
            {[=[<translate><!--T:329--> Luminance</translate>]=], {arg="luminance", desc=[=[<translate><!--T:330--> The luminance value provided by the block or fluid. Include '''only''' the number.</translate>]=]}},
            {[=[<translate><!--T:339--> Burn time</translate>]=], {arg="burntime", desc=[=[<translate><!--T:340--> The burn time value provided by the item. Include '''only''' the number.</translate>]=]}}
        },
        {
            {[=[<translate><!--T:93--> Restores</translate>]=], {arg="foodpoints", desc=[=[<translate><!--T:94--> The food points a food regenerates. Add this ''only'' to food.</translate>]=]}},
            {[=[<translate><!--T:274--> Saturation</translate>]=], {arg="saturation", desc=[=[<translate><!--T:275--> The saturation the food regenerates. Add this ''only'' to food.</translate>]=]}},
            {{arg="hunger", desc=[=[<translate><!--T:282--> The foodpoints and the saturation the food restores. Be sure to use {{Tl|Shanks}}. Add this ''only'' to food.</translate>]=], prefix=[=['''<translate><!--T:284--> Restored Hunger</translate>'''<br style="margin-bottom: 8px;" />]=]}},
            {[=[<translate><!--T:95--> Effects</translate>]=], {arg="effects", desc=[=[<translate><!--T:96--> List of effects the food/potion buffs you with. Use {{Tl|Effect}}.</translate>]=]}},
            {[=[<translate><!--T:321--> {{L|Food stats#Alcohol|Alcohol}}</translate>]=], {arg="alcohol", desc=[=[<translate><!--T:322--> GregTech 6 alcohol value.</translate>]=]}},
            {[=[<translate><!--T:323--> {{L|Food stats#Caffeine|Caffeine}}</translate>]=], {arg="caffeine", desc=[=[<translate><!--T:324--> GregTech 6 caffeine value.</translate>]=]}},
            {[=[<translate><!--T:325--> {{L|Food stats#Dehydration|Dehydration}}</translate>]=], {arg="dehydration", desc=[=[<translate><!--T:326--> GregTech 6 dehydration value.</translate>]=]}},
            {[=[<translate><!--T:327--> {{L|Food stats#Sugar|Sugar}}</translate>]=], {arg="sugar", desc=[=[<translate><!--T:328--> GregTech 6 sugar value.</translate>]=]}},
            {[=[<translate><!--T:332--> {{L|Food stats#Fat|Fat}}</translate>]=], {arg="fat", desc=[=[<translate><!--T:333--> GregTech 6 fatvalue.</translate>]=]}},
            {[=[<translate><!--T:97--> Cookable</translate>]=], {arg="cookable", desc=[=[<translate><!--T:98--> Whether the item is cookable (food).</translate>]=]}},
            {[=[<translate><!--T:269--> Health points</translate>]=], {arg="hp", desc=[=[<translate><!--T:270--> The amount of health points (hp) that the entity has.</translate>]=]}},
            {[=[<translate><!--T:276--> Armor points</translate>]=], {arg="ap", desc=[=[<translate><!--T:277--> The amount of armor points (ap) that the entity has.</translate>]=]}}
        },
        {
            {[=[<translate><!--T:99--> Armor rating</translate>]=],{arg="armorrating",type="templateCall",template="Armor",desc=[=[<translate><!--T:100--> The armor rating of the armor. Add this ''only'' to armor. Include only the number, as it will interface automatically with {{Tl|Armor}}.</translate>]=]}},
            {[=[<translate><!--T:280--> Armor toughness</translate>]=], {arg="toughness", desc=[=[<translate><!--T:281--> The toughness rating of the armor. Add this ''only'' to armor.</translate>]=]}},
            {[=[<translate><!--T:101--> Damage</translate>]=],{arg="damage",desc=[=[<translate><!--T:102--> The weapon's damage (one heart is two damage, half a heart is one damage). Add this ''only'' to weapons</translate>]=]}},
            {[=[<translate><!--T:278--> Speed</translate>]=],{arg="aspeed",desc=[=[<translate><!--T:279--> The weapon's attack speed (added in Minecraft 1.9). Add this ''only'' to weapons</translate>]=]}},
            {[=[<translate><!--T:103--> Durability</translate>]=],{arg="durability",desc=[=[<translate><!--T:104--> The durability of the tool or armor. Add this ''only'' to tools and armor. </translate>]=]}},
            {[=[<translate><!--T:331--> Enchantability</translate>]=], {arg="enchantability", desc=[=[<translate><!--T:334--> The enchantability, or how powerful enchantments will be, for this armor or tool.</translate>]=]}},
            {[=[<translate><!--T:105--> Mining level</translate>]=],{arg="mininglevel",desc=[=[<translate><!--T:106--> The pick's mining level (wood, stone, iron etc...).</translate>]=]}},
            {[=[<translate><!--T:285--> Mining speed</translate>]=],{arg="miningspeed",desc=[=[<translate><!--T:286--> The pick's mining speed.</translate>]=]}}
        },
        {
            {[=[<translate><!--T:107--> Stackable</translate>]=],{arg="stackable", desc = [=[<translate><!--T:108--> Whether the block/item is stackable.</translate>]=]}},
            {[=[<translate><!--T:109--> Flammable</translate>]=],{arg="flammable", desc = [=[<translate><!--T:110--> Whether the block/item is flammable (can be set on fire and burned).</translate>]=]}}
        },
        {
            {[=[<translate><!--T:111--> Storage</translate>]=],{arg={"storageslots","storage"}, desc = [=[<translate><!--T:112--> The storage of the item - This parameter does NOT add "cells" or "stacks" after the parameter's text.</translate>]=]}},
            {[=[<translate><!--T:113--> Liquid storage</translate>]=],{arg="lstorage", units=units.mb, desc = [=[<translate><!--T:114--> The maximum liquid storage of the item in mB. Include only the number.</translate>]=]}}
        },
        {
            {[=[<translate><!--T:115--> Heat (C)</translate>]=],{arg="heatc", units=units.degc, desc = [=[<translate><!--T:116--> The maximum heat capacity of the item in C (Celsius). Include only the number.</translate>]=]}},
            {[=[<translate><!--T:117--> Heat (F)</translate>]=],{arg="heatf", units=units.degf, desc = [=[<translate><!--T:118--> The maximum heat capacity of the item in F (Fahrenheit). Include only the number.</translate>]=]}}
        },
        {
            {[=[<translate><!--T:315--> {{L|Thaumcraft 3|TC3}} {{L|Aspects (Thaumcraft 3)|Aspects}}</translate>]=],{arg="tc3aspects", desc = [=[<translate><!--T:316--> The {{L|Aspects (Thaumcraft 3)|Aspects}} added by {{L|Thaumcraft 3}} to this object.</translate>]=]}},
            {[=[<translate><!--T:317--> {{L|Thaumcraft 4|TC4}} {{L|Aspects (Thaumcraft 4)|Aspects}}</translate>]=],{arg="tc4aspects", desc = [=[<translate><!--T:318--> The {{L|Aspects (Thaumcraft 4)|Aspects}} added by {{L|Thaumcraft 4}} to this object.</translate>]=]}},
            {[=[<translate><!--T:319--> {{L|Thaumcraft 5|TC5}} {{L|Aspects (Thaumcraft 5)|Aspects}}</translate>]=],{arg="tc5aspects", desc = [=[<translate><!--T:320--> The {{L|Aspects (Thaumcraft 5)|Aspects}} added by {{L|Thaumcraft 5}} to this object.</translate>]=]}},
            {[=[<translate><!--T:337--> {{L|Thaumcraft 6|TC6}} {{L|Aspects (Thaumcraft 6)|Aspects}}</translate>]=],{arg="tc6aspects", desc = [=[<translate><!--T:338--> The {{L|Aspects (Thaumcraft 6)|Aspects}} added by {{L|Thaumcraft 6}} to this object.</translate>]=]}}
        },
    },
    {
        name="DecoCraft costs",
        title = [=[<translate><!--T:260--> DecoCraft costs</translate>]=],
        {
            {[=[<translate><!--T:261--> Clay</translate>]=], {arg="decoclay", desc=[=[<translate><!--T:262--> The cost of normal clay requiried to create the item. For use with DecoCraft.</translate>]=]}},
            {[=[<translate><!--T:263--> Red</translate>]=], {arg="decored", desc=[=[<translate><!--T:264--> The cost of red color required to create the item. For use with DecoCraft.</translate>]=]}},
            {[=[<translate><!--T:265--> Blue</translate>]=], {arg="decoblue", desc=[=[<translate><!--T:266--> The cost of blue color required to create the item. For use with DecoCraft.</translate>]=]}},
            {[=[<translate><!--T:267--> Green</translate>]=], {arg="decogreen", desc=[=[<translate><!--T:268--> The cost of green color required to create the item. For use with DecoCraft.</translate>]=]}}
        }
    },
    {
        name="Upgrades",
        title = [=[<translate><!--T:119--> Upgrades</translate>]=],
        {
            {{arg="upgrades", desc = [=[<translate><!--T:120--> Upgrades that can be applied or installed to the machine.</translate>]=]}}
        },
        {
            {[=[<translate><!--T:121--> Previous tier</translate>]=],{arg="prevtier", desc = [=[<translate><!--T:122--> Previous tier of the item, tool or machine.</translate>]=]}}
        },
        {
            {[=[<translate><!--T:123--> Next tier</translate>]=],{arg="nexttier", desc = [=[<translate><!--T:124--> Next tier of the item, tool or machine.</translate>]=]}}
        }
    },
    {
        name="Energy",
        title = [=[<translate><!--T:125--> Energy</translate>]=],
        {
            {[=[<translate><!--T:126--> Max EU input</translate>]=], {arg="euinput", units=units.euPerTick, desc = [=[<translate><!--T:127--> Maximum input of EU/t. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:128--> EU use</translate>]=], {arg="euuse", units=units.euPerTick, desc = [=[<translate><!--T:129--> EU consumption in EU/t. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:130--> EU use</translate>]=], {arg="euusetool", units="EU/use", desc = [=[<translate><!--T:131--> EU consumption in EU per use (only used on tools that use EU per use). Include only the number.</translate>]=]}},
            {[=[<translate><!--T:132--> EU storage</translate>]=], {arg="eustorage", units=units.eu, desc = [=[<translate><!--T:133--> EU storage in EU. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:134--> Max EU output</translate>]=], {arg="euoutput", units=units.euPerTick, desc = [=[<translate><!--T:135--> Maximum output of EU/t. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:136--> EU production</translate>]=], {arg="euproduction", units=units.euPerTick, desc = [=[<translate><!--T:137--> EU production in EU/t. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:138--> EU traversing</translate>]=], {arg="eutraversing", units=units.euPerTick, desc = [=[<translate><!--T:139--> Maximum energy traversing - only for cables. Include only the number.</translate>]=]}}
        },
        {
            {[=[<translate><!--T:240--> Heat input</translate>]=], {arg="huinput", units=units.huPerTick, desc = [=[<translate><!--T:241--> Maximum {{L|IndustrialCraft 2}} heat input per tick.</translate>]=]}},
            {[=[<translate><!--T:242--> Heat use</translate>]=], {arg="huuse", units=units.huPerTick, desc = [=[<translate><!--T:243--> hU consumption per tick.</translate>]=]}},
            {[=[<translate><!--T:244--> Max heat output</translate>]=], {arg="huoutput", units=units.huPerTick, desc = [=[<translate><!--T:245--> Maximum output of hU/t.</translate>]=]}},
            {[=[<translate><!--T:246--> Heat production</translate>]=], {arg="huproduction", units=units.huPerTick, desc = [=[<translate><!--T:247--> Heat production in hU/t.</translate>]=]}},
            {[=[<translate><!--T:248--> Heat traversing</translate>]=], {arg="hutraversing", units=units.huPerTick, desc = [=[<translate><!--T:249--> Maximum heat energy traversing the cable.</translate>]=]}}
        },
        {
            {[=[<translate><!--T:250--> Kinetic input</translate>]=], {arg="kuinput", units=units.kuPerTick, desc = [=[<translate><!--T:251--> Maximum {{L|IndustrialCraft 2}} rotation energy per tick.</translate>]=]}},
            {[=[<translate><!--T:252--> Kinetic energy use</translate>]=], {arg="kuuse", units=units.kuPerTick, desc = [=[<translate><!--T:253--> Kinetic energy consumption per tick.</translate>]=]}},
            {[=[<translate><!--T:254--> Max kinetic output</translate>]=], {arg="kuoutput", units=units.kuPerTick, desc = [=[<translate><!--T:255--> Maximum output of kU/t</translate>]=]}},
            {[=[<translate><!--T:256--> Kinetic energy production</translate>]=], {arg="kuproduction", units=units, desc = [=[<translate><!--T:257--> Kinetic energy production in kU/t.</translate>]=]}},
            {[=[<translate><!--T:258--> Kinetic energy traversing</translate>]=], {arg="kutraversing", units=units.kuPerTick, desc = [=[<translate><!--T:259--> Maximum kinetic energy traversing the cable.</translate>]=]}}
        },
        {
            {[=[<translate><!--T:140--> Steam storage</translate>]=], {arg="gtsteamstorage", units=units.litres, desc = [=[<translate><!--T:141--> Maximum liters of steam that it can hold - for {{L|GregTech}} and its addons. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:142--> Steam usage</translate>]=], {arg="gtsteamusage", desc = [=[<translate><!--T:143--> Liters of steam that is used by it per tick - for {{L|GregTech}} and its addons. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:144--> Steam production</translate>]=], {arg="gtsteamproduction", units=units.litresPerTick, desc = [=[<translate><!--T:145--> How many liters of steam it makes per tick - for {{L|GregTech}} and its addons. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:146--> Energy storage</translate>]=], {arg="gteustorage", units=units.eu, desc = [=[<translate><!--T:147--> How much EU it can hold - for {{L|GregTech}} and its addons. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:148--> Energy usage</translate>]=], {arg="gteuusage", units=units.euPerTick, desc = [=[<translate><!--T:149--> How much EU is used by it per tick - for {{L|GregTech}} and its addons. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:150--> Energy production</translate>]=], {arg="gteuproduction", units=units.euPerTick, desc = [=[<translate><!--T:151--> How much EU is produced by it per tick - for {{L|GregTech}} and its addons. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:152--> Voltage in</translate>]=], {arg="gtvoltagein", units=units.euVolts, desc = [=[<translate><!--T:153--> Maximum EU voltage that can be put into it - for {{L|GregTech}} and its addons. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:154--> Voltage out</translate>]=], {arg="gtvoltageout", units=units.euVolts, desc = [=[<translate><!--T:155--> Maximum EU voltage that can be output - for {{L|GregTech}} and its addons. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:156--> Max amperage</translate>]=], {arg="gtamperage", units=units.euAmps, desc = [=[<translate><!--T:157--> Maximum EU amperage - for {{L|GregTech}} and its addons. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:158--> Loss/meter/amp</translate>]=], {arg="gtloss", units=units.euVolts, desc = [=[<translate><!--T:159--> Loss/meter/amperage - for {{L|GregTech}} and its addons. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:160--> Heat limit</translate>]=], {arg="gtheatlimit", units=units.k, desc = [=[<translate><!--T:161--> Maximum heat that it can take in Kelvin - for {{L|GregTech}} and its addons. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:162--> Fluid capacity</translate>]=], {arg="gtfluidcapacity", units=units.litresPerSec, desc = [=[<translate><!--T:163--> Maximum liters that it can hold - for {{L|GregTech}} and its addons. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:164--> Item capacity</translate>]=], {arg="gtitemcapacity", units=units.stacksPerSec, desc = [=[<translate><!--T:165--> Maximum stacks of items it can hold - for {{L|GregTech}} and its addons. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:166--> Routing value</translate>]=], {arg="gtrouting", desc = [=[<translate><!--T:167--> Routing value - for {{L|GregTech}} and its addons.</translate>]=]}},
            {[=[<translate><!--T:168--> Fuel efficiency</translate>]=], {arg="gtefficiency", desc = [=[<translate><!--T:169--> Fuel efficiency - for {{L|GregTech}} and its addons.</translate>]=]}}
        },
        {
            {[=[<translate><!--T:170--> Charge storage</translate>]=], {arg="rccharge", desc = [=[<translate><!--T:171--> {{L|Railcraft}} energy storage. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:172--> Energy loss</translate>]=], {arg="rcloss", units=units.perTick, desc = [=[<translate><!--T:173--> How much energy is lost per tick - for {{L|Railcraft}} and its addons. Include only the number.</translate>]=]}}
        },
        {
            {[=[<translate><!--T:174--> Required power</translate>]=], {arg="rocpower", units=units.watts, desc = [=[<translate><!--T:175--> Required amount of power - for {{L|RotaryCraft}} and its addons. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:176--> Required torque</translate>]=], {arg="roctorque", units=units.nm, desc = [=[<translate><!--T:177--> Required torque - for {{L|RotaryCraft}} and its addons. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:178--> Required speed</translate>]=], {arg="rocspeed", units=units.radPerSec, desc = [=[<translate><!--T:179--> Required speed - for {{L|RotaryCraft}} and its addons. Include only the number.</translate>]=]}}
        },
        {
            {[=[<translate><!--T:180--> Max MJ input</translate>]=], {arg="mjinput", units=units.mjPerTick, desc = [=[<translate><!--T:181--> Maximum input of MJ/t. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:182--> MJ use</translate>]=], {arg="mjuse", units=units.mjPerTick, desc = [=[<translate><!--T:183--> MJ consumption in MJ/t. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:184--> MJ storage</translate>]=], {arg="mjstorage", units=units.mj, desc = [=[<translate><!--T:185--> MJ storage in MJ. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:186--> Max MJ output</translate>]=], {arg="mjoutput", units=units.mjPerTick, desc = [=[<translate><!--T:187--> Maximum output of MJ/t. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:188--> MJ production</translate>]=], {arg="mjproduction", units=units.mjPerTick, desc = [=[<translate><!--T:189--> MJ production in MJ/t. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:190--> MJ traversing</translate>]=], {arg="mjtraversing", units=units.mjPerTick, desc = [=[<translate><!--T:191--> Maximum energy traversing - only for pipes. Include only the number.</translate>]=]}}
        },
        {
            {[=[<translate><!--T:303--> Max CF input</translate>]=], {arg="cfinput", units=units.cfPerTick, desc = [=[<translate><!--T:304--> Maximum input of CF/t. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:305--> CF use</translate>]=], {arg="cfuse", units=units.cfPerTick, desc = [=[<translate><!--T:306--> CF consumption in CF/t. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:307--> CF storage</translate>]=], {arg="cfstorage", units=units.cf, desc = [=[<translate><!--T:308--> CF storage in CF. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:309--> Max CF output</translate>]=], {arg="cfoutput", units=units.cfPerTick, desc = [=[<translate><!--T:310--> Maximum output of CF/t. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:311--> CF production</translate>]=], {arg="cfproduction", units=units.cfPerTick, desc = [=[<translate><!--T:312--> CF production in RF/t. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:313--> CF traversing</translate>]=], {arg="cftraversing", units=units.cfPerTick, desc = [=[<translate><!--T:314--> Maximum energy traversing in CF/t - only for conduits. Include only the number.</translate>]=]}}
        },
        {
            {[=[<translate><!--T:192--> Max RF input</translate>]=], {arg="rfinput", units=units.rfPerTick, desc = [=[<translate><!--T:193--> Maximum input of RF/t. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:194--> RF use</translate>]=], {arg="rfuse", units=units.rfPerTick, desc = [=[<translate><!--T:195--> RF consumption in RF/t. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:196--> RF storage</translate>]=], {arg="rfstorage", units=units.rf, desc = [=[<translate><!--T:197--> RF storage in RF. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:198--> Max RF output</translate>]=], {arg="rfoutput", units=units.rfPerTick, desc = [=[<translate><!--T:199--> Maximum output of RF/t. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:200--> RF production</translate>]=], {arg="rfproduction", units=units.rfPerTick, desc = [=[<translate><!--T:201--> RF production in RF/t. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:341--> RF loss</translate>]=], {arg="rfloss", units=units.rfPerTick, desc = [=[<translate><!--T:342--> RF loss in RF/t. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:202--> RF traversing</translate>]=], {arg="rftraversing", units=units.rfPerTick, desc = [=[<translate><!--T:203--> Maximum energy traversing in RF/t - only for conduits. Include only the number.</translate>]=]}}
        },
        {
            {[=[<translate><!--T:289--> Max Tesla input</translate>]=], {arg="tinput", units=units.tPerTick, desc = [=[<translate><!--T:290--> Maximum input of T/t. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:291--> Tesla use</translate>]=], {arg="tuse", units=units.tPerTick, desc = [=[<translate><!--T:292--> Tesla consumption in T/t. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:293--> Tesla storage</translate>]=], {arg="tstorage", units=units.t, desc = [=[<translate><!--T:294--> Tesla storage. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:295--> Max Tesla output</translate>]=], {arg="toutput", units=units.tPerTick, desc = [=[<translate><!--T:296--> Maximum output of T/t. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:297--> Tesla production</translate>]=], {arg="tproduction", units=units.tPerTick, desc = [=[<translate><!--T:298--> Tesla production in T/t. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:299--> Tesla traversing</translate>]=], {arg="ttraversing", units=units.tPerTick, desc = [=[<translate><!--T:300--> Maximum energy traversing in T/t - only for conduits/wires/whatnot. Include only the number.</translate>]=]}}
        },
        {
            {[=[<translate><!--T:204--> Steam usage default</translate>]=], {arg="fspsuuse", units=units.suPerUse, desc = [=[<translate><!--T:205--> Steam unit consumption in SU/use. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:206--> Steam usage default</translate>]=], {arg="fspsutick", units=units.suPerTick, desc = [=[<translate><!--T:207--> Steam unit consumption in SU/tick. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:208--> Steam storage default</translate>]=], {arg="fspsteamstorage", units=units.su, desc = [=[<translate><!--T:209--> Steam storage in SU. Include only the number.</translate>]=]}}
        },
        {
            {[=[<translate><!--T:210--> EMC value</translate>]=], {arg="emc", units=units.emc, desc = [=[<translate><!--T:211--> EMC value of the item. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:212--> EMC storage</translate>]=], {arg="emcstorage", units=units.emc, desc = [=[<translate><!--T:213--> How much EMC the item can hold. This is mostly relevant for Equivalent Exchange Klein Stars. Include only the number.</translate>]=]}},
            {[=[<translate><!--T:214--> EMC creation</translate>]=], {arg="emcproduction", units=units.emcPerSec, desc = [=[<translate><!--T:215--> How much EMC the item or block will create per second. Include only the number.</translate>]=]}}
        },
        {
            {[=[<translate><!--T:272--> Arcane Energy cost</translate>]=], {arg="aeuse", units=units.aePerUse, desc=[=[<translate><!--T:273--> Arcane Energy cost per use. Include only the number.</translate>]=]}},
        }
    },
    {
        name="Technical",
        title = [=[<translate><!--T:216--> Technical details</translate>]=],
        {
            {[=[<translate><!--T:217--> Registry name</translate>]=], {arg="registryname", desc = [=[<translate><!--T:218--> This thing's registry name. ''This is not necessarily identical to its unlocalized name.''</translate>]=]}},
            {[=[<translate><!--T:335--> Unlocalized name</translate>]=], {arg="unlocalizedname", desc = [=[<translate><!--T:336--> This thing's unlocalized name. ''This is not necessarily identical to its registry name.''</translate>]=]}},
            {[=[<translate><!--T:219--> Ore dictionary name</translate>]=], {arg="oredictname", desc = [=[<translate><!--T:220--> The oredictionary name for this item.</translate>]=]}}
        },
        {
            {[=[<translate><!--T:221--> First appearance</translate>]=], {arg="firstappearance", desc = [=[<translate><!--T:222--> The version string that the item first appeared in.</translate>]=]}},
            {[=[<translate><!--T:223--> Last appearance</translate>]=], {arg="lastappearance", desc = [=[<translate><!--T:224--> The version string that the item last appeared in.</translate>]=]}}
        },
        {
            {[=[<translate><!--T:225--> Experience</translate>]=], {arg="exp", desc = [=[<translate><!--T:226--> Exp you gain from mining or smelting it.</translate>]=]}},
            {[=[<translate><!--T:227--> Flow speed</translate>]=], {arg="flowspeed", units=units.metersPerSec, desc = [=[<translate><!--T:228--> The flow speed of liquids in m/s.</translate>]=]}}
        },
        {
            {[=[<translate><!--T:229--> Player speed</translate>]=], {arg="speed", desc = [=[<translate><!--T:230--> The walk speed of the player character when on or in it.</translate>]=]}}
        }
    }
}

-- This next bit adds the PWhatever lines.
-- 4 is the Energy Use section.
local energyUseSection = p.format[4]
local pwhateverfields = {"input", "use", "storage", "output", "production"}
local usageCat = "[[Category:Pages that use PWhatever in Infobox thing]]"
for i=1,5 do
    local subsection = {}
    for j,name in ipairs(pwhateverfields) do 
        subsection[#subsection+1] = { { arg=i..name.."title", units=usageCat }, {arg=i..name, units=usageCat} }
    end
    energyUseSection[#energyUseSection + 1] = subsection
end

energyUseSection[#energyUseSection + 1] = {
    docOnly = true,
    desc = [=[<translate><!--T:4--> You can also add more input/use/output/storage sections with Ptype and Ptypetitle, where P can be a number between 1 and 5.</translate>]=],
    
    {{arg="Pinputtitle", desc = [=[<translate><!--T:5--> Title for the input field</translate>]=]}},
    {{arg="Pinput", desc = [=[<translate><!--T:6--> Input</translate>]=]}},
    {{arg="Pusetitle", desc = [=[<translate><!--T:7--> Title for the energy use field</translate>]=]}},
    {{arg="Puse", desc = [=[<translate><!--T:8--> Energy use</translate>]=]}},
    {{arg="Pstoragetitle", desc = [=[<translate><!--T:9--> Title for the energy storage field</translate>]=]}},
    {{arg="Pstorage", desc = [=[<translate><!--T:10--> Energy storage</translate>]=]}},
    {{arg="Poutputtitle", desc = [=[<translate><!--T:11--> Title for the output field</translate>]=]}},
    {{arg="Poutput", desc = [=[<translate><!--T:12--> Output</translate>]=]}},
    {{arg="Pproductiontitle", desc = [=[<translate><!--T:13--> Title for the energy production field</translate>]=]}},
    {{arg="Pproduction", desc = [=[<translate><!--T:14--> Energy production</translate>]=]}}
}

p.examples = {{[=[<translate><!--T:15-->
{{Infobox
|name=Sand
|image=Block Sand.png
|imageicon={{Gc|mod=V|dis=false|Oak Wood Planks}}{{Gc|mod=OB|dis=false|Elevator}}{{O|blockCopper}}
|mod=Industrial Craft
|type=block
|lore=A block of sand.
|blastresistance=2.5
|hardness=0.5
|hunger={{Shanks|2|0.5}}
|effects={{Effect|Hunger|200|0|75}}
|cookable=Yes
|armorrating=5.5
|damage=9.5
|durability=350
|mininglevel=1
|flammable=No
|storage=1000
|lstorage=1000
|heatf=32
|heatc=0
|upgrades={{Gc|mod=V|dis=false|Sandstone}}
|prevtier={{Gc|mod=V|dis=false|Cobblestone}}
|nexttier={{Gc|mod=V|dis=false|Chiseled Sandstone}}
|euinput=32
|euuse=32
|euusetool=50
|euoutput=8
|eustorage=40,000
|euproduction=128
|eutraversing=16
|mjinput=32
|mjuse=32
|mjoutput=8
|mjstorage=60,000
|mjproduction=1~6
|mjtraversing=48
|rfinput=32
|rfuse=32
|rfoutput=8
|rfstorage=60,000
|rfproduction=16
|rfloss=10
|rftraversing=48
|fspsuuse=6
|fspsutick=50000000
|fspsteamstorage=14
|datavalue=0 Sand
|oredictname=sand
|firstappearance=Classic 0.0.14a
|lastappearance=x.y.z
|exp=Smelted: 0.1
|flowspeed=2
|speed=3
}}</translate>]=]}}

return p