- 致编者:请牢记我们的域名wiki.mcbe-dev.net!
- 致编者:欢迎加入本Wiki的官方交流QQ群或Discord服务器!
- 基岩版1.19.31现已发布!(了解更多)
- Inner Core现已支持Xbox模组联机!(了解更多)
- 如果您是第一次来到本Wiki,欢迎注册一个账户
- 点击顶部的“编辑”或“编辑源代码”按钮即可编辑当前页面
- 请知悉:在不登录时也可以编辑和新建页面,但是您当前的IP地址会记录在编辑历史中
Template:Function:修订间差异
无编辑摘要 标签:移动版编辑 移动版网页编辑 高级移动版编辑 |
无编辑摘要 标签:移动版编辑 移动版网页编辑 高级移动版编辑 |
||
第114行: | 第114行: | ||
{{Infobox row|label=加入版本|field={{#if: {{{ac|}}}{{{ai|}}} | {{Infobox |
{{Infobox row|label=加入版本|field={{#if: {{{ac|}}}{{{ai|}}} | {{Infobox |
||
| subbox = yes |
| subbox = yes |
||
| rows = {{#if: {{{ac|}}} | {{infobox row|label=中国版|field= |
| rows = {{#if: {{{ac|}}} | {{infobox row|label=中国版|field={{{ac|}}}}}}} |
||
{{#if: {{{ai|}}} | {{infobox row|label=国际版|field={{verlink|{{{ai|}}}}}}}}}}} | {{verlink|{{{added|}}}}}}}}} |
{{#if: {{{ai|}}} | {{infobox row|label=国际版|field={{verlink|{{{ai|}}}}}}}}}}} | {{verlink|{{{added|}}}}}}}}} |
||
{{#if: {{{removed|}}}{{{rc|}}}{{{ri|}}} | |
{{#if: {{{removed|}}}{{{rc|}}}{{{ri|}}} | |
||
{{Infobox row|label=移除版本|field={{#if: {{{rc|}}}{{{ri|}}} | {{Infobox |
{{Infobox row|label=移除版本|field={{#if: {{{rc|}}}{{{ri|}}} | {{Infobox |
||
| subbox = yes |
| subbox = yes |
||
| rows = {{#if: {{{rc|}}} | {{infobox row|label=中国版|field= |
| rows = {{#if: {{{rc|}}} | {{infobox row|label=中国版|field={{{rc|}}}}}}} |
||
{{#if: {{{ri|}}} | {{infobox row|label=国际版|field={{verlink|{{{ri|}}}}}}}}}}} | {{verlink|{{{removed|}}}}}}}}}}}}} |
{{#if: {{{ri|}}} | {{infobox row|label=国际版|field={{verlink|{{{ri|}}}}}}}}}}} | {{verlink|{{{removed|}}}}}}}}}}}}} |
||
{{#ifeq: {{#var: molang}} | 1 |{{#if: {{{verengine|}}} | {{Infobox row|label=最低引擎版本|field={{verlink|{{{verengine|}}}}}}}}}}} |
{{#ifeq: {{#var: molang}} | 1 |{{#if: {{{verengine|}}} | {{Infobox row|label=最低引擎版本|field={{verlink|{{{verengine|}}}}}}}}}}} |
2021年11月27日 (六) 16:38的版本
此模板是函数的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}}