恪別𡧲版𢯢𢷮𧵑「模庉:Imagesize」
vi>Hakutora ←Trang mới: “--Imagesize taks a single unnamed parameter, the filename returns its dimensions as a string "WIDTHxHEIGHT" Adaped from the original function in Module:Multiple image -- local p = {} local function _getdimensions(filename) if filename:sub(1,5) ~= "File:" then filename = "File:" .. filename end local titleobj = mw.title.new(mw.uri.decode(mw.ustring.gsub(filename,'%|.*$',''), 'WIKI')) local fileobj = titleobj and titleobj.file or {width = 0, height…” |
Keepout2010 (討論 | 㨂𢵰) n 㐌入1番版 |
||
(空固事恪別)
| |||