打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

本站正在进行早期测试,目前仍存在许多内容的缺失。

模块:Insect

来自星砂岛百科

概述

Insect 提供昆虫域的数据读取与配方列表渲染,供 {{Infobox insect}} 等页面模板调用。

用法

{{#invoke:Insect|getField|萤火虫|type_display}}
{{#invoke:Insect|processRecipeList|萤火虫}}
{{#invoke:Insect|productionRecipeList|萤火虫}}

示例

{{#invoke:Insect|getField|萤火虫|origin}}

函数

  • getField:读取条目字段,默认查当前页面标题。
  • processRecipeList:渲染加工配方列表。
  • productionRecipeList:渲染产出配方列表。
  • machineList:返回关联机器名称列表。

数据来源


local item_common = require('Module:ItemCommon')

local p = {}

item_common.buildRecipeDomain(p, '数据:Insect/insect_index.json')

return p