Module:Infobox MOS: Difference between revisions
Properly adopt tamnams lookup functions this time |
Tryign to add back xenpaper links... |
||
| Line 4: | Line 4: | ||
local mos = require('Module:MOS') | local mos = require('Module:MOS') | ||
local et = require('Module:ET') | local et = require('Module:ET') | ||
local xp = require('Module:Xenpaper') | |||
local infobox = require('Module:Infobox') | local infobox = require('Module:Infobox') | ||
local kbvis = require('Module:Keyboard vis') | local kbvis = require('Module:Keyboard vis') | ||
| Line 436: | Line 436: | ||
step_ratio_name = step_ratio_name:gsub("^%l", string.upper) | step_ratio_name = step_ratio_name:gsub("^%l", string.upper) | ||
local caption = string.format("[[%s]] (L:s = %d:%d)", step_ratio_name, step_ratio[1], step_ratio[2]) | local xenpaper_link = xp.mosstep_pattern_to_xenpaper_link(pattern, step_ratios[i], input_mos.equave) | ||
local caption = string.format("[[%s %s]] (L:s = %d:%d)", xenpaper_link, step_ratio_name, step_ratio[1], step_ratio[2]) | |||
local text = string.format("[[%s | %s]] (%.1f¢)", ed_as_string, gen_in_steps, gen_in_cents) | local text = string.format("[[%s | %s]] (%.1f¢)", ed_as_string, gen_in_steps, gen_in_cents) | ||