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 = { cf = [=[CF]=], cfPerTick = [=[CF/刻]=], 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/刻]=], t = [=[T]=], tPerTick = [=[T/刻]=], stacksPerSec = [=[组/秒]=], su = [=[SU]=], suPerTick = [=[SU/刻]=], suPerUse = [=[SU/次]=], watts = [=[瓦]=], aePerUse = [=[AE/次]=] }

-- 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="saturation", desc=[=[食物所能回复的饱和度数值. 仅为食物添加. ]=]}},          ,            {[=[效果]=], {arg="effects", desc=[=[该食物/药水的附加效果一览. 请使用Effect模板. ]=]}},           {[=[酒精]=], {arg="alcohol", desc=[=[格雷科技6酒精值. ]=]}},           {[=[咖啡因]=], {arg="caffeine", desc=[=[格雷科技6咖啡因值. ]=]}},           {[=[脱水]=], {arg="dehydration", desc=[=[格雷科技6脱水值. ]=]}},           {[=[糖]=], {arg="sugar", desc=[=[格雷科技6糖分值. ]=]}},           {[=[可烹饪]=], {arg="cookable", desc=[=[该物品（食物）是否可烹饪. ]=]}},           {[=[生命值]=], {arg="hp", desc=[=[该实体所拥有的生命值（HP）. ]=]}},           {[=[盔甲]=], {arg="ap", desc=[=[该实体所拥有的盔甲点数 (Armor Points, AP). ]=]}}       },        {            {[=[盔甲评级]=],{arg="armorrating",desc=[=[该盔甲等级. 仅用于盔甲. ]=]}},           {[=[盔甲防御力]=], {arg="toughness", desc=[=[盔甲的防御力评级. 仅用于盔甲. ]=]}},           {[=[伤害]=],{arg="damage",desc=[=[该武器之伤害（1颗心为2伤害，半颗心为1伤害）. 仅用于武器. ]=]}},           {[=[速度]=],{arg="aspeed",desc=[=[武器攻击速度（于Minecraft 1.9中首次出现）. '''仅用于武器. ''']=]}},           {[=[耐久]=],{arg="durability",desc=[=[该工具或护甲之耐久. 仅用于工具或护甲. ]=]}},           {[=[采掘等级]=],{arg="mininglevel",desc=[=[镐的采掘等级（木、石、铁、等等...）. ]=]}},           {[=[挖掘速度]=],{arg="miningspeed",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）为单位. 仅包括数值. ]=]}}       },        {            {[=[]=],{arg="tc3aspects", desc = [=[目标身上所含有的的. ]=]}},           {[=[]=],{arg="tc4aspects", desc = [=[目标身上所含有的的. ]=]}},           {[=[]=],{arg="tc5aspects", desc = [=[目标身上所含有的的. ]=]}},       },    },    {        name="DecoCraft Costs", title = [=[DecoCraft消耗]=], {           {[=[粘土]=], {arg="decoclay", desc=[=[制作该物品时的普通粘土消耗. 仅用于DecoCraft. ]=]}},           {[=[红]=], {arg="decored", desc=[=[制造该物品所需红颜料数量，仅用于DecoCraft. ]=]}},           {[=[蓝]=], {arg="decoblue", desc=[=[制造该物品所需蓝颜料数量，仅用于DecoCraft. ]=]}},           {[=[绿]=], {arg="decogreen", desc=[=[制造该物品所需绿颜料数量，仅用于DecoCraft. ]=]}}       }    },    {        name="Upgrades", title = [=[升级]=], {       },        {            {[=[上一等级]=],{arg="prevtier", desc = [=[该物品/工具/机械的上一等级. ]=]}}       },        {            {[=[下一等级]=],{arg="nexttier", desc = [=[该物品/工具/机械的下一等级. ]=]}}       }    },    {        name="Energy", 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产出，以EU/t为单位. 仅包含数值. ]=]}},           {[=[EU能量流]=], {arg="eutraversing", units=units.euPerTick, desc = [=[最大通过能量，仅适用于电线. 仅包含数值. ]=]}}       },        {            {[=[热量输入]=], {arg="huinput", units=units.huPerTick, desc = [=[每t最大热量输出. ]=]}},           {[=[热量使用]=], {arg="huuse", units=units.huPerTick, desc = [=[每tick的hU消耗. ]=]}},           {[=[最大热量输出]=], {arg="huoutput", units=units.huPerTick, desc = [=[最大热能输出，以hU/t为单位. ]=]}},           {[=[热量产出]=], {arg="huproduction", units=units.huPerTick, desc = [=[热能产出数量，以hU/t为单位. ]=]}},           {[=[热量传输]=], {arg="hutraversing", units=units.huPerTick, desc = [=[该线缆可允许的热能通过量之最大值. ]=]}}       },        {            {[=[动能输入]=], {arg="kuinput", units=units.kuPerTick, desc = [=[每刻（可输入的）最大旋转能. ]=]}},           {[=[动能消耗]=], {arg="kuuse", units=units.kuPerTick, desc = [=[每刻的动能消耗. ]=]}},           {[=[最大动能输出]=], {arg="kuoutput", units=units.kuPerTick, desc = [=[最大动能输出，以kU/t为单位. ]=]}},           {[=[动能产出]=], {arg="kuproduction", units=units, desc = [=[动能产出量，以kU/t为单位. ]=]}},           {[=[动能传输]=], {arg="kutraversing", units=units.kuPerTick, desc = [=[该线缆可允许的动能通过量之最大值. ]=]}}       },        {            {[=[蒸汽储存]=], {arg="gtsteamstorage", units=units.litres, desc = [=[最大蒸汽储存数量，仅限及其拓展. 仅包括数值. ]=]}},           {[=[蒸汽消耗]=], {arg="gtsteamusage", desc = [=[蒸汽消耗量，以升为单位，仅限及其拓展. 仅包括数值. ]=]}},           {[=[蒸汽产出]=], {arg="gtsteamproduction", units=units.litresPerTick, desc = [=[每tick蒸汽产出，以升为单位，仅限及其拓展. 仅包括数值. ]=]}},           {[=[能量储存]=], {arg="gteustorage", units=units.eu, desc = [=[可存储EU数量，仅限及其拓展. 仅包括数值. ]=]}},           {[=[能量消耗]=], {arg="gteuusage", units=units.euPerTick, desc = [=[每tick的EU消耗量，仅限及其拓展. 仅包括数值. ]=]}},           {[=[能量产出]=], {arg="gteuproduction", units=units.euPerTick, desc = [=[每tick的EU产出量，仅限及其拓展. 仅包括数值. ]=]}},           {[=[输入电压]=], {arg="gtvoltagein", units=units.euVolts, desc = [=[最高EU电压输入，仅限及其拓展. 仅包括数值. ]=]}},           {[=[输出电压]=], {arg="gtvoltageout", units=units.euVolts, desc = [=[最高EU输出电压，仅限及其拓展. 仅包括数值. ]=]}},           {[=[最大电流]=], {arg="gtamperage", units=units.euAmps, desc = [=[最高耐受EU电流大小，仅限及其拓展. 仅包括数值. ]=]}},           {[=[损耗/米/安培]=], {arg="gtloss", units=units.euVolts, desc = [=[每米每安培的电力损耗，仅限及其拓展. 仅包括数值. ]=]}},           {[=[温度上限]=], {arg="gtheatlimit", units=units.k, desc = [=[最高耐受温度，以开尔文为单位，仅限及其拓展. 仅包括数值. ]=]}},           {[=[流体容积]=], {arg="gtfluidcapacity", units=units.litresPerSec, desc = [=[最多可存储液体数量，以升为单位，仅限及其拓展. 仅包括数值. ]=]}},           {[=[物品容积]=], {arg="gtitemcapacity", units=units.stacksPerSec, desc = [=[最多可存储物品数量，以组为单位，仅限及其拓展. 仅包括数值. ]=]}},           {[=[Routing value]=], {arg="gtrouting", desc = [=[Routing value，仅限及其拓展. 仅包括数值. ]=]}},           {[=[燃料效率]=], {arg="gtefficiency", desc = [=[燃料燃烧时效率，仅限及其拓展. 仅包括数值. ]=]}}       },        {            {[=[电力存储]=], {arg="rccharge", desc = [=[的电力存储，仅包括数值. ]=]}},           {[=[能量损耗]=], {arg="rcloss", units=units.perTick, desc = [=[每tick能量损耗，仅限及其拓展. 仅包括数值. ]=]}}       },        {            {[=[需求能量]=], {arg="rocpower", units=units.watts, desc = [=[能量需求数量，仅限及其拓展. 仅包括数值. ]=]}},           {[=[需求扭矩]=], {arg="roctorque", units=units.nm, desc = [=[扭矩需求量，仅限及其拓展. 仅包括数值. ]=]}},           {[=[速度需求]=], {arg="rocspeed", units=units.radPerSec, desc = [=[速度（角速度）需求量，仅限及其拓展. 仅包括数值. ]=]}}       },        {            {[=[最大MJ输入]=], {arg="mjinput", units=units.mjPerTick, desc = [=[最大MJ输入数量，以MJ/t为单位，仅包括数值. ]=]}},           {[=[MJ消耗]=], {arg="mjuse", units=units.mjPerTick, desc = [=[MJ消耗量，以MJ/t为单位，仅包括数值. ]=]}},           {[=[MJ储存]=], {arg="mjstorage", units=units.mj, desc = [=[MJ储存量，以MJ为单位，仅包括数值. ]=]}},           {[=[最大MJ输出]=], {arg="mjoutput", units=units.mjPerTick, desc = [=[最大MJ输出数量，以MJ/t为单位，仅包括数值. ]=]}},           {[=[MJ产出]=], {arg="mjproduction", units=units.mjPerTick, desc = [=[MJ产出数量，以MJ/t为单位，仅包括数值. ]=]}},           {[=[MJ传输]=], {arg="mjtraversing", units=units.mjPerTick, desc = [=[最大MJ传输数量，以MJ/t为单位，仅针对管道，仅包括数值. ]=]}}       },        {            {[=[最大CF输入]=], {arg="cfinput", units=units.cfPerTick, desc = [=[最大CF输入数量，以CF/t为单位，仅包括数值. ]=]}},           {[=[CF消耗]=], {arg="cfuse", units=units.cfPerTick, desc = [=[CF消耗量，以CF/t为单位，仅包括数值. ]=]}},           {[=[CF储存]=], {arg="cfstorage", units=units.cf, desc = [=[CF储存量，以CF为单位，仅包括数值. ]=]}},           {[=[最大CF输出]=], {arg="cfoutput", units=units.cfPerTick, desc = [=[最大CF输出数量，以CF/t为单位，仅包括数值. ]=]}},           {[=[CF产出]=], {arg="cfproduction", units=units.cfPerTick, desc = [=[CF产出数量，以CF/t为单位，仅包括数值. ]=]}},           {[=[CF传输]=], {arg="cftraversing", units=units.cfPerTick, desc = [=[最大CF传输数量，以CF/t为单位，仅针对导管，仅包括数值. ]=]}}       },        {            {[=[最大RF输入]=], {arg="rfinput", units=units.rfPerTick, desc = [=[最大RF输入数量，以RF/t为单位，仅包括数值. ]=]}},           {[=[RF消耗]=], {arg="rfuse", units=units.rfPerTick, desc = [=[RF消耗量，以RF/t为单位，仅包括数值. ]=]}},           {[=[RF储存]=], {arg="rfstorage", units=units.rf, desc = [=[RF存储数量，以RF为单位，仅包括数值. ]=]}},           {[=[最大RF输出]=], {arg="rfoutput", units=units.rfPerTick, desc = [=[最大RF输出数量，以RF/t为单位，仅包括数值. ]=]}},           {[=[RF产出]=], {arg="rfproduction", units=units.rfPerTick, desc = [=[RF产出量，以RF/t为单位，仅包括数值. ]=]}},           {[=[RF传输]=], {arg="rftraversing", units=units.rfPerTick, desc = [=[最大RF传输数量，以RF/t为单位，仅针对导管，仅包括数值. ]=]}}       },        {            {[=[最大Tesla输入]=], {arg="tinput", units=units.tPerTick, desc = [=[最大Tesla输入数量，以T/t为单位，仅包括数值. ]=]}},           {[=[Tesla消耗]=], {arg="tuse", units=units.tPerTick, desc = [=[Tesla消耗量，以T/t为单位，仅包括数值. ]=]}},           {[=[Tesla储存]=], {arg="tstorage", units=units.t, desc = [=[Tesla存储数量，以Tesla为单位，仅包括数值. ]=]}},           {[=[最大Tesla输出]=], {arg="toutput", units=units.tPerTick, desc = [=[最大Tesla输出数量，以T/t为单位，仅包括数值. ]=]}},           {[=[Tesla产出]=], {arg="tproduction", units=units.tPerTick, desc = [=[Tesla产出量，以T/t为单位，仅包括数值. ]=]}},           {[=[Tesla传输]=], {arg="ttraversing", units=units.tPerTick, desc = [=[最大Tesla传输数量，以T/t为单位，仅针对导管、线缆等，仅包括数值. ]=]}}       },        {            {[=[默认蒸汽消耗]=], {arg="fspsuuse", units=units.suPerUse, desc = [=[蒸汽消耗数量，以SU/次为单位，仅包括数值. ]=]}},           {[=[默认蒸汽消耗]=], {arg="fspsutick", units=units.suPerTick, desc = [=[蒸汽消耗数量，以SU/tick为单位，仅包括数值. ]=]}},           {[=[默认蒸汽存储]=], {arg="fspsteamstorage", units=units.su, desc = [=[蒸汽存储数量，以SU为单位，仅包括数值. ]=]}}       },        {            {[=[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产出值. 仅包含数字. ]=]}}       },        {            {[=[Arcane Energy消耗]=], {arg="aeuse", units=units.aePerUse, desc=[=[每次使用时的Arcane Energy消耗. 仅包含数值. ]=]}},       }    },    {        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"} local usageCat = "" 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 = [=[你还可以用Ptype和Ptypetitle添加更多的input/use/output/storage信息，其中P可以是1到5的任意整数（含）. ]=],  ,    ,    ,    ,    ,    ,    ,    ,    , }

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

return p --