Title: Sankhyaank
Author: Rahul Tank
Published: <strong>2026 年 10 月 6 日</strong>
Last modified: 2026 年 10 月 6 日

---

搜索插件

![](https://ps.w.org/sankhyaank/assets/banner-772x250.png?rev=3729991)

![](https://ps.w.org/sankhyaank/assets/icon-256x256.png?rev=3729991)

# Sankhyaank

 作者：[Rahul Tank](https://profiles.wordpress.org/rahultank/)

[下载](https://downloads.wordpress.org/plugin/sankhyaank.1.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/sankhyaank/#description)
 * [评价](https://cn.wordpress.org/plugins/sankhyaank/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/sankhyaank/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/sankhyaank/#developers)

 [支持](https://wordpress.org/support/plugin/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.

## 安装

 1. Upload the `sankhyaank` folder to `/wp-content/plugins/`, or install it from the
    Plugins screen.
 2. Activate the plugin.
 3. Add the shortcode to a post, a page or a Shortcode block.

## 常见问题

### What happens if the value is not a number?

The value is shown as it was given, without formatting.

### Does it change the numbers WordPress shows elsewhere?

No. Only numbers inside the shortcode, or passed to `Sankhyaank::format()`, are 
formatted.

### Can it show amounts in words, such as “twelve lakh”?

Not in this version. The `words` style writes the number in digits followed by the
unit, such as 12 lakh.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Sankhyaank」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Rahul Tank ](https://profiles.wordpress.org/rahultank/)

[帮助将「Sankhyaank」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/sankhyaank)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/sankhyaank/)，查看[SVN仓库](https://plugins.svn.wordpress.org/sankhyaank/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/sankhyaank/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/sankhyaank/)。

## 更新日志

#### 1.0.0

 * First release.

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**3 周前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **7.1.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/sankhyaank/)
 * 标签
 * [Rupee](https://cn.wordpress.org/plugins/tags/rupee/)[shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
 *  [高级视图](https://cn.wordpress.org/plugins/sankhyaank/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/sankhyaank/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/sankhyaank/reviews/)

## 贡献者

 *   [ Rahul Tank ](https://profiles.wordpress.org/rahultank/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/sankhyaank/)