模組:Crop/doc
出自星砂島百科
更多語言
更多操作
< 模块:Crop
此頁面為 模块:Crop 的說明文件
概述
Crop 提供作物域的數據讀取與配方列表渲染,供 {{Infobox crop}} 與 {{CropRecipes}} 調用。
用法
{{#invoke:Crop|getField|土豆|seed_item_name}}
{{#invoke:Crop|processRecipeList|土豆}}
{{#invoke:Crop|productionRecipeList|土豆}}
函數
getField:讀取條目欄位,默認查當前頁面標題。processRecipeList:渲染加工配方列表。productionRecipeList:渲染產出配方列表。machineList:返回關聯機器名稱列表。