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

বিষয়বস্তু বিয়োগ হয়েছে বিষয়বস্তু যোগ হয়েছে
Hesperian (আলোচনা | অবদান)
hmm
Hesperian (আলোচনা | অবদান)
hmm
১৮ নং লাইন:
if pagename == nil then
error("invoke with <nowiki>{{raw image|</nowiki>{{PAGENAME}}<nowiki>}}</nowiki>")
return 'Invoke with <nowiki>{{raw image|</nowiki>{{PAGENAME}}<nowiki>}}</nowiki>'
return
end
 
৩৪ নং লাইন:
if slash == nil then
-- there is no slash, this page corresponds to a single-page image
return '{{block center|[[File:' .. pagename .. '|frameless|center|360px]]}}'
else
-- this page title contains a slash, so compose the name of the hi-res file.
৪২ নং লাইন:
-- check if the hi-ref version exists
if mw.title.new(titlehiRes).exists(hiRes) then
-- hi-res version exists, let's link to it
return '{{block center|[[' .. hiRes .. '|frameless|center|360px]]{{right|{{x-smaller block|([[:File:' .. hiRes .. '|Improve this image]])}}}}}}'