جز
۱ نسخه واردشده
(بومیسازی) |
جز (۱ نسخه واردشده) |
||
| خط ۲۰: | خط ۲۰: | ||
if namespace == 10 or namespace == 828 then | if namespace == 10 or namespace == 828 then | ||
template = mw.ustring.gsub(template, "/doc$", "") -- strip /doc from end | template = mw.ustring.gsub(template, "/doc$", "") -- strip /doc from end | ||
local index = mw.ustring.sub(mw.title.new(template).text,1,1) | local index = mw.ustring.sub(mw.title.new(template).text,1,1) | ||
local | local data = mw.loadData('Module:Transclusion_count/data/' .. (mw.ustring.find(index, "%a") and index or "other")) | ||
return_value = tonumber(data[mw.ustring.gsub(template, " ", "_")]) | |||
end | end | ||
end | end | ||