return function (title, cats, lang_code, data_suffix)
local lang = require("Module:languages").getByCode(lang_code)
if not lang then
return "标题含有无效语言代码:<code>" .. lang_code .. "</code>。"
end
local error_message = ""
if not require("Module:Quotations").hasData[lang_code] then
error_message = ' <code class="error">需要在[[Module:Quotations]]的<code>hasData</code>列加入语言代码' .. lang_code
.. "。"
end
-- Modules where data_suffix == "" could be put in "language modules" categories
-- instead of "language data modules".
cats:insert("引文資料模塊|" .. lang_code)
cats:insert(lang:getCanonicalName() .. " data modules|Quotations")
return "此模块包含"
.. lang:makeCategoryLink()
.. "的资料,用于格式化<code>{{[[Template:Q|Q]]|" .. lang_code .. "|...}}</code>的参数。"
.. error_message
end