silverstripe-wowhead
Wowhead Item, Quest, Spell & Achievement Tooltips, (*1)
Installation
This module only supports installation via composer:, (*2)
composer require zanderwar/silverstripe-wowhead
, (*3)
Run /dev/build afterwards for SilverStripe to become aware of this extension, (*4)
Optional Configuration
wowhead/_config/wowhead.yml, (*5)
---
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
Remove the hash in front of custom_url to use your own URL with the insight provided by its comment, (*6)
Short Codes
Arguments:
- id
: The Wowhead ID for the type
you want a tooltip to display for.
- type
: Can be one of item
, achievement
, spell
or quest
(Default: item
), (*7)
Optional Label: Yes, (*8)
Examples:, (*9)
[WHTooltip, id=277, type=achievement]'Tis the Season[/WHTooltip]
, (*10)
[WHTooltip, id=25696]Felstalker Breastplate[/WHTooltip]
, (*11)
[WHTooltip, id=49286]
, (*12)
, (*13)
Contributing
If you feel you can improve this module in any way, shape or form please do not hesitate to submit a PR for review., (*14)
Bugs / Issues
To report a bug or an issue please use our issue tracker., (*15)
License
This module is distributed under the MIT License., (*16)