前言介紹
- 這款 WordPress 外掛「B7 Random Number」是 2024-11-02 上架。
- 目前有 50 個安裝啟用數。
- 上一次更新是 2024-11-03,距離現在已有 182 天。
- 外掛最低要求 WordPress 5.9 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.2 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
blogvii |
外掛標籤
number | random | random number |
內容簡介
### 摘要:
B7 隨機數字外掛程式允許您在 WordPress 文章、頁面或小工具內輕鬆產生隨機數字。透過可自訂的參數,您可以指定範圍、格式,甚至要顯示的數字類型(奇數或偶數)。
### 問題與答案:
- 參數中預設最小值和最大值分別是多少?
- 預設最小值為 1,最大值為 100。
- 如何設定只生成奇數或偶數?
- 使用 type=odd 來生成奇數,使用 type=even 來生成偶數。
- 如果要在生成的數字中包含千位符號,應如何設定?
- 將 comma 設為 yes,即可在較大的數字中包含逗號。
原文外掛簡介
The B7 Random Number plugin allows you to easily generate random numbers directly within your WordPress posts, pages, or widgets. With customizable parameters, you can specify the range, format, and even the type of number (odd or even) you want to display.
Parameters
min: Specify the minimum value for the random number. Default is 1.
max: Specify the maximum value for the random number. Default is 100.
count: Define how many random numbers to generate. Default is 1.
type: Set the type of number to generate. Use even for even numbers and odd for odd numbers.
comma: Control the formatting of the output. Set to yes to include commas in large numbers, or no to remove them. Default is yes.
decimals: Specify the number of decimal places for the generated number. Default is 0.
prefix: Add a prefix to the generated number. For example: ID-.
suffix: Add a suffix to the generated number. For example: -XYZ.
Key Features
Versatile Number Generation: Generate random numbers between specified minimum and maximum values.
Multiple Configurations: Control the output with options for number formatting, decimal places, and inclusion of prefixes and suffixes.
Type Control: Choose to generate only odd or even numbers based on your requirements.
Shortcode Examples
Basic usage: [blogvii_rand_number]
Specific range: [blogvii_rand_number min=1 max=100]
Generate multiple numbers: [blogvii_rand_number count=5]
Odd number only: [blogvii_rand_number type=odd]
With prefix: [blogvii_rand_number prefix="ID-"]
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「B7 Random Number」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Random Numbers Generator 》這個外掛可以讓你顯示預先格式化的隨機數字,以供測試或演示, 屬性:, range:兩個由逗號分隔的數字。輸出將包含一個最小值和最大值之間的數字。, format:任...。
Lottery Number Supplier 》使用此免費外掛程式,在WordPress部落格上增加一個小框,提供讀者抽獎號碼供應商。讀者從十款最受歡迎的彩票遊戲中選擇一款,然後點擊一個按鈕,即可獲得符合...。