Module:Shortcut: Difference between revisions

Content added Content deleted
Enwikipedia>Galobtter
(make code nicer)
Enwikipedia>Jc86035
m (remove line breaks to allow transclusion in list items)
Line 65: Line 65:
anchorDiv:tag('span'):attr('id', anchor)
anchorDiv:tag('span'):attr('id', anchor)
end
end

root:newline() -- To match the old [[Template:Shortcut]]


-- Shortcut heading
-- Shortcut heading
Line 75: Line 73:
shortcutHeading = message(cfg['shortcut-heading'], nShortcuts)
shortcutHeading = message(cfg['shortcut-heading'], nShortcuts)
shortcutHeading = frame:preprocess(shortcutHeading)
shortcutHeading = frame:preprocess(shortcutHeading)
shortcutHeading = shortcutHeading .. '\n'
end
end
end
end