Magic the Gathering Card Tooltips

Beschreibung

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 ). 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

  • 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. 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://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.

Rezensionen

7. Dezember 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.
7. November 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.
3. September 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.
3. September 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.
Alle 6 Rezensionen lesen

Mitwirkende & Entwickler

„Magic the Gathering Card Tooltips“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:

Mitwirkende

Änderungsprotokoll

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