Module:shortcut box: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 8: Line 8:
for _, shortcut in ipairs(shortcuts) do
for _, shortcut in ipairs(shortcuts) do
if string.sub(shortcut, 1, 9) == "Template:" then
if string.sub(shortcut, 1, 9) == "Template:" then
table.insert(text, m_template.make_template({[1] = string.sub(shortcut, 10)}, false))
table.insert(text, '<span style="font-size:110%">' .. m_template.make_template({[1] = string.sub(shortcut, 10)}, false) .. '</span>')
else
else
table.insert(text, shortcut)
table.insert(text, '<span style="font-size:110%">[[' .. shortcut .. ']]</span>')
end
end
end
end