Module:IPAc-nl: Difference between revisions

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)
))
:tag('sup')
:tag('span')
:css('color', '#00e')
:css('font', 'bold 80% sans-serif')
:css('padding', '0 .1em')
:addClass('IPA')
: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)
))
:wikitext(string.format(' [[:File:%s|ilisten]])', file))
return tostring(span)
end