Modul:Wikidata utilities: Unterschied zwischen den Versionen
KKeine Bearbeitungszusammenfassung |
KKeine Bearbeitungszusammenfassung |
||
Zeile 6: | Zeile 6: | ||
if mw.ustring.match( i, '^Q[%d]+$') == nil then | if mw.ustring.match( i, '^Q[%d]+$') == nil then | ||
if mw.ustring.match( i, '^[%d]+$') ~= nil then -- only number | if mw.ustring.match( i, '^[%d]+$') ~= nil then -- only number | ||
return 'Q' .. i | |||
else -- invalid id | else -- invalid id | ||
return '' | |||
end | end | ||
end | end |