Difference between revisions of "Module:Navbar"
Jump to navigation
Jump to search
Per edit request on talk
m (1 revision imported) |
en>Pppery (Per edit request on talk) |
||
Line 68: | Line 68: | ||
['link'] = talkpage, ['url'] = false }, | ['link'] = talkpage, ['url'] = false }, | ||
{ ['mini'] = 'e', ['full'] = 'edit', ['html_title'] = 'Edit this template', | { ['mini'] = 'e', ['full'] = 'edit', ['html_title'] = 'Edit this template', | ||
['link'] = | ['link'] = 'Special:EditPage/' .. title.fullText, ['url'] = false }, | ||
{ ['mini'] = 'h', ['full'] = 'hist', ['html_title'] = 'History of this template', | { ['mini'] = 'h', ['full'] = 'hist', ['html_title'] = 'History of this template', | ||
['link'] = | ['link'] = 'Special:PageHistory/' .. title.fullText, ['url'] = false }, | ||
{ ['mini'] = 'm', ['full'] = 'move', ['html_title'] = 'Move this template', | { ['mini'] = 'm', ['full'] = 'move', ['html_title'] = 'Move this template', | ||
['link'] = mw.title.new('Special:Movepage'):fullUrl('target='..title.fullText), ['url'] = true }, | ['link'] = mw.title.new('Special:Movepage'):fullUrl('target='..title.fullText), ['url'] = true }, | ||
Line 151: | Line 151: | ||
end | end | ||
local frame = mw.getCurrentFrame() | |||
-- hlist -> navbar is best-effort to preserve old Common.css ordering. | |||
return frame:extensionTag{ | |||
name = 'templatestyles', args = { src = cfg.hlist_templatestyles } | |||
} .. frame:extensionTag{ | |||
name = 'templatestyles', args = { src = cfg.templatestyles } | name = 'templatestyles', args = { src = cfg.templatestyles } | ||
} .. tostring(div:done()) | } .. tostring(div:done()) |