Module:IPA symbol and Module:IPA symbol/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
Gamapamani (talk | contribs) for consistency with Module:IPA, otherwise we get mixes of two different lang attributes for no apparent reason. I assume this is the preferred one, as IPAplink with its dropped spans would already fall under it |
lang |
||
Line 1: | Line 1: | ||
local data = mw.loadData('Module:IPA symbol/data').data |
local data = mw.loadData('Module:IPA symbol/sandbox/data').data |
||
local p = {} |
local p = {} |
||
Line 78: | Line 78: | ||
prefix or '', t.article, displayText or s, suffix or '') |
prefix or '', t.article, displayText or s, suffix or '') |
||
if addSpan ~= 'no' then |
if addSpan ~= 'no' then |
||
local span = mw.html.create('span'):addClass('IPA'):attr('lang', 'und |
local span = mw.html.create('span'):addClass('IPA'):attr('lang', 'und-fonipa') |
||
if prefix or suffix then |
if prefix or suffix then |
||
span:addClass('nowrap'):attr('title', |
span:addClass('nowrap'):attr('title', |
||
Line 89: | Line 89: | ||
audio = audio == true and t.audio or audio |
audio = audio == true and t.audio or audio |
||
if audio ~= '' then |
if audio ~= '' then |
||
audio = |
audio = mw.getCurrentFrame():expandTemplate{ |
||
title = 'Template:Audio', |
title = 'Template:Audio', |
||
args = { audio, '', help = 'no' } |
args = { audio, 'listen', help = 'no' } |
||
} |
} |
||
audio = ' <span class="nowrap" style="font-size:85%">(' .. audio |
|||
.. ')</span>' |
|||
end |
end |
||
else |
else |