模块:Insect/doc
来自星砂岛百科
更多语言
更多操作
这是模块:Insect的文档页面
概述
Insect 提供昆虫域的数据读取与配方列表渲染,供 {{Infobox insect}} 等页面模板调用。
用法
{{#invoke:Insect|getField|萤火虫|type_display}}
{{#invoke:Insect|processRecipeList|萤火虫}}
{{#invoke:Insect|productionRecipeList|萤火虫}}
示例
{{#invoke:Insect|getField|萤火虫|origin}}
函数
- `getField`:读取条目字段,默认查当前页面标题。
- `processRecipeList`:渲染加工配方列表。
- `productionRecipeList`:渲染产出配方列表。
- `machineList`:返回关联机器名称列表。
数据来源
- `数据:Insect/insect_index.json`
- `数据:Insect/insect_mapping.json`