Module:Element: Difference between revisions

Content added Content deleted
(Created page with "--[[ Please remember to use the talk page before changing this template! When the first Lua version was written this was used on more than 5000 pages, now it is probably some 3000 more. A change will cause a re-rendering of all pages. Keep that in mind! ]]-- local p = {} local translations = mw.loadData('Module:Element/translation') -- start for Template:Area function p.area(frame) -- extracting arguments local areaId = frame.args[1] local areaName = frame.a...")
 
No edit summary
 
Line 131: Line 131:
else
else
output[4] = '[[File:Osm element ' .. elementDescription .. '.svg|20px|link='
output[4] = '[[File:Osm element ' .. elementDescription .. '.png|20px|link='
if langcodeInput ~= nil and langcodeInput ~= 'en' then
if langcodeInput ~= nil and langcodeInput ~= 'en' then
output[5] = langcodeInput .. ':' .. string.upper(string.sub(elementDescription, 1, 1))
output[5] = langcodeInput .. ':' .. string.upper(string.sub(elementDescription, 1, 1))