全站通知:

沙盒:首页/按钮

来自星露谷物语维基
跳到导航 跳到搜索

模板:IconButton

这个模板用于调用Widget:IconButton生成带有图标的按钮链接。

用法

{{首页/按钮4|链接地址|图标类名|按钮文本|按钮样式|颜色|目标窗口|链接关系}}

参数

  • 参数1 (必需): 链接的目标地址 (href)
  • 参数2 (必需): Font Awesome 图标类名 (icon)
  • 参数3 (必需): 按钮显示的文本 (text)
  • 参数4 (可选): 按钮样式 (style),可选值: outline, ghost (默认: outline)
  • 参数5 (可选): 按钮颜色 (color),例如: blue, red, green (默认: blue)
  • 参数6 (可选): 链接打开方式 (target),例如: _blank (在新窗口打开)
  • 参数7 (可选): 链接关系属性 (rel),例如: nofollow

示例

{{首页/按钮4|https://qm.qq.com/q/c06JU8AemQ|fab fa-qq|247516434||blue|_blank|nofollow}}

结果: 模板:首页/按钮4

{{首页/按钮4|#|fas fa-edit|参与编辑|ghost}}

结果: 模板:首页/按钮4