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