模块:Insect:修订间差异
来自星砂岛百科
更多操作
同步更新 |
同步更新 |
||
| 第3行: | 第3行: | ||
local p = {} | local p = {} | ||
item_common.buildRecipeDomain(p, '数据:Insect/insect_index | item_common.buildRecipeDomain(p, '数据:Insect/insect_index.json') | ||
return p | return p | ||
2026年3月17日 (二) 14:16的最新版本
概述
Insect 提供昆虫域的数据读取与配方列表渲染,供 {{Infobox insect}} 等页面模板调用。
用法
{{#invoke:Insect|getField|萤火虫|type_display}}
{{#invoke:Insect|processRecipeList|萤火虫}}
{{#invoke:Insect|productionRecipeList|萤火虫}}
示例
{{#invoke:Insect|getField|萤火虫|origin}}
函数
getField:读取条目字段,默认查当前页面标题。processRecipeList:渲染加工配方列表。productionRecipeList:渲染产出配方列表。machineList:返回关联机器名称列表。