Module:Infobox interval: Difference between revisions
mNo edit summary |
m In-browser sound generation (no, you won't hear anything without custom JS from User:Plumtree/common.js) |
||
| Line 229: | Line 229: | ||
table.insert(infobox_data, { | table.insert(infobox_data, { | ||
'[[File:' .. sound .. '|270px]]<br/><small>[[:File:' .. sound .. '|[sound info]]]</small>' | '[[File:' .. sound .. '|270px]]<br/><small>[[:File:' .. sound .. '|[sound info]]]</small>' | ||
}) | |||
else | |||
local hz = rat.hz(ratio) | |||
table.insert(infobox_data, { | |||
frame:expandTemplate{ | |||
title = 'User:Plumtree/Interval Sound', | |||
args = { Frequency=tostring(hz), Timbre='violin' } | |||
} | |||
}) | }) | ||
end | end | ||