zanderwar/silverstripe-wowhead

Wowhead Item, Quest, Spell & Achievement Tooltips

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 1

Forks: 1

Open Issues: 0

Type:silverstripe-module

1.1.0 2016-10-27 12:09 UTC

This package is auto-updated.

Last update: 2024-09-29 04:42:33 UTC


README

Wowhead Item, Quest, Spell & Achievement Tooltips

Installation

This module only supports installation via composer:

composer require zanderwar/silverstripe-wowhead

Run /dev/build afterwards for SilverStripe to become aware of this extension

Optional Configuration

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

Remove the hash in front of custom_url to use your own URL with the insight provided by its comment

Short Codes

WHTooltip

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)

Optional Label: Yes

Examples:

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

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

[WHTooltip, id=49286]

Imgur

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.

Bugs / Issues

To report a bug or an issue please use our issue tracker.

License

This module is distributed under the MIT License.