Module:CGroup/core: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
Content deleted Content added
mediawiki>Aaron Liu
sync with zhwiki
 
m 1 revision imported
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:


function p.Item(o, r)
function p.Item(o, r)
-- See [[zhwiki:Wikipedia:字詞轉換處理/公共轉換組]]
-- See [[Wikipedia:字詞轉換處理/公共轉換組]]
-- o: 原文。若無此屬性,應使用nil而非空字串('')。
-- o: 原文。若無此屬性,應使用nil而非空字串('')。
-- r: 用於全文轉換的規則,必填。
-- r: 用於全文轉換的規則,必填。

Latest revision as of 12:18, 20 December 2025

Documentation for this module may be created at Module:CGroup/core/doc

local p = {}

function p.Item(o, r)
	-- See [[Wikipedia:字詞轉換處理/公共轉換組]]
	-- o: 原文。若無此屬性,應使用nil而非空字串('')。
	-- r: 用於全文轉換的規則,必填。
    return { type = 'item', original = o, rule = r };
end

return p