মডিউল:RawImage: সংশোধিত সংস্করণের মধ্যে পার্থক্য

বিষয়বস্তু বিয়োগ হয়েছে বিষয়বস্তু যোগ হয়েছে
Hesperian (আলোচনা | অবদান)
preempt further display options
Hesperian (আলোচনা | অবদান)
categorisation into module, and split categories
৪৫ নং লাইন:
if slash == nil then
-- there is no slash, this page corresponds to a single-page image
return '[[File:' .. pagename .. '|frameless|center|360px]][[Category:Pages with raw images]]'
else
-- this page title contains a slash, so compose the name of the hi-res file.
৫৫ নং লাইন:
if mw.title.new(hiRes).exists then
-- hi-res version exists, let's link to it
return frame:expandTemplate{title='block center',args={'[[' .. hiRes .. '|frameless|center|360px]]' .. frame:expandTemplate{title='right', args={frame:expandTemplate{title='x-smaller block', args={'([[:' .. hiRes .. '|Improve this image]])'}}}}}} .. '[[Category:Pages with raw images (hi-res scans available)]]'
else
-- hi-res version doesn't exists, let's link to source page
return '[[File:' .. pagebase .. '|page=' .. pagenum .. '|frameless|center|360px]][[Category:Pages with raw images]]'
end
end