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

Diffen

描述

The Diffen comparison plugin allows WordPress bloggers to easily search for and embed a comparison on their blog.

You can compare anything on Diffen – baseball players, credit cards, computer processors, religions, countries, companies…you get the idea. We wanted to share with WordPress bloggers this ability to compare anything. And we wanted to do it seamlessly so you would not have to leave your editing interface inside WordPress to do this search.

So how does it work?
The plugin adds a new button to your editing dashboard. Geniuses that we are, we called it “Add a Comparison” because that is exactly what the plugin helps you do. This button is right next to the Add Media button and functions in a very similar fashion. Click on the button and an overlay pops up that allows you to search for the comparison. Simply enter the two things you want to compare and hit Enter.

If Diffen has the data you need (it usually does), you will see a nicely formatted comparison chart for your search terms. One click and the chart will be added to your blog post. WordPress does not allow iFrames (like YouTube embeds) to be viewed inside the editor but rest assured it’s there. Preview your post and you will see it. You might have to adjust the height attribute sometimes but for the most part, it just works. Like magic. Happy comparing!

Under the covers:
Technically-minded users may be interested in what happens behind the scenes. The plugin searches Diffen and when it finds the comparison being requested, embeds an iFrame into the blog post (just like a YouTube or Slideshare embed).

What if the search does not return anything?
This is v0.1 for the Diffen comparison plugin. We are working on expanding the feature set so that the service automatically pulls in content from Wikipedia if it’s not available on Diffen. We will launch this soon and the best part is that you will NOT have to upgrade the plugin to benefit from this feature. It will “just work.”

螢幕截圖

  • A button to "Add a Diffen comparison" will appear in the post editor.
  • You can preview and resize the comparison chart you have created.
  • You can also choose a dark theme for the embed if that suits your blog’s design better.

安裝

  1. Upload diffen.zip to the /wp-content/plugins directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Create a new comparison inside the post editor.

常見問題

See FAQ.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Diffen” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Diffen 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.0

  • Initial release.
  • Allows authors to generate and embed comparison charts from Diffen.com

2.0

  • Confirmed compatibility with WordPress 3.9
  • Added the option to embed light or dark themed skin

2.1

  • Tested compatibility with WordPress 4.1.
  • Made the error message easier to understand when a comparison cannot be found.