這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Utilities for MTG

外掛說明

This plugin is made to spice up your pages with cards from Magic The Gathering.
When you talk about a card in a blogpost it is always nice to display it, now you can easily do that without having to find pictures and create links etc, just type the name in one of the available tags!

It is originally created for thepaupercube.com

Usage

[scryimg set=”azn”]cardname[/scryimg] results in a picture of the card (set is not required)

[scrylink set=”azn”]cardname[/scrylink] results in a link to the card on scryfall with an image of the card on hover

[p1p1cube column=”2″]http://example.com/mycube.csv[/p1p1cube] will generate 15 cards from the X (where X in this example is 2) column of a csv file (Column B in a google spreadsheet f.ex). In order for this to work, the link between the tags need to be a direct link to a published CSV file.

[p1p1deck]gishath:ghost quarter:grunn, the lonely king:serra angel:cancel[/p1p1deck] – Make a list of cardimages by typing in the names of cards separated by :

[mtgimg backside=”https://url-to-an-image.com/image.png”]https://url-to-an-image.com/image.png[/mtgimg] – requires an image url between the tags. Can take a second image and use as the backside on f.ex a flipcards.

[mtglink url=”https://url-to.link” name=”Displayed name”]https://url-to-an-image.com/image.png[/mtglink] – requires an image url between the tags, a name as parameter and a url as parameter. Can take a second image and use as the backside on f.ex flipcards.

[mtgprecache]card|card:set|card|card[/mtgprecache] – Used to pre-cache cards to speed up loading of page. Requires perfect spelling of cardnames.

Additional Info

  • This plugin is using the Scryfall API (http://www.scryfall.com) for card data and images. Data is not modified and can be found and viewed in full on Scryfall.com. Scryfall TOS: https://scryfall.com/docs/terms

Credit

  • Thanks to Adam at thepaupercube.com for using, testing and providing feedback

螢幕擷圖

  • Displayed cards
  • Hovering with the cursor over one card will zoom it

安裝方式

Just download and activate the plugin and start using the tags in your pages. No additional configuration or setup needed.

使用者評論

2023 年 1 月 29 日
The only plug-in I found that gave me exactly what I want: image on hover and link to Scryfall with possibility to defined exact card name and set. I got a bug right now please see my support forum entry.
閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Utilities for MTG〉的開發相關工作。

參與者

將〈Utilities for MTG〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.4.1

  • Optimized delay of scryfall requests

1.4.0

  • Updated to display new double faced cards

1.3.0

  • No changes to how shortcodes work, just code cleanup.

1.1.1

  • Fixed a bug where the precache did not accept setcode

1.1.0

  • New shortcode [mtgprecache]card|card|card|card[/mtgprecache] – Used to pre-cache cards to speed up loading of page. Requires perfect spelling of cardnames.

1.0.0

  • Fixes for release to WordPress Plugins section

0.9.1

  • Fixed display of double faced cards, they are now displayed as a single image and when clicked it will show the backside of the card.
  • Fixed a bug where the name matcher was too forgiving and let everything with similair names through.