- 致编者:请牢记我们的域名wiki.mcbe-dev.net!
- 致编者:欢迎加入本Wiki的官方交流QQ群或Discord服务器!
- 基岩版1.19.31现已发布!(了解更多)
- Inner Core现已支持Xbox模组联机!(了解更多)
- 如果您是第一次来到本Wiki,欢迎注册一个账户
- 点击顶部的“编辑”或“编辑源代码”按钮即可编辑当前页面
- 请知悉:在不登录时也可以编辑和新建页面,但是您当前的IP地址会记录在编辑历史中
Template:Function:修订间差异
无编辑摘要 标签:移动版编辑 移动版网页编辑 高级移动版编辑 |
Miemie Method(留言 | 贡献) 小无编辑摘要 标签: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的版本
此模板是函数的Infobox,请在手册的函数或者变量页面使用。 |
{{Function}}
应当被放在条目顶端,给予读者关于条目的基本信息。
模板参数
该模板是函数或变量的Infobox
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
标题 | title | Infobox的标题,不填写时默认继承页面标题
| 页面名称 | 可选 |
实验性 | 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或自定义值
| 字符串 | 可选 |
API | api | API种类 | 字符串 | 可选 |
适用语言 | lang | 语言 | 字符串 | 可选 |
加入版本 | added | 加入版本 | 字符串 | 可选 |
移除版本 | removed | 移除版本 | 字符串 | 可选 |
最低引擎版本 | verengine | 只有{{{lang}}}填写ml或molang时可选 | 字符串 | 可选 |
参见
{{infobox}}