內容簡介
QuoteMedia Tools 提供短碼來將即時股票報價和圖表整合到 WordPress 文章中。
股票報價
[stockquote symbol="MSFT"]
生成一個格式為 (MSFT 23.10 +6.7%) 的即時股票報價。
股票圖表
[stockchart symbol="MSFT"]
為股票代碼 “MSFT” 生成一個三個月的價格圖表。
股票圖表短碼也可以包含其他參數以幫助自定義圖表:
float 用於指定圖表的 CSS 浮動參數。例如,[stockchart symbol="MSFT" float="right"] 會使圖表向右浮動。默認值: “left”。
padding 用於指定圖表的 CSS 填充參數。例如,[stockchart symbol="MSFT" padding="10px 0 0 0"] 將在頂部添加 10px。默認值: “0 10px 10px 10px”。
scale 用於指定圖表顯示的時間範圍。例如,[stockchart symbol="MSFT" scale="1y"] 會顯示一年的圖表。默認值: “3m”。
width 用於指定圖表的寬度。例如,[stockchart symbol="MSFT" width="500"] 將顯示一個寬度為 500px 的圖表。默認值: “250”。
height 用於指定圖表的高度。例如,[stockchart symbol="MSFT" height="100"] 將顯示一個高度為 100px 的圖表。默認值: “150”。
外掛標籤
開發者團隊
原文外掛簡介
QuoteMedia Tools provides short codes to integrate real-time stock quotes and charts into WordPress posts.
Stock Quotes
[stockquote symbol="MSFT"]
Generates a real-time stock quote formatted like so (MSFT 23.10 +6.7%).
Stock Charts
[stockchart symbol="MSFT"]
Generates a 3-month price chart for the ticker symbol “MSFT”.
The stock chart short code can also contain additional parameters to help customize the chart:
float to designate the CSS float parameter on the chart. For example, [stockchart symbol="MSFT" float="right"] will float the chart right. Default: “left”.
padding to designate the CSS padding on the chart. For example, [stockchart symbol="MSFT" padding="10px 0 0 0"] will add 10px to the top. Default: “0 10px 10px 10px”.
scale to designate the timeframe that the chart shows. For example, [stockchart symbol="MSFT" scale="1y"] will show a one-year chart. Default: “3m”.
width to designate the chart’s width. For example, [stockchart symbol="MSFT" width="500"] will show a chart with a 500px width. Default: “250”.
height to designate the chart’s height. For example, [stockchart symbol="MSFT" height="100"] will show a chart with a 100px height. Default: “150”.
