[WordPress] 外掛分享: Sankhyaank

首頁 › 外掛目錄 › Sankhyaank
WordPress 外掛 Sankhyaank 的封面圖片
全新外掛
安裝啟用
—
尚無評分
10 天前
最後更新
—
問題解決
WordPress 6.0+ PHP 7.4+ v1.0.0 上架:2026-10-05

內容簡介

Sankhyaank 外掛提供了一個簡單的短碼功能,能將數字轉換為印度數字系統的格式,適合需要顯示印度數字或貨幣的網站,增強了數字的可讀性。

【主要功能】
• 支援將數字格式化為印度數字系統
• 提供多種顯示樣式選項(數字或文字)
• 可選擇顯示不同的數字格式(如古吉拉特文或天城文)
• 支援貨幣符號顯示(如印度盧比)
• 無需設置,無資料庫存儲

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Sankhyaank」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

WordPress groups digits in threes (1,234,567). In India the same number is written 12,34,567, and large amounts are usually read in lakh and crore.
Sankhyaank (“sankhyaank” means numeral in Hindi and Gujarati) adds a shortcode that writes a number in the Indian numbering system:

[sankhyaank value="1234567"] → 12,34,567
[sankhyaank value="1234567" style="words"] → 12.35 lakh
[sankhyaank value="20000000" style="words"] → 2 crore
[sankhyaank value="250000" currency="inr"] → ₹2,50,000
[sankhyaank value="1234567" digits="gujarati"] → ૧૨,૩૪,૫૬૭
[sankhyaank value="1234567" digits="devanagari"] → १२,३४,५६७

Shortcode options

value – the number. Commas and spaces in it are ignored.
style – digits (default) for 12,34,567, or words for thousand, lakh and crore.
decimals – how many decimal places to show. By default the number keeps its own decimals, and words uses up to 2.
digits – latin (default), gujarati, devanagari, or auto to use Gujarati digits on a Gujarati site and Devanagari digits on a Hindi or Marathi site.
currency – inr to add the rupee sign.

Large numbers stay exact, because the formatting works on the digits as text instead of converting them to a floating point number.
The words thousand, lakh and crore can be translated, so a site in Gujarati or Hindi can show them in its own language once translations are available.
For developers
Use the same formatting in a theme or plugin:
echo esc_html( Sankhyaank::format( 1234567, array( 'style' => 'words' ) ) );

The plugin has no settings, stores nothing in the database and does not contact any external service.

文章
Filter
Mastodon