Module:IPAc-nl: Difference between revisions

Content deleted Content added
No edit summary
mNo edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 32:
 
local function makeAudioLink(file)
categories["ArticlesPages including recorded pronunciations"] = true
local span = mw.html.create('span')
span
Line 45:
:css('font', 'bold 80% sans-serif')
:css('padding', '0 .1em')
:addClass('IPA')
:wikitext(string.format('[[:File:%s|i]]', file))
return tostring(span)
Line 61 ⟶ 60:
if #phonemes > 0 then
local span = mw.html.create('span')
:addClass('IPA nopopups')
:wikitext(table.concat(phonemes))
return tostring(span)
Line 116:
-- underline the phoneme groups, not the separators.
local words = {}
words[#words + 1] = '/[' -- Opening slash
i = i - 1 -- Set up i again as it was changed in the pronunciation loop
local id
Line 161:
end
until not id
words[#words + 1] = '/]' -- Closing slash
 
-- Wrap the words in a link to IPA help.
local span = mw.html.create('span')
:addClass('IPA nopopups')
:attr('lang', 'nl-fonipa')
:wikitext(string.format(
'[[Help:IPA for /Dutch|%s]]',
table.concat(words)
))