Template:Function:修订间差异

来自Minecraft基岩版开发Wiki
添加的内容 删除的内容
无编辑摘要
标签移动版编辑 移动版网页编辑 高级移动版编辑
无编辑摘要
标签2017年版源代码编辑
第10行: 第10行:
|fn|function = Function
|fn|function = Function
|cfn|construct|constructor|constructfunction = Function<br>构造函数
|cfn|construct|constructor|constructfunction = Function<br>构造函数
|q|query|queryfunction = Function<br>查询函数
|q|qfn|query|queryfunction = Function<br>查询函数
|cb|callback|callbackfunction = Function<br>回调函数
|cb|cbfn|callback|callbackfunction = Function<br>回调函数
|hk|hkfn|hook|hookfunction = Function<br>钩子函数
|m|method = Function<br>方法
|m|method = Function<br>方法
|num|number = Number{{#ifeq: {{{int|}}} | 1 |<br>int型}}{{#ifeq: {{{double|}}} | 1 |<br>double型}}{{#ifeq: {{{float|}}} | 1 |<br>float型}}
|num|number = Number{{#ifeq: {{{int|}}} | 1 |<br>int型}}{{#ifeq: {{{double|}}} | 1 |<br>double型}}{{#ifeq: {{{float|}}} | 1 |<br>float型}}
第41行: 第42行:
|objc|objectcustome = Object:格式见正文
|objc|objectcustome = Object:格式见正文
|cfn|construct|constructor|constructfunction = Function:构造函数
|cfn|construct|constructor|constructfunction = Function:构造函数
|q|query|queryfunction = Function:查询函数
|q|qfn|query|queryfunction = Function:查询函数
|?|unknown = 未知
|?|unknown = 未知
|{{{par1}}}
|{{{par1}}}
第61行: 第62行:
|objc|objectcustome = Object:格式见正文
|objc|objectcustome = Object:格式见正文
|cfn|construct|constructor|constructfunction = Function:构造函数
|cfn|construct|constructor|constructfunction = Function:构造函数
|q|query|queryfunction = Function:查询函数
|q|qfn|query|queryfunction = Function:查询函数
|?|unknown = 未知
|?|unknown = 未知
|{{{par2}}}
|{{{par2}}}
第81行: 第82行:
|objc|objectcustome = Object:格式见正文
|objc|objectcustome = Object:格式见正文
|cfn|construct|constructor|constructfunction = Function:构造函数
|cfn|construct|constructor|constructfunction = Function:构造函数
|q|query|queryfunction = Function:查询函数
|q|qfn|query|queryfunction = Function:查询函数
|?|unknown = 未知
|?|unknown = 未知
|{{{par3}}}
|{{{par3}}}
第101行: 第102行:
|objc|objectcustome = Object:格式见正文
|objc|objectcustome = Object:格式见正文
|cfn|construct|constructor|constructfunction = Function:构造函数
|cfn|construct|constructor|constructfunction = Function:构造函数
|q|query|queryfunction = Function:查询函数
|q|qfn|query|queryfunction = Function:查询函数
|?|unknown = 未知
|?|unknown = 未知
|{{{par4}}}
|{{{par4}}}
第121行: 第122行:
|objc|objectcustome = Object:格式见正文
|objc|objectcustome = Object:格式见正文
|cfn|construct|constructor|constructfunction = Function:构造函数
|cfn|construct|constructor|constructfunction = Function:构造函数
|q|query|queryfunction = Function:查询函数
|q|qfn|query|queryfunction = Function:查询函数
|?|unknown = 未知
|?|unknown = 未知
|{{{par5}}}
|{{{par5}}}
第141行: 第142行:
|objc|objectcustome = Object:格式见正文
|objc|objectcustome = Object:格式见正文
|cfn|construct|constructor|constructfunction = Function:构造函数
|cfn|construct|constructor|constructfunction = Function:构造函数
|q|query|queryfunction = Function:查询函数
|q|qfn|query|queryfunction = Function:查询函数
|?|unknown = 未知
|?|unknown = 未知
|{{{par6}}}
|{{{par6}}}
第161行: 第162行:
|objc|objectcustome = Object:格式见正文
|objc|objectcustome = Object:格式见正文
|cfn|construct|constructor|constructfunction = Function:构造函数
|cfn|construct|constructor|constructfunction = Function:构造函数
|q|query|queryfunction = Function:查询函数
|q|qfn|query|queryfunction = Function:查询函数
|?|unknown = 未知
|?|unknown = 未知
|{{{par7}}}
|{{{par7}}}
第181行: 第182行:
|objc|objectcustome = Object:格式见正文
|objc|objectcustome = Object:格式见正文
|cfn|construct|constructor|constructfunction = Function:构造函数
|cfn|construct|constructor|constructfunction = Function:构造函数
|q|query|queryfunction = Function:查询函数
|q|qfn|query|queryfunction = Function:查询函数
|?|unknown = 未知
|?|unknown = 未知
|{{{par8}}}
|{{{par8}}}
第201行: 第202行:
|objc|objectcustome = Object:格式见正文
|objc|objectcustome = Object:格式见正文
|cfn|construct|constructor|constructfunction = Function:构造函数
|cfn|construct|constructor|constructfunction = Function:构造函数
|q|query|queryfunction = Function:查询函数
|q|qfn|query|queryfunction = Function:查询函数
|?|unknown = 未知
|?|unknown = 未知
|{{{par9}}}
|{{{par9}}}
第221行: 第222行:
|objc|objectcustome = Object:格式见正文
|objc|objectcustome = Object:格式见正文
|cfn|construct|constructor|constructfunction = Function:构造函数
|cfn|construct|constructor|constructfunction = Function:构造函数
|q|query|queryfunction = Function:查询函数
|q|qfn|query|queryfunction = Function:查询函数
|?|unknown = 未知
|?|unknown = 未知
|{{{par10}}}
|{{{par10}}}
第241行: 第242行:
|objc|objectcustome = Object:格式见正文
|objc|objectcustome = Object:格式见正文
|cfn|construct|constructor|constructfunction = Function:构造函数
|cfn|construct|constructor|constructfunction = Function:构造函数
|q|query|queryfunction = Function:查询函数
|q|qfn|query|queryfunction = Function:查询函数
|?|unknown = 未知
|?|unknown = 未知
|{{{par11}}}
|{{{par11}}}
第261行: 第262行:
|objc|objectcustome = Object:格式见正文
|objc|objectcustome = Object:格式见正文
|cfn|construct|constructor|constructfunction = Function:构造函数
|cfn|construct|constructor|constructfunction = Function:构造函数
|q|query|queryfunction = Function:查询函数
|q|qfn|query|queryfunction = Function:查询函数
|?|unknown = 未知
|?|unknown = 未知
|{{{par12}}}
|{{{par12}}}
第281行: 第282行:
|objc|objectcustome = Object:格式见正文
|objc|objectcustome = Object:格式见正文
|cfn|construct|constructor|constructfunction = Function:构造函数
|cfn|construct|constructor|constructfunction = Function:构造函数
|q|query|queryfunction = Function:查询函数
|q|qfn|query|queryfunction = Function:查询函数
|?|unknown = 未知
|?|unknown = 未知
|{{{par13}}}
|{{{par13}}}
第301行: 第302行:
|objc|objectcustome = Object:格式见正文
|objc|objectcustome = Object:格式见正文
|cfn|construct|constructor|constructfunction = Function:构造函数
|cfn|construct|constructor|constructfunction = Function:构造函数
|q|query|queryfunction = Function:查询函数
|q|qfn|query|queryfunction = Function:查询函数
|?|unknown = 未知
|?|unknown = 未知
|{{{par14}}}
|{{{par14}}}
第321行: 第322行:
|objc|objectcustome = Object:格式见正文
|objc|objectcustome = Object:格式见正文
|cfn|construct|constructor|constructfunction = Function:构造函数
|cfn|construct|constructor|constructfunction = Function:构造函数
|q|query|queryfunction = Function:查询函数
|q|qfn|query|queryfunction = Function:查询函数
|?|unknown = 未知
|?|unknown = 未知
|{{{par15}}}
|{{{par15}}}
第341行: 第342行:
|objc|objectcustome = Object:格式见正文
|objc|objectcustome = Object:格式见正文
|cfn|construct|constructor|constructfunction = Function:构造函数
|cfn|construct|constructor|constructfunction = Function:构造函数
|q|query|queryfunction = Function:查询函数
|q|qfn|query|queryfunction = Function:查询函数
|?|unknown = 未知
|?|unknown = 未知
|{{{params}}}
|{{{params}}}
第350行: 第351行:
|fn|function = Function
|fn|function = Function
|cfn|construct|constructor|constructfunction = Function:构造函数
|cfn|construct|constructor|constructfunction = Function:构造函数
|q|query|queryfunction = Function:查询函数
|q|qfn|query|queryfunction = Function:查询函数
|num|number = Number
|num|number = Number
|numi|numberint = Number:int
|numi|numberint = Number:int

2021年9月23日 (四) 16:07的版本

[查看 | 编辑 | 历史 | 清除缓存]文档页面
Function
参数类型

{{Function}}应当被放在条目顶端,给予读者关于条目的基本信息。


模板参数

该模板是函数或变量的Infobox

模板参数[编辑模板数据]

此模板首选参数换行的代码块格式。

参数描述类型状态
标题title

Infobox的标题,不填写时默认继承页面标题

默认值
{{PAGENAMEBASE}}
示例值
query.all tags
页面名称可选
实验性experimental

在副标题注明“实验性”

布尔可选
类型type

本变量的类型,可以填写fn, function, cfn, construct, constructor, constructfunction, q, query, queryfunction, num, number, str, string, arr, array, dat, date, bl, bool, boolean, obj, object, ?, unknown或自定义值

字符串可选
整数int

只有{{{type}}}填写num或number时可选

布尔可选
单精度浮点数double

只有{{{type}}}填写num或number时可选

布尔可选
双精度浮点数float

只有{{{type}}}填写num或number时可选

布尔可选
Java对象java

只有{{{type}}}填写obj或object时可选,Java类型

字符串可选
自定义对象custom

只有{{{type}}}填写obj或object时可选

字符串可选
参数类型par

参数类型,可以填写fn, function, num, number, numi, numberint, numd, numberdouble, numf, numberint, str, string, arr, array, dat, date, bl, bool, boolean, obj, object, objj, objectjava, objc, objectcustome, cfn, construct, constructor, constructfunction, q, query, queryfunction, ?, unknown或自定义值

字符串可选
可选参数类型params

函数末尾的可选参数类型,可以填写fn, function, num, number, numi, numberint, numd, numberdouble, numf, numberint, str, string, arr, array, dat, date, bl, bool, boolean, obj, object, objj, objectjava, objc, objectcustome, cfn, construct, constructor, constructfunction, q, query, queryfunction, ?, unknown或自定义值

字符串可选
返回值类型return_type

返回值类型,可以填写fn, function, num, number, numi, numberint, numd, numberdouble, numf, numberint, str, string, arr, array, dat, date, bl, bool, boolean, obj, object, objj, objectjava, objc, objectcustome, cfn, construct, constructor, constructfunction, q, query, queryfunction, ?, unknown或自定义值

默认值
void
字符串可选
APIapi

API种类

字符串可选
适用语言lang

语言

字符串可选
加入版本added

加入版本

字符串可选
移除版本removed

移除版本

字符串可选
最低引擎版本verengine

只有{{{lang}}}填写ml或molang时可选

字符串可选

参见