Content deleted Content added
←Created page with '-- This module implements Template:IPAc-nl. local data = mw.loadData('Module:IPAc-nl/data') local p = {} -- Global container for tracking categories local...' |
mNo edit summary |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 31:
end
local function
local span = mw.html.create('span')
span▼
:addClass('noexcerpt')▼
:wikitext(string.format(▼
getFilepath(file)▼
))▼
:tag('span')
:css('color', '#00e')
:css('font', 'bold 80% sans-serif')
:css('padding', '0 .1em')
return tostring(span)▼
end▼
-- This adds a tooltip icon to a label. It implements [[Template:H:title]].
local function makeTooltip(label, tooltip)
local span = mw.html.create('span')▼
:attr('title', tooltip)
:wikitext(label)
return tostring(span)
Line 40 ⟶ 60:
if #phonemes > 0 then
local span = mw.html.create('span')
:addClass('IPA nopopups')
:wikitext(table.concat(phonemes))
return tostring(span)
Line 146 ⟶ 166:
local span = mw.html.create('span')
:addClass('IPA nopopups')
:attr('lang', 'nl-fonipa')
:wikitext(string.format(
'[[Help:IPA
table.concat(words)
))
Line 161 ⟶ 182:
return ret
▲end
▲ categories["Articles including recorded pronunciations"] = true
▲ local span = mw.html.create('span')
▲ span
▲ :addClass('noexcerpt')
▲ :wikitext(string.format(
▲ '[[File:Speaker Icon.svg|13px|link=%s|Listen]] ',
▲ getFilepath(file)
▲ ))
▲ :tag('span')
▲ :wikitext(string.format(('[[:File:%s|listen]]'), file))
▲ return tostring(span)
end
|