Module:Shortcut: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content deleted Content added
make code nicer |
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 |