Module:Infobox interval: Difference between revisions

I need to find the name in a more predictable place
Plumtree (talk | contribs)
Limiting FJS names to 200 characters of LaTeX
Line 251: Line 251:
FJS_name = FJS_name:gsub('^(%w+)', '\\text{%1}')
FJS_name = FJS_name:gsub('^(%w+)', '\\text{%1}')
FJS_name = FJS_name:gsub('(%-%d+)', '{%1}')
FJS_name = FJS_name:gsub('(%-%d+)', '{%1}')
table.insert(infobox_data, {
if #FJS_name <= 200 then
'[[Functional Just System|FJS name]]',
table.insert(infobox_data, {
frame:preprocess('<math>' .. FJS_name .. '</math>')
'[[Functional Just System|FJS name]]',
})
frame:preprocess('<math>' .. FJS_name .. '</math>')
})
end
end
end