模組:Navbar/configuration

出自微國家百科
於 2024年6月15日 (六) 21:04 由 LarryChou留言 | 貢獻 所做的修訂 (建立內容為「return { ['templatestyles'] = 'Module:Navbar/styles.css', ['hlist_templatestyles'] = 'Hlist/styles.css', ['box_text'] = '本模板:', -- default text box when not plain or mini ['title_namespace'] = 'Template', -- namespace to default to for title ['invalid_title'] = '页面不存在 ', ['classes'] = { -- set a line to nil if you don't want it ['navbar'] = 'navbar', ['plainlinks'] = 'plainlinks', -- plainlinks ['horizontal_list'] = 'hlist',…」的新頁面)
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)

可在模組:Navbar/configuration/doc建立此模組的說明文件

return {
	['templatestyles'] = 'Module:Navbar/styles.css',
	['hlist_templatestyles'] = 'Hlist/styles.css',
	['box_text'] = '本模板:',			-- default text box when not plain or mini
	['title_namespace'] = 'Template',		-- namespace to default to for title
	['invalid_title'] = '页面不存在 ',
	['classes'] = { -- set a line to nil if you don't want it
		['navbar'] = 'navbar',
		['plainlinks'] = 'plainlinks', -- plainlinks
		['horizontal_list'] = 'hlist', -- horizontal list class
		['mini'] = 'navbar-mini', -- class indicating small links in the navbar
		['this_box'] = 'navbar-boxtext',
		['brackets'] = 'navbar-brackets',
		-- 'collapsible' is the key for a class to indicate the navbar is
		-- setting up the collapsible element in addition to the normal
		-- navbar.
		['collapsible'] = 'navbar-collapse',
		['collapsible_title_mini'] = 'navbar-ct-mini',
		['collapsible_title_full'] = 'navbar-ct-full'
	}
}