Module:Wd: Difference between revisions
Content deleted Content added
Avoid Lua errors should Wikidata not be available (tested via sandbox & testcases) |
Caleb Cooper (talk | contribs) No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
Line 402:
if i then
-- year
parts[index] = tonumber(mw.ustring.gsub(dateStr:sub(ptr, i-1), "^
if parts[index] == -0 then
Line 877:
if not unitOnly then
-- get value and strip + signs from front
value = mw.ustring.gsub(datavalue['amount'], "^
if raw then
| |||