內容簡介
此外掛旨在為您的網頁增添Magic The Gathering的卡片。
當您在博客文章中談論卡片時,展示它總是不錯的,現在您可以輕鬆地做到這一點,而不必尋找圖片和創建鏈接等,只需在其中一個可用的標籤中輸入卡名即可!
它最初是為thepaupercube.com創建的。
用法
[scryimg]cardname:set[/scryimg] 將顯示卡片的圖片(set不是必需的)
[scrylink]cardname:set[/scrylink] 顯示與此參考文章的卡片的scryfall上的鏈接,當懸停在卡片圖像上時顯示圖片。
[p1p1cube column=”2″]http://example.com/mycube.csv[/p1p1cube] 將產生一個CSV檔案的15個卡片,其中X(在此示例中,X是2)列是csv檔案的列(例如B列是Google表格)。為了使其工作,標籤之間的鏈接需要是到已發布的CSV檔案的直接鏈接。
[p1p1deck]gishath:ghost quarter:grunn, the lonely king:serra angel:cancel[/p1p1deck] - 通過輸入用 : 分隔的卡名列表來製作卡片圖像清單。
[mtgimg backside=”https://url-to-an-image.com/image.png”]https://url-to-an-image.com/image.png[/mtgimg] - 需要在標籤之間提供圖像網址。可以使用第二張圖像作為翻轉卡的背面。
[mtglink url=”https://url-to.link” name=”Displayed name”]https://url-to-an-image.com/image.png[/mtglink] - 需要在標籤之間提供圖像url,以及作為參數的名稱和url。可以使用第二個圖片並在翻轉卡上使用作為反面。
[mtgprecache]card|card:set|card|card[/mtgprecache] - 用於預先緩存卡片以加速頁面加載。需要卡名的拼寫完全正確。
其他資訊
此插件使用Scryfall API(http://www.scryfall.com)提供卡片數據和圖像。數據未經修改,並且可以在Scryfall.com上找到和查看完整數據。Scryfall TOS:https://scryfall.com/docs/terms
致謝
感謝thepaupercube.com的Adam使用、測試和提供反饋
外掛標籤
開發者團隊
原文外掛簡介
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
