Module:Infobox/thing/zh-cn

-- -- local p = {}

-- Translation note: Translatable strings MUST be enclosed in [=[ this sort ]=] of delimiter (as opposed to "this sort" or 'this sort').

-- Units local units = { emc = [=[EMC]=], emcPerSec = [=[EMC/秒]=], eu = [=[EU]=], euAmps = [=[EU-安培(A)]=], euPerTick = [=[EU/刻]=], euPerUse = [=[EU/次]=], euVolts = [=[EU-伏特(V)]=], huPerTick = [=[hU/刻]=], k = [=[开]=], kuPerTick = [=[kU/刻]=], litres = [=[升]=], litresPerSec = [=[升/秒]=], litresPerTick = [=[升/刻]=], mb = [=[mB]=], mj = [=[MJ]=], mjPerTick = [=[MJ/刻]=], metersPerSec = [=[米/秒]=], nm = [=[牛米]=], degc = [=[摄氏度]=], degf = [=[华氏度]=], perTick = [=[每游戏刻]=], radPerSec = [=[弧度/秒]=], rf = [=[RF]=], rfPerTick = [=[RF/刻]=], stacksPerSec = [=[组/秒]=], su = [=[SU]=], suPerTick = [=[SU/刻]=], suPerUse = [=[SU/次]=], watts = [=[瓦]=] }

-- This variable holds the list of item types. local itemTypes = { armor = [=[护甲]=], block = [=[固体方块]=], sblock = [=[固体方块]=], oblock = [=[不透明方块]=], tblock = [=[透明方块]=], component = [=[组件]=], crop = [=[作物]=], entity = [=[实体]=], tentity = [=[实体附加值（TileEntity）]=], food = [=[食物]=], item = [=[物品]=], machine = [=[机器]=], mob = [=[生物]=], hmob = [=[敌对怪物]=], nmob = [=[中立生物]=], fmob = [=[友好生物]=], seed = [=[种子]=], tool = [=[工具]=], wand = [=[法杖]=], weap = [=[武器]=], weapon = [=[武器]=], hull = [=[]=], module = [=[]=], upgrade = [=[]=], landmark = [=[地标]=], ritual = [=[仪式]=], liquid = [=[流体]=], fluid = [=[流体]=], ["multiblock structure"] = [=[多方块结构]=], enchant = [=[附魔]=], mechanic = [=[机械]=], dimension = [=[维度]=], flower = [=[花]=], command = [=[指令]=], aspect = [=[要素]=], bauble = [=[首饰]=], book = [=[书]=], cover = [=[覆盖板]=], cable = [=[线缆]=], pipe = [=[管道]=] }

p.docLead = [=[该属性用于物品、方块及类似对象. ]=]

p.format = { {       name = [=[基础]=], title = {arg="name", desc=[=[标题会显示于信息盒之顶部. ]=]},       {            { {arg={"blockimage","image"}, type="image", desc=[=[大图. ]=] } },           { {arg={"iconimage","imageicon"}, desc=[=[图标. 使用Gc或O模板. ]=]} }       },        {               { [=[模组]=], {arg="mod", desc=[=[该物品所属模组. 永远引用至该模组对应的主页面. 请不要使用版本号（例： Flaxbeard's Steam Power 0.28.0 ，只写明模组名即可. '''（会自动检测语言并重定向至对应语言的页面. ）]=]} },           { [=[类型]=], {arg="type", type="switch", allowedValues=itemTypes, desc=[=[物品类型. ]=]} },           { [=[工具提示]=], {arg="lore", desc=[=[实际游戏时，于工具提示中显示的额外信息. 若实际显示效果中带有颜色，应使用Color模板. 常用颜色代码可在此找到：Minecraft Wiki.]=] }}, { [=[需求模块]=], {arg="module", desc=[=[启用该物品所必需安装（或启用）的模块. 带有模块概念的模组包括但不限于、和. ]=]}},           { [=[化学组成]=], {arg="chemcomp", desc=[=[该物质的化学组成. ]=]} }       }    },    {        name="Basic", title=[=[属性]=], {           {[=[爆炸抗性]=], {arg="blastresistance", desc=[=[该方块的爆炸抗性. 仅包含具体数值. ]=]} },           {[=[硬度]=], {arg="hardness", desc=[=[方块的硬度. ]=] }}       },        {            {[=[饥饿值恢复]=], {arg="foodpoints", desc=[=[该食物可恢复的饥饿值. 仅用于食物类物品. ]=]}},           {[=[效果]=], {arg="effects", desc=[=[该食物/药水的附加效果一览. ]=]}},           {[=[可烹饪]=], {arg="cookable", desc=[=[该物品（食物）是否可烹饪. ]=]}},			{[=[生命值]=], {arg="hp", desc=[=[该实体所拥有的生命值（HP）. ]=]}}       },        {            {[=[护甲评级]=],{arg="armorrating",desc=[=[该护甲等级. 仅用于护甲. ]=]}},           {[=[伤害]=],{arg="damage",desc=[=[该武器之伤害（1颗心为2伤害，半颗心为1伤害）. 仅用于武器. ]=]}},           {[=[耐久]=],{arg="durability",desc=[=[该工具或护甲之耐久. 仅用于工具或护甲. ]=]}},           {[=[采掘等级]=],{arg="mininglevel",desc=[=[镐的采掘等级（木、石、铁、等等...）. ]=]}}       },        {            {[=[可堆叠？]=],{arg="stackable", desc = [=[该方块/物品是否可以堆叠. ]=]}},           {[=[是否可燃]=],{arg="flammable", desc = [=[该方块/物品是否可燃（是否可引发火焰并燃烧）. ]=]}}       },        {            {[=[存储空间]=],{arg={"storageslots","storage"}, desc = [=[该物品的存储形态－该参数不附加于cells和stacks之后. ]=]}},           {[=[流体存储空间]=],{arg="lstorage", units=units.mb, desc = [=[该物品可存储液体体积的最大值，以mB为单位. 仅包括数值. ]=]}}       },        {            {[=[热度（摄氏度）]=],{arg="heatc", units=units.degc, desc = [=[该物品的最大热容，以摄氏度（˚C）为单位. 仅包括数值. ]=]}},           {[=[热度（华氏度）]=],{arg="heatf", units=units.degf, desc = [=[该物品的最大热容，以华氏度（˚F）为单位. 仅包括数值. ]=]}}       }    },    {    	name="DecoCraft Costs", title = [=[DecoCraft消耗]=], {   		{[=[粘土]=], {arg="decoclay", desc=[=[制作该物品时的普通粘土消耗. 仅用于DecoCraft. ]=]}},   		{[=[Red]=], {arg="decored", desc=[=[制造该物品所需红颜料数量，仅用于DecoCraft. ]=]}},   		{[=[蓝]=], {arg="decoblue", desc=[=[制造该物品所需蓝颜料数量，仅用于DecoCraft. ]=]}},   		{[=[绿]=], {arg="decogreen", desc=[=[制造该物品所需绿颜料数量，仅用于DecoCraft. ]=]}}   	}    },    {        name="Upgrades", title = [=[升级]=], {       },        {            {[=[上一等级]=],{arg="prevtier", desc = [=[该物品/工具/机械的上一等级. ]=]}}       },        {            {[=[下一等级]=],{arg="nexttier", desc = [=[该物品/工具/机械的下一等级. ]=]}}       }    },    {        name="Energy Consumption", title = [=[能耗]=], {           {[=[最大EU输入]=], {arg="euinput", units=units.euPerTick, desc = [=[最大EU/t输入. 仅包含数值. ]=]}},           {[=[EU用量]=], {arg="euuse", units=units.euPerTick, desc = [=[EU消耗，以EU/t为单位. 仅包含数值. ]=]}},           {[=[单次EU用量]=], {arg="euusetool", units="EU/use", desc = [=[每次使用时的EU消耗（仅用于以EU为能源的工具），以EU为单位. 仅包含数值. ]=]}},           {[=[EU储存]=], {arg="eustorage", units=units.eu, desc = [=[EU存储空间大小，以EU为单位. 仅包含数值. ]=]}},           {[=[最大EU输出]=], {arg="euoutput", units=units.euPerTick, desc = [=[最大EU输出，以EU/t为单位. 仅包含数值. ]=]}},           {[=[EU产出]=], {arg="euproduction", units=units.euPerTick, desc = [=[EU production in EU/t. Include only the number.]=]}}, {[=[EU traversing]=], {arg="eutraversing", units=units.euPerTick, desc = [=[Maximum energy traversing - only for cables. Include only the number.]=]}} },       {            {[=[Heat input]=], {arg="huinput", units=units.huPerTick, desc = [=[Maximum  heat input per tick.]=]}}, {[=[Heat use]=], {arg="huuse", units=units.huPerTick, desc = [=[hU consumption per tick.]=]}}, {[=[Max heat output]=], {arg="huoutput", units=units.huPerTick, desc = [=[Maximum output of hU/t.]=]}}, {[=[Heat production]=], {arg="huproduction", units=units.huPerTick, desc = [=[Heat production in hU/t.]=]}}, {[=[Heat traversing]=], {arg="hutraversing", units=units.huPerTick, desc = [=[Maximum heat energy traversing the cable.]=]}} },       {            {[=[Kinetic input]=], {arg="kuinput", units=units.kuPerTick, desc = [=[Maximum  rotation energy per tick.]=]}}, {[=[Kinetic energy use]=], {arg="kuuse", units=units.kuPerTick, desc = [=[Kinetic energy consumption per tick.]=]}}, {[=[Max kinetic output]=], {arg="kuoutput", units=units.kuPerTick, desc = [=[Maximum output of kU/t]=]}}, {[=[Kinetic energy production]=], {arg="kuproduction", units=units, desc = [=[Kinetic energy production in kU/t.]=]}}, {[=[Kinetic energy traversing]=], {arg="kutraversing", units=units.kuPerTick, desc = [=[Maximum kinetic energy traversing the cable.]=]}} },       {            {[=[Steam storage]=], {arg="gtsteamstorage", units=units.litres, desc = [=[Maximum liters of steam that it can hold - for  and its addons. Include only the number.]=]}}, {[=[Steam usage]=], {arg="gtsteamusage", desc = [=[Liters of steam that is used by it per tick - for and its addons. Include only the number.]=]}}, {[=[Steam production]=], {arg="gtsteamproduction", units=units.litresPerTick, desc = [=[How many liters of steam it makes per tick - for and its addons. Include only the number.]=]}}, {[=[Energy storage]=], {arg="gteustorage", units=units.eu, desc = [=[How much EU it can hold - for and its addons. Include only the number.]=]}}, {[=[Energy usage]=], {arg="gteuusage", units=units.euPerTick, desc = [=[How much EU is used by it per tick - for and its addons. Include only the number.]=]}}, {[=[Energy production]=], {arg="gteuproduction", units=units.euPerTick, desc = [=[How much EU is produced by it per tick - for and its addons. Include only the number.]=]}}, {[=[Voltage in]=], {arg="gtvoltagein", units=units.euVolts, desc = [=[Maximum EU voltage that can be put into it - for and its addons. Include only the number.]=]}}, {[=[Voltage out]=], {arg="gtvoltageout", units=units.euVolts, desc = [=[Maximum EU voltage that can be output - for and its addons. Include only the number.]=]}}, {[=[Max amperage]=], {arg="gtamperage", units=units.euAmps, desc = [=[Maximum EU amperage - for and its addons. Include only the number.]=]}}, {[=[Loss/meter/amp]=], {arg="gtloss", units=units.euVolts, desc = [=[Loss/meter/amperage - for and its addons. Include only the number.]=]}}, {[=[Heat limit]=], {arg="gtheatlimit", units=units.k, desc = [=[Maximum heat that it can take in Kelvin - for and its addons. Include only the number.]=]}}, {[=[Fluid capacity]=], {arg="gtfluidcapacity", units=units.litresPerSec, desc = [=[Maximum liters that it can hold - for and its addons. Include only the number.]=]}}, {[=[Item capacity]=], {arg="gtitemcapacity", units=units.stacksPerSec, desc = [=[Maximum stacks of items it can hold - for and its addons. Include only the number.]=]}}, {[=[Routing value]=], {arg="gtrouting", desc = [=[Routing value - for and its addons.]=]}}, {[=[Fuel efficiency]=], {arg="gtefficiency", desc = [=[Fuel efficiency - for and its addons.]=]}} },       {            {[=[Charge storage]=], {arg="rccharge", desc = [=[ energy storage. Include only the number.]=]}}, {[=[Energy loss]=], {arg="rcloss", units=units.perTick, desc = [=[How much energy is lost per tick - for and its addons. Include only the number.]=]}} },       {            {[=[Required Power]=], {arg="rocpower", units=units.watts, desc = [=[Required amount of power - for  and its addons. Include only the number.]=]}}, {[=[Required Torque]=], {arg="roctorque", units=units.nm, desc = [=[Required torque - for and its addons. Include only the number.]=]}}, {[=[Required Speed]=], {arg="rocspeed", units=units.radPerSec, desc = [=[Required speed - for and its addons. Include only the number.]=]}} },       {            {[=[Max MJ input]=], {arg="mjinput", units=units.mjPerTick, desc = [=[Maximum input of MJ/t. Include only the number.]=]}}, {[=[MJ use]=], {arg="mjuse", units=units.mjPerTick, desc = [=[MJ consumption in MJ/t. Include only the number.]=]}}, {[=[MJ storage]=], {arg="mjstorage", units=units.mj, desc = [=[MJ storage in MJ. Include only the number.]=]}}, {[=[Max MJ output]=], {arg="mjoutput", units=units.mjPerTick, desc = [=[Maximum output of MJ/t. Include only the number.]=]}}, {[=[MJ production]=], {arg="mjproduction", units=units.mjPerTick, desc = [=[MJ production in MJ/t. Include only the number.]=]}}, {[=[MJ traversing]=], {arg="mjtraversing", units=units.mjPerTick, desc = [=[Maximum energy traversing - only for pipes. Include only the number.]=]}} },       {            {[=[Max RF input]=], {arg="rfinput", units=units.rfPerTick, desc = [=[Maximum input of RF/t. Include only the number.]=]}}, {[=[RF use]=], {arg="rfuse", units=units.rfPerTick, desc = [=[RF consumption in RF/t. Include only the number.]=]}}, {[=[RF storage]=], {arg="rfstorage", units=units.rf, desc = [=[RF storage in RF. Include only the number.]=]}}, {[=[Max RF output]=], {arg="rfoutput", units=units.rfPerTick, desc = [=[Maximum output of RF/t. Include only the number.]=]}}, {[=[RF production]=], {arg="rfproduction", units=units.rfPerTick, desc = [=[RF production in RF/t. Include only the number.]=]}}, {[=[RF traversing]=], {arg="rftraversing", units=units.rfPerTick, desc = [=[Maximum energy traversing in RF/t - only for conduits. Include only the number.]=]}} },       {            {[=[Steam usage default]=], {arg="fspsuuse", units=units.suPerUse, desc = [=[Steam unit consumption in SU/use. Include only the number.]=]}}, {[=[Steam usage default]=], {arg="fspsutick", units=units.suPerTick, desc = [=[Steam unit consumption in SU/tick. Include only the number.]=]}}, {[=[Steam storage default]=], {arg="fspsteamstorage", units=units.su, desc = [=[Steam storage in SU. Include only the number.]=]}} },       {            {[=[EMC值]=], {arg="emc", units=units.emc, desc = [=[该物品的EMC值，仅包括数字. ]=]}},           {[=[EMC储存]=], {arg="emcstorage", units=units.emc, desc = [=[该物品可存储EMC数量，仅包含数字. 该属性与等价交换的Klein Stars关系密切. ]=]}},           {[=[EMC产出]=], {arg="emcproduction", units=units.emcPerSec, desc = [=[该物品或方块每秒的EMC产出值. 仅包含数字. ]=]}}       }    },    {        name="Technical", title = [=[技术性信息]=], {           {[=[默认数据值]=], {arg="datavalue", desc = [=[方块ID. 请勿使用该属性. ]=]}},           {[=[矿物字典名]=], {arg="oredictname", desc = [=[该物品的矿物字典名. ]=]}}       },        {            {[=[首次出现]=], {arg="firstappearance", desc = [=[该物品首次出现时的版本号. ]=]}},           {[=[最后出现]=], {arg="lastappearance", desc = [=[该物品最后出现时的版本号. ]=]}}       },        {            {[=[经验值]=], {arg="exp", desc = [=[采集或烧炼时可获之经验值. ]=]}},           {[=[流速]=], {arg="flowspeed", units=units.metersPerSec, desc = [=[液体流动速度，以m/s计算. ]=]}}       },        {            {[=[玩家速度]=], {arg="speed", desc = [=[玩家在其上方的行走速度. ]=]}}       }    } }

-- 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"} for i=1,5 do   local subsection = {} for j,name in ipairs(pwhateverfields) do        subsection[#subsection+1] = { { arg=i..name.."title" }, {arg=i..name} } end energyUseSection[#energyUseSection + 1] = subsection end

energyUseSection[#energyUseSection + 1] = { docOnly = true, desc = [=[You can also add more input/use/output/storage sections with Ptype and Ptypetitle, where P can be a number between 1 and 5.]=], ,  ,    ,    ,    ,    ,    ,    ,    , }

p.examples = { { [=[]=]} }

return p --