Description
The plugin adds shortcodes that transform mtg card names and decks to provide a mouseover image. For cards use the [mtg_card][/mtg_card] shortcode (or the shortened version [c][/c]). When viewing the post, the card name will show up as a link to the card’s page on https://deckbox.org . Hovering over the link will show the card’s image in a tooltip.
A similar tag can be used to quickly create deck listings: [mtg_deck][/mtg_deck] (or the shortened version [d][/d]). A deck listing should contain a list of cards and categories. All cards have a number before their name. All other lines are interpreted as category names. Do not include card numbers on the category name lines, they will automatically be computed and displayed by the plugin. A short example follows.
The default style for displaying decks is a card listing with each card having a mouseover tooltip. This style can be changed to an embedded view, where the listing has a card image to the right of the deck. This can be toggled in the plugin settings for all decks, or specifically for a deck by setting the style attribute to the tag, as can be seen below.
[d title="Really Small Deck" style="embedded"]
Creatures
2 Bloodbraid Elf
4 Grizzly Bears
Spells
4 Lightning Bolt
Sideboard
4 Cultivate
[/d]
The screenshot section includes an image of the above deck listing.
Screenshots
Installation
- Head over to the “Install Plugins” section of your Admin Panel, and use the “Upload” link to install the zip file.
- Activate the plugin through the ‘Plugins’ menu.
- Manually write the [c] tags for cards, or add a shortcode block for decks ([d]).
Alternatively, you can search for “Magic the Gathering” from the Admin panel Plugins section, select this plugin and click ‘Install’.
FAQ
-
Do you support other games?
-
Yes, there is a separate plugin for World of Warcraft TCG card tooltips, you can find it at https://www.ads-software.com/extend/plugins/world-of-warcraft-card-tooltips/.
-
Is the 3.0 and 2.0 version compatible with the older ones?
-
Completely compatible: your old posts will remain the same as before, even though your new posts will use the tag syntax.
Reviews
Contributors & Developers
“Magic the Gathering Card Tooltips” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Magic the Gathering Card Tooltips” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
3.4.0
- Rephrase the readme to refer to shortcode blocks in the visual editor, since newer wordpress versions do not have the old tinymce editor for which we had the icons.
- Test on latest wordpress (6.6.2)
3.3.0
- Set table width to 100% for decks. max-width is still at 510px so it should
not change anything for existing users. The max-width can be set from
the plugin options to allow larger deckview sizes.
3.2.0
- Fixed tooltips on mobile, updated wp compat to 6.0.
3.1.6
- Improve responsiveness, do not force width in px. Move Lands by default to second column.
3.1.5
- Improve responsiveness, do not force width in px. Move Lands by default to second column.
3.1.0
- Added support for bbpress. Shortcodes are not working there by default.
3.0.3
- Small fix: removed unnecessary echo
3.0.2
- Added configuration options for font size and line height for deck listings
3.0.1
- Small fixes to the embedded view.
3.0.0
- Implement embedded view for decks (no floating card tooltips on mouseover, but the card image
is present to the right of the listing) - Add a few new shortcodes [c], [card], [d] and [deck]
- Add a customization option for the width of the deck listing display
2.0.0
- Rewrote the card button to use shortcode tags.
- Implemented deck listing support.
1.0.3
- Button in editor was not showing. Now it works.
1.0.2
- Cleanup header information in php file to correctly represent released version.
1.0.1
- Test on newer WordPress versions, cleanup readme file.
1.0.0
- Initial plugin release