Jump to content

Module:Lang-zh/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Lfdder (talk | contribs) at 02:41, 29 April 2014 (Use from other modules: fix quotes). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Usage

This is the module for the template {{zh}}. Its main features of it 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.

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 (the order doesn't matter) to include them.

Use from other modules

The module can be called directly from another module as well as a template. So do this first load the module

local Zh = require("Module:Zh")._Zh

Then call it as follows, with the arguments in a table

local output = Zh{["c"] = "中国", ["p"] = "zhōngguó"}