Module:Navbar: Difference between revisions
NeonWabbit (talk | contribs) Created page with "local p = {} local cfg = mw.loadData('Module:Navbar/configuration') local function get_title_arg(is_collapsible, template) local title_arg = 1 if is_collapsible then title_arg = 2 end if template then title_arg = 'template' end return title_arg end local function choose_links(template, args) -- The show table indicates the default displayed items. -- view, talk, edit, hist, move, watch -- TODO: Move to configuration. local show = {true, true, true, false, false..." |
NeonWabbit (talk | contribs) No edit summary |
||
| 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 }, | ||