zanderwar/silverstripe-wowhead

Wowhead 项目、任务、法术和成就工具提示

安装: 2

依赖: 0

建议者: 0

安全: 0

星标: 4

关注者: 1

分支: 1

开放问题: 0

类型:silverstripe-module

1.1.0 2016-10-27 12:09 UTC

This package is auto-updated.

Last update: 2024-08-29 04:32:46 UTC


README

Wowhead 项目、任务、法术和成就工具提示

安装

此模块仅支持通过 composer 安装

composer require zanderwar/silverstripe-wowhead

之后运行 /dev/build 以使 SilverStripe 识别此扩展

可选配置

wowhead/_config/wowhead.yml

---
Name: wowhead
After:
  - 'framework/*'
  - 'cms/*'
---

Wowhead:
  tooltips:
    colorlinks: true # colors your label
    iconizelinks: true # adds an icon to your label (this will be forced to false if renamelinks is false)
    renamelinks: true # overrides your label
    #custom_url: '//example.com/{type}/{id}' # {type} would be replaced by item, achievement, quest, or spell. {id} would be replaced with the ID
    #locale: 'de' # I'm not sure if all locales are supported, you will have to find out yourself: http://de.wowhead.com

移除自定义_url 前面的哈希标记以使用您自己的 URL,并参考其注释中的见解

简码

WHTooltip

参数

  • id: 您希望显示工具提示的 type 的 Wowhead ID。
  • type: 可以是 itemachievementspellquest 之一(默认:item

可选标签:

示例

[WHTooltip, id=277, type=achievement]'Tis the Season[/WHTooltip]

[WHTooltip, id=25696]Felstalker Breastplate[/WHTooltip]

[WHTooltip, id=49286]

Imgur

贡献

如果您觉得可以在任何方式上改进此模块,请毫不犹豫地提交 PR 进行审查。

错误/问题

要报告错误或问题,请使用我们的 问题跟踪器

许可证

此模块根据 MIT 许可证分发。