zanderwar / silverstripe-wowhead
Wowhead 项目、任务、法术和成就工具提示
1.1.0
2016-10-27 12:09 UTC
Requires
- php: >=5.3.3,<7
- silverstripe/cms: ^3.4.0
- silverstripe/framework: ^3.4.0
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
: 可以是item
、achievement
、spell
或quest
之一(默认:item
)
可选标签: 是
示例
[WHTooltip, id=277, type=achievement]'Tis the Season[/WHTooltip]
[WHTooltip, id=25696]Felstalker Breastplate[/WHTooltip]
[WHTooltip, id=49286]
贡献
如果您觉得可以在任何方式上改进此模块,请毫不犹豫地提交 PR 进行审查。
错误/问题
要报告错误或问题,请使用我们的 问题跟踪器。
许可证
此模块根据 MIT 许可证分发。