Module:Logoform: Difference between revisions
From Neodyland Wiki
More actions
mNo edit summary |
mNo edit summary |
||
| Line 31: | Line 31: | ||
if #what > 1 and #(what[#what]) > 0 and #(what[#what]) < 5 then | if #what > 1 and #(what[#what]) > 0 and #(what[#what]) < 5 then | ||
if title == '' then | if title == '' then | ||
title = concat(what, '.', 1, - | title = concat(what, '.', 1, -2):gsub('_', ' ') --[[default title from fname without this extension, underscores replaced by spaces]] | ||
end | end | ||
what = 'F' -- displaying a file | what = 'F' -- displaying a file | ||