Module:Sandbox/ABaso (WMF)/InfoboxImage: Difference between revisions

Content deleted Content added
Created page with '-- Inputs: -- image - Can either be a bare filename (with or without the File:/Image: prefix) or a fully formatted image link -- page - page to display for...'
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 2:
-- image - Can either be a bare filename (with or without the File:/Image: prefix) or a fully formatted image link
-- page - page to display for multipage images (DjVu)
-- classimgclass - CSS class for microformats (usually photo)
-- size - size to display the image
-- maxsize - maximum size for image
Line 183:
local result = "";
local page = frame.args["page"];
local classimgclass= frame.args["classimgclass"];
local size = frame.args["size"];
local maxsize = frame.args["maxsize"];
Line 232:
if page ~= "" and page ~= nil then
result = result .. "|page=" .. page;
end
if class ~= "" and class ~= nil then
result = result .. "|class=" .. class;
end
if size ~= "" and size ~= nil then
Line 262 ⟶ 259:
if thumbtime ~= "" then
result = result .. "|thumbtime=" .. thumbtime;
end
if classimgclass ~= "" and classimgclass ~= nil then
result = result .. "|class=" .. classimgclass;
end
if title ~= "" and title ~= nil then