Content deleted Content added
add hlist_styles |
m Removed protection from "Module:Navbar/sandbox" |
||
(19 intermediate revisions by 7 users not shown) | |||
Line 1:
local p = {}
local cfg = mw.loadData('Module:Navbar/configuration
local function get_title_arg(is_collapsible, template)
Line 68:
['link'] = talkpage, ['url'] = false },
{ ['mini'] = 'e', ['full'] = 'edit', ['html_title'] = 'Edit this template',
['link'] =
{ ['mini'] = 'h', ['full'] = 'hist', ['html_title'] = 'History of this template',
['link'] =
{ ['mini'] = 'm', ['full'] = 'move', ['html_title'] = 'Move this template',
['link'] = mw.title.new('Special:Movepage'):fullUrl('target='..title.fullText), ['url'] = true },
Line 134:
local title_arg = get_title_arg(is_collapsible, template)
local title_text = args[title_arg] or (':' .. mw.getCurrentFrame():getParent():getTitle())
local links = ''
local list = make_list(title_text, has_brackets, displayed_links, is_mini, font_style)▼
if args.vte_links_override then
div:node(list)▼
links = args.vte_links_override
div:wikitext(links)
else
end
if is_collapsible then
Line 154 ⟶ 160:
-- hlist -> navbar is best-effort to preserve old Common.css ordering.
return frame:extensionTag{
name = 'templatestyles', args = { src = cfg.
} .. frame:extensionTag{
name = 'templatestyles', args = { src = cfg.templatestyles }
|