Content deleted Content added
No edit summary |
No edit summary |
||
Line 29:
local function getFilepath(file)
return mw.getCurrentFrame():callParserFunction('filepath', file)
end▼
local function makeAudioLink(file)▼
categories["Articles including recorded pronunciations"] = true▼
local span = mw.html.create('span')▼
span▼
:addClass('noexcerpt')▼
:wikitext(string.format(▼
'[[File:Speakerlink-new.svg|11px|link=%s|Listen]]',▼
getFilepath(file)▼
))▼
:wikitext(string.format('[[:File:%s|i]]', file))▼
return tostring(span)▼
end
Line 182 ⟶ 163:
return ret
▲end
▲local function makeAudioLink(file)
▲ categories["Articles including recorded pronunciations"] = true
▲ local span = mw.html.create('span')
▲ span
▲ :addClass('noexcerpt')
▲ :wikitext(string.format(
▲ ' ([[File:Speakerlink-new.svg|11px|link=%s|Listen]]',
▲ getFilepath(file)
▲ ))
▲ return tostring(span)
end
|