[go: nahoru, domu]

Jump to content

Munurin millum rættingarnar hjá "Module:Zh/doc"

Frá Wikipedia, hin frælsa alfrøðin
Content deleted Content added
sNo edit summary
Xqbot (kjak | íkøst)
s Bot: Erstatt forældet <source> -tag og parameteren "enclose" [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html]
 
Linja 9: Linja 9:
The module can be called directly from another module as well as a template. To do this first load the module
The module can be called directly from another module as well as a template. To do this first load the module


<source lang="lua">
<syntaxhighlight lang="lua">
local Zh = require("Module:Zh")._Zh
local Zh = require("Module:Zh")._Zh
</syntaxhighlight>
</source>


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


<source lang="lua">
<syntaxhighlight lang="lua">
local output = Zh{["c"] = "中国", ["p"] = "zhōngguó"}
local output = Zh{["c"] = "中国", ["p"] = "zhōngguó"}
</syntaxhighlight>
</source>


===Modules used===
===Modules used===

Seinasta endurskoðan sum var 22. apr 2020 kl. 16:39

This is the module for the template {{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.

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. If you cannot edit the module because its protected use the {{edit template-protected}} template on its talk page to request a change.

Use from other modules

[rætta wikitekst]

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:Zh")._Zh

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

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

Modules used

[rætta wikitekst]