本站文本内容除另有声明外,转载时均必须注明出处,并遵守CC BY-NC-SA 3.0协议。(转载须知
本站是中文Minecraft Wiki的镜像站,与Mojang Studios、Weird Gloop没有从属关系。(免责声明

全站通知:

模板:FrontPageLink

来自我的世界地下城WIKI_BWIKI_哔哩哔哩
跳到导航 跳到搜索
[查看 | 编辑 | 历史 | 清除缓存]文档页面
Lua logo.svg

此模板使用了模块:Sprite,以及数据模块模块:FrontPageSprite
这些脚本均使用Lua编写。更多详情,请参阅维基百科:LuaMediaWiki:扩展:Scribunto

This templates creates a page link with an associated sprite image on the left side using the IDs from Module:FrontPageSprite.

参数

名称 用法
1= 为其他参数设置默认值。
id= 设置网格。该参数如果包含空格,将会使用破折号代替,字母都会自动转换成小写的。
值可能是一个名字或一个数字,虽然名字会更好。
link= 设置要链接到的页面,支持内部和外部的链接
如果设置为 none,则不会链接到任何页面。
text= 或 |2= 设置要显示的文字。

示例

Code Result
{{FrontPageLink|Compass}} FrontPageSprite compass.png: Sprite image for compass in Minecraft linking to 指南针指南针
{{FrontPageLink|Sign}} FrontPageSprite sign.png: Sprite image for sign in Minecraft linking to 告示牌告示牌
{{FrontPageLink|Clock}} FrontPageSprite clock.png: Sprite image for clock in Minecraft linking to 时钟时钟
{{FrontPageLink|Iron Pickaxe}} FrontPageSprite iron-pickaxe.png: Sprite image for iron-pickaxe in Minecraft linking to 镐铁镐

完整列表

Here is a full list of sprites: Lua错误 在模块:FrontPageSprite的第6行:attempt to call field 'getUrl' (a nil value)

另见

Minecraft
Minecraft Dungeons
Minecraft Legends
其他