return {
navigation_bar = function(frame)
local current_title = mw.title.getCurrentTitle()
local base_page_name = current_title.baseText
local bar = mw.html.create('div')
:addClass('noprint')
:css {
['border-top-style'] = 'solid';
['border-top-width'] = 'thin';
clear = 'both';
['margin-top'] = "1em";
width = "100%"
}
if frame.args.previous and frame.args.previous ~= '' then
bar:tag('span'):css('float', 'left'):wikitext('[[' .. base_page_name .. '/' .. frame.args.previous .. '|' .. frame.args.previous .. ']]')
end
if frame.args.next and frame.args.next ~= '' then
bar:tag('span'):css('float', 'right'):wikitext('[[' .. base_page_name .. '/' .. frame.args.next .. '|' .. frame.args.next .. ']]')
end
return tostring(bar)
end;
categorize = function(frame)
local current_title = mw.title.getCurrentTitle()
return "[[Category:" .. current_title.baseText .. '|' .. current_title.subpageText .. ']]'
end
}