Module:Lang-zh/doc
Appearance
| This is a documentation subpage for Module:Lang-zh. It may contain usage information, categories and other content that is not part of the original module page. |
| This module is rated as ready for general use. It has reached a mature state, is considered relatively stable and bug-free, and may be used wherever appropriate. It can be mentioned on help pages and other Wikipedia resources as an option for new users. To minimise server load and avoid disruptive output, improvements should be developed through sandbox testing rather than repeated trial-and-error editing. |
| This Lua module is used on approximately 83,000 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
| This module depends on the following other modules: |
This is the module for the template {{Lang-zh}}. Its main features are described on that template's documentation page; refer to that for how to use it in articles. This documentation describes some particular features of the module.
Usage
[edit]The first table in the module lists the articles in which the template will put traditional Chinese first. Add articles to this list in the same fashion to include them. The order doesn't matter. If you cannot edit the module because it is protected, use the {{edit template-protected}} template on its talk page to request a change.
Use from other modules
[edit]The module can be called directly from another module as well as a template. To do this first load the module
local Zh = require("Module:Lang-zh")._Zh
Then call it as follows, with the arguments in a table
local output = Zh{["c"] = "中国", ["p"] = "zhōngguó"}