Module:Utilities: Difference between revisionsGive feedback
Jump to navigation
Jump to search
initial for round_to_sig_fig |
m get_image_file |
||
| Line 19: | Line 19: | ||
return rounded_num | return rounded_num | ||
end | |||
-- If the image exists exists, return it back, else return a blank string | |||
function p.get_image_file(image_file_name) | |||
image_file = mw.title.new(image_file_name) | |||
if image_file and image_file.exists then | |||
image_file_name = "[[" .. image_file_name .. "|15px]]" | |||
else | |||
image_file_name = '' | |||
end | |||
return image_file_name | |||
end | end | ||
return p | return p | ||