Magic the Gathering Card Tooltips

Description

The plugin adds a button in the visual post editor. To use it, just select the text that represents a Magic the Gathering card name and click the button. The card name will be enclosed in [mtg_card][/mtg_card] tags (or the shorthand [c][/c] tag). 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 shorthand [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

  • The mouseover effect
  • An example of a really small deck listing, produced by the code shown in the description

Installation

  1. Head over to the “Install Plugins” section of your Admin Panel, and use the “Upload” link to install the zip file.
  2. Activate the plugin through the ‘Plugins’ menu.
  3. Use the “MtG” button in the editor, or manually write the tags.

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://wordpress.org/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

December 7, 2023
This plugin is good and it's simple to add cards on a site. But, when i click on the cards from mobile… In their windows, included with the card image, there is a "More Details" link… I hope that in the future this link will be disappearing… Cause i don't need to go to another site every time when i see a card. Please… Add the possibility to deselect this "link tag" from Settings.
November 7, 2019
Invalid headers are usually due to white space found before or after <?php ?>. I have not fully investigated wp_deckbox_mtg.php so I cannot confirm if this is the same location and exact error occurring for everybody but at least for me that was where the error was occurring. What I did was delete very last line in the file which was white-space, once deleted, the invalid header warning disappeared.
September 3, 2016
It works nicely but I had to tweak it a little to make it https compliant. Would be nice if you could add cards in other languages but it looks like a deckbox limitation.
September 3, 2016
Just added it to my wordpress. If you receive the error that Websta has with it saying the plugin doesn't have a valid header, just back out of it and try again, worked for me. The only downside to it using deckbox.org is that they don't have any of the spoiled cards from a new set up until they're completely released. Other than that it works great and looks nice.
Read all 6 reviews

Contributors & Developers

“Magic the Gathering Card Tooltips” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

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