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

বিষয়বস্তু বিয়োগ হয়েছে বিষয়বস্তু যোগ হয়েছে
Hesperian (আলোচনা | অবদান)
categorisation into module, and split categories
Hesperian (আলোচনা | অবদান)
categorisation
৪৫ নং লাইন:
if slash == nil then
-- there is no slash, this page corresponds to a single-page image
if mw.title.getCurrentTitle().inNamespace("Page") then
return '[[File:' .. pagename .. '|frameless|center|360px]][[Category:Pages with raw images]]'
category = 'Pages with raw images'
else
category = 'Texts with raw images'
end
return '[[File:' .. pagename .. '|frameless|center|360px]][[Category:Pages' with.. rawcategory 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
if mw.title.getCurrentTitle().inNamespace("Page") then
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)]]'
category = 'Pages with raw images (hi-res scan available)'
else
category = 'Texts with raw images'
end
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.. rawcategory images.. (hi-res scans available)']]'
else
-- hi-res version doesn't exists, let's link to source page
if mw.title.getCurrentTitle().inNamespace("Page") then
return '[[File:' .. pagebase .. '|page=' .. pagenum .. '|frameless|center|360px]][[Category:Pages with raw images]]'
category = 'Pages with raw images'
else
category = 'Texts with raw images'
end
 
return '[[File:' .. pagebase .. '|page=' .. pagenum .. '|frameless|center|360px]][[Category:Pages' with.. rawcategory images.. ']]'
end
end