內容簡介
Inline Stock Quotes是一個WordPress外掛,允許使用者使用[stock]短代碼在其文章中插入動態更新報價。
預設情況下,在日常變化為正數時,引述的價格會變綠色,中性時是白色,負數時則是紅色。 外觀與像CNBC和Motley Fool等商業新聞網站相似!
關於使用此外掛的詳細說明,包括短代碼範例和影像,請造訪http://elliottbernstein.com/inline-stock-quotes/,或繼續閱讀以下內容。
如何使用Inline Stock Quotes
在創建或編輯文章時,只需鍵入:
[stock symbol="YOUR-SYMBOL-HERE"]
例如,要獲取Apple的報價,請鍵入:
[stock symbol="AAPL"]
自定義報價外觀
您可以通過外掛程式的設置頁面自定義Inline Stock Quotes的所有元素。 該頁面在您的管理區域下的設置->Inline Quotes中。
顏色
引述的所有元素都可以使用自定義顏色值,包括背景、符號和當前價格、正漲、負漲和無變化值。使用任何CSS識別的顏色格式,包括十六進制值、顏色名稱和RGBA。請務必在十六進制值之前包括“#”符號,否則它們將無法工作!
字體,大小和加粗
字體系列、字體大小和字體加粗可以通過設置頁面自定義。只需輸入任何已識別的字體系列或一系列字體系列來自定義字體。對於大小,使用任何單位,包括px、em、rem、%或vh。
鏈接和資料服務
您可以勾選適當的框以使您的連結在新視窗中開啟。同樣地,您可以選擇在點擊連結時開啟Google或Yahoo!頁面。如果您所在的國家封鎖了Google,這可能會有用。
重設為默認值
如果您在任何時候希望返回到外掛程式的默認值,只需將以前的輸入從框中刪除並再次點擊保存按鈕。預設值將被恢復。
外掛標籤
開發者團隊
原文外掛簡介
Inline Stock Quotes is a WordPress plugin that allows users to use the [stock] shortcode to insert dynamically updating quotes into their posts.
By default, quoted prices appear green when daily change is positive, white when neutral, and red when negative. The look is similar to what you’ll find on business news sites like CNBC and Motley Fool!
For detailed instructions on using this plugin, including shortcode examples and images, visit http://elliottbernstein.com/inline-stock-quotes/ or continue to read below.
How to Use Inline Stock Quotes
While creating or editing a post, simply type:
[stock symbol="YOUR-SYMBOL-HERE"]
For example, to get a quote for Apple, type:
[stock symbol="AAPL"]
Customizing the Quote Look
You can customize all elements of Inline Stock Quotes through the plugin Settings page. The page is in your Admin area under Settings->Inline Quotes.
Colors
All elements of the quote can take custom color values, including background, symbol & current price, and positive change, negative change, and no change values. Use any CSS-recognized color format, including hex values, color names, and RGBA. Remember to include the “#” symbol before any Hex values or they won’t work!
Font, Size & Weight
The font face, font size, and font weight can be customized via the settings page. Simply enter any regonized font family or series of font families to customize font. For for size, use any units including px, em, rem, %, or vh.
Links & Data Service
You may wish your link to open in a new window, in wich case you can check the appropriate box. Likewise, you can select if a Google or Yahoo! page will open when the link is clicked. This may be useful if you are in a country where Google is blocked.
Resetting to Default
If at any time you would like to return to plugin defaults, simply remove your previous input from the box and click the save button again. The default value will be restored.
