Module:IPAc-en/sandbox: Difference between revisions

Content deleted Content added
top: fixing links to IPA key pages using AWB
No edit summary
Line 13:
local function trim(s)
return s:match('^%s*(.-)%s*$')
end
 
-- This implements [[Template:Nowrap]].
local function makeNowrapSpan(s)
local span = mw.html.create('span')
:addClass('nowrap')
:wikitext(s)
return tostring(span)
end
 
Line 166 ⟶ 158:
local span = mw.html.create('span')
-- Suppress Navigation popups and Page Previews (aka Hovercards)
:addClass('nowrap IPA nopopups noexcerpt')
:wikitext(string.format(
'[[Help:IPA/English|%s]]',
Line 192 ⟶ 184:
end
-- Nowrap and categories
ret = makeNowrapSpan(table.concat(ret)) .. renderCategories()
 
-- Reset the categories table in case we are run again.
categories = {}