Module:Infobox interval: Difference between revisions
I need to find the name in a more predictable place |
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 | ||
table.insert(infobox_data, { | |||
'[[Functional Just System|FJS name]]', | |||
frame:preprocess('<math>' .. FJS_name .. '</math>') | |||
}) | |||
end | |||
end | end | ||