Content deleted Content added
No edit summary |
mNo edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 29:
local function getFilepath(file)
return mw.getCurrentFrame():callParserFunction('filepath', file)
end▼
local function makeAudioLink(file)▼
local span = mw.html.create('span')▼
span▼
:addClass('noexcerpt')▼
:wikitext(string.format(▼
getFilepath(file)▼
))▼
:tag('sup')
:tag('span')
:css('color', '#00e')
:css('font', 'bold 80% sans-serif')
:css('padding', '0 .1em')
return tostring(span)▼
end
Line 148 ⟶ 166:
local span = mw.html.create('span')
:addClass('IPA nopopups')
:attr('lang', 'nl-fonipa')
:wikitext(string.format(
'[[Help:IPA
table.concat(words)
))
Line 163 ⟶ 182:
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)
▲ ))
▲ :wikitext(string.format(' [[File:%s|listen]])', file))
▲ return tostring(span)
end
|