Module:IPAc-en: Difference between revisions

Adding support for attribution parameter per Template talk:IPAc-en#Adding support for attribution parameter, copied from Module:IPAc-en/sandbox
No edit summary
(Adding support for attribution parameter per Template talk:IPAc-en#Adding support for attribution parameter, copied from Module:IPAc-en/sandbox)
Line 150: Line 150:
:addClass('IPA nopopups noexcerpt')
:addClass('IPA nopopups noexcerpt')
:wikitext(string.format(
:wikitext(string.format(
'[[wikipedia:Help:IPA/English|%s]]',
'[[Help:IPA/English|%s]]',
table.concat(words)
table.concat(words)
))
))
Line 163: Line 163:
categories["Pages including recorded pronunciations"] = true
categories["Pages including recorded pronunciations"] = true
ret[#ret + 1] = mw.getCurrentFrame():expandTemplate{
ret[#ret + 1] = mw.getCurrentFrame():expandTemplate{
title = 'Template:IPA audio link', args = { file } }
title = 'Template:IPA audio link', args = { file, attribution = args.attribution } }
end
end
end
end
Anonymous user