Module:Keyboard vis: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| Line 16: | Line 16: | ||
function p.vis_small(step_pattern, debug_mode) | function p.vis_small(step_pattern, debug_mode) | ||
local step_pattern = step_pattern or "LLLsLLs" | local step_pattern = step_pattern or "LLLsLLs" | ||
local line_1 = CORNER_TL | local line_1 = CORNER_TL | ||
| Line 42: | Line 41: | ||
line_4 = line_4 .. CORNER_BR | line_4 = line_4 .. CORNER_BR | ||
local out_str = ( | local out_str = (debug_mode == true and '<pre style="' or '<pre style="') | ||
.. 'background-color: white; ' | .. 'background-color: white; ' | ||
.. 'line-height: 1; ' | .. 'line-height: 1; ' | ||
| Line 49: | Line 48: | ||
.. 'padding: 0.1em; ' | .. 'padding: 0.1em; ' | ||
.. 'margin: 0.1em;' | .. 'margin: 0.1em;' | ||
.. ( | .. (debug_mode == true and '">' or '">') | ||
.. string.format('\n%s\n%s\n%s\n%s\n', line_1, line_2, line_3, line_4) | .. string.format('\n%s\n%s\n%s\n%s\n', line_1, line_2, line_3, line_4) | ||
.. ( | .. (debug_mode == true and '</pre>' or '</pre>') | ||
return out_str | return out_str | ||
end | end | ||
return p | return p | ||