Moduł:Sprawdź: Różnice pomiędzy wersjami

[wersja przejrzana][wersja przejrzana]
Usunięta treść Dodana treść
automatyczne sprawdzanie infoboksów [https://pl.wikipedia.org/w/index.php?title=Dyskusja_wikiprojektu:Infoboksy&oldid=64807857#Wym%C3%B3g_podania_pustych_parametr%C3%B3w_w_infoboksie]
+ wymagane nawet puste
Linia 240:
local n = tonumber(v)
if not n then table.insert(invalid, argName(k)) end
elseif (kind == "num?") or (kind == "num?!") then
local n = (#v == 0) or tonumber(v)
if not n then table.insert(invalid, argName(k)) end
Linia 246:
local u = checkUri(v)
if not u then table.insert(invalid, argName(k)) end
elseif (kind == "uri?") or (kind == "uri?!") then
local u = (#v == 0) or checkUri(v)
if not u then table.insert(invalid, argName(k)) end