內容簡介
本外掛可讓你輕鬆地在你的網站上嵌入澳洲天氣預報和觀測數據。
可以使用WeatherZone.com.au button提供數據。
支援天氣預報和當前天氣觀測按鈕。
不需要 JavaScript 知識,並且與 WordPress Multisite 兼容。
要使用此外掛,需在網站上的頁面或文字小工具中添加[weatherzone]短碼:
例如:[weatherzone mode="a" postcode="b" locality="c" showradar="d"]
參數描述:
mode
指定要添加的天氣按鈕類型。
有效的 mode 參數值為:
currentweather:(默認值)當前天氣觀測按鈕
forecast:天氣預報按鈕
postcode
顯示天氣數據的所需位置郵政編碼。
必填:是
locality
如果需要,您還可以添加locality參數。這是建議的,因為這將確保提供最接近的氣象觀測站。
例如,如果您想在頁面上顯示 Shenton Park 的當前天氣,則您的腳本呼叫將如下所示:
[weatherzone mode="currentweather" postcode="6008" locality="Shenton Park"]
其中 6008 是 Shenton Park 的郵政編碼。
showradar
是否在天氣按鈕下方顯示連接到天氣雷達的鏈接。
有效的 showradar 參數值為:
true:(默認值)是,顯示該鏈接
false:否,不顯示該鏈接
有關更多信息,請參閱 WordPress WeatherZone Embed Plugin 首頁。
外掛標籤
開發者團隊
原文外掛簡介
Allows you to easily embed Australian weather forecast and observation data on your website.
Data is provided in the form of a WeatherZone.com.au button.
Supports both weather forecast and current weather observations buttons.
Requires no knowledge of JavaScript, and is compatible with WordPress Multisite.
To use this plugin, add a [weatherzone] shortcode to a page or text widget on your website:
eg. [weatherzone mode="a" postcode="b" locality="c" showradar="d"]
Description of parameters:
mode
Specifies which type of weather button to add.
Valid values for the mode parameter are:
currentweather: (default) Current Weather Observation button
forecast: Weather forecast button
postcode
The postcode of your desired location to show weather data for.
Required: Yes
locality
You may also add a locality parameter if you wish. This is recommended as it will ensure that your closest weather station is provided.
For example if you wanted the current weather for Shenton Park to appear in your page, your script call would look like this:
[weatherzone mode="currentweather" postcode="6008" locality="Shenton Park"]
where 6008 is the postcode for Shenton Park.
showradar
Whether or not to display a link to the weather radar below the weather button.
Valid values for the showradar parameter are:
true: (default) Yes, display the link
false: No, do not display the link
See the WordPress WeatherZone Embed Plugin home page for further information.
