Modul:Transclusion count: Unterschied zwischen den Versionen
Modul:Transclusion count (Quelltext anzeigen)
Version vom 16. September 2019, 16:47 Uhr
, vor 6 Jahrenmove comment
(make local) |
K (move comment) |
||
| Zeile 9: | Zeile 9: | ||
local data = mw.loadData('Module:Transclusion_count/data/' .. (mw.ustring.find(index, "%a") and index or "other")) | local data = mw.loadData('Module:Transclusion_count/data/' .. (mw.ustring.find(index, "%a") and index or "other")) | ||
local return_value = tonumber(data[mw.ustring.gsub(template, " ", "_")]) | local return_value = tonumber(data[mw.ustring.gsub(template, " ", "_")]) | ||
-- If database value doesn't exist, use value passed to template | |||
if return_value == nil then | if return_value == nil then | ||
local arg1=mw.ustring.match(frame.args[1], '[%d,]+') | local arg1=mw.ustring.match(frame.args[1], '[%d,]+') | ||