Template:String count/doc

This template counts the number of strings on the specified page. It uses the most recent saved version of a page, so if used on the current page it will not work correctly in preview mode.

Usage
Plain search

&#123;&#123;string count&#124;page=page&#124;search=text to search for&#125;&#125;

Search with Lua patterns

&#123;&#123;string count&#124;page=page&#124;search=pattern to search for&#124;plain=no&#125;&#125;

Parameters

 * - the page to search on.
 * - the string or Lua pattern to search for.
 * - set to "no" to search with a Lua pattern instead of plain text.

Lua patterns
A Lua pattern is a special string that can match several different strings. For people who know regular expressions, Lua patterns are similar, but more limited. See the following documentation for how to contstruct patterns:
 * Introduction to Lua patterns
 * Scribunto ASCII pattern documentation
 * Scribunto unicode string pattern documentation

Note: This module uses unicode-safe Scribunto functions, so there is no need to make special exceptions for unicode characters. However, some character classes may behave differently to the ASCII pattern character classes, so see the unicode string pattern documentation for the most accurate description.

Examples

 * &rarr;
 * &rarr;