模組: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`