67 741
contributi
m (ParserFunction) |
Nessun oggetto della modifica |
||
Riga 395: | Riga 395: | ||
local FileTitle | local FileTitle | ||
local MediaURI | local MediaURI | ||
FileTitle = mw.title.getCurrentTitle() | FileTitle = mw.title.getCurrentTitle() | ||
if string.lower(string.sub(Filetitle.fullText, -4)) == ".svg" then | |||
--file is Scalable Vector Graphics | |||
MediaURI = frame:callParserFunction('filepath:' .. string.sub(FileTitle.fullText, 6)) | |||
--return FileTitle.fullText .. "<br />" .. FileTitle:fullUrl() .. "<br />" .. FileTitle:localUrl() .. "<br />" .. FileTitle:canonicalUrl() .. "<br />" .. MediaURI | |||
return "== Validazione ==" .. string.char(10) .. ValidateURI .. mw.uri.encode(MediaURI, "PATH") | |||
else | |||
return nil | |||
end | |||
end | end | ||
return p | return p |