Перейти до вмісту

Модуль:Navbox/configuration

Матеріал з Вікіпедії — вільної енциклопедії.
{{i}} Документація модуля[перегляд] [редагувати] [історія] [очистити кеш]

Модуль містить конфігураційні дані для Модуль:Navbox.

return {
	aria_label = 'Navbox',
	nowrap_item = '%s<span class="nowrap">%s</span>',
	templatestyles = mw.getCurrentFrame():extensionTag{
		name = 'templatestyles', args = { src = 'Модуль:Navbox/styles.css' }
	},
	hlist_templatestyles = 'Hlist/styles.css',
	plainlist_templatestyles = 'Plainlist/styles.css',
	-- do not localize marker table
	marker = {
		oddeven = '\127_ODDEVEN_\127',
		restart = '\127_ODDEVEN0_\127',
		regex = '\127_ODDEVEN(%d?)_\127'
	},
	category = {
		orphan = '[[Категорія:Навбокси сироти]]',
		horizontal_lists = 'Навігаційні контейнери без горизонтальних переліків',
		background_colors = 'Навбокси з використанням кольорів тла',
		illegible = 'Потенційно нерозбірливі навігаційні контейнери',
		borders = 'Навігаційні контейнери з використанням меж',
		without_first_col = '[[Категорія:Сторінки, що використовують навігаційні контейнери зі стовпчиками без першого стовпчика]]'
	},
	keyword = {
		border_subgroup = {'subgroup', 'підгрупа'},
		border_child = {'child', 'вбудовування'},
		border_none = {'none', 'відсутній'},
		evenodd_swap = {'swap', 'заміна'},
		navbar_off = {'off', 'вимкнутий'},
		navbar_plain = {'plain', 'простий'},
		state_uncollapsed = 'uncollapsed',
		nocat_false = 'false',
		nowrapitems_yes = {'yes', 'так'},
		orphan_yes = {'yes', 'так'},
		state_collapsed = {'collapsed', 'згорнутий'},
		state_off = {'off', 'вимкнутий'},
		state_plain = {'plain', 'простий'},
		subgroups = {'subgroup', 'child', 'підгрупа', 'вбудовування', ''},
		subgroups_type_num = 3,
		subpage_doc = 'документація',
		subpage_sandbox = 'пісочниця',
		subpage_testcases = 'тести',
		tracking_no = {'no', 'ні'},
		with_collapsible_groups = 'with collapsible groups',
		with_columns = 'with columns',
	},
	class = {
		autocollapse = 'autocollapse',
		collapsible = 'collapsible'--[['mw-collapsible']],
		collapsed = 'collapsed'--[['mw-collapsed']],
		-- Warning
		navbox = 'navbox', -- WMF currently hides 'navbox' from mobile,
		-- so you probably shouldn't change the navbox class.
		navbox_abovebelow = 'navbox-abovebelow',
		navbox_group = 'navbox-group',
		navbox_image = 'navbox-image',
		navbox_inner = 'navbox-inner',
		navbox_list = 'navbox-list',
		navbox_list_with_group = 'navbox-list-with-group',
		navbox_part = 'navbox-', -- do not l10n
		navbox_styles = 'navbox-styles',
		navbox_subgroup = 'navbox-subgroup',
		navbox_title = 'navbox-title', -- l10n only if you change pattern.navbox_title below
		navbox_odd_part = 'odd', -- do not l10n
		navbox_even_part = 'even', -- do not l10n
		nomobile = 'nomobile',
		nowraplinks = 'nowraplinks',
		noviewer = 'noviewer', -- used to remove images from MediaViewer
		notheme = 'notheme'
	},
	pattern = {
		class = 'class',
		colnum = '^col(%d+)$',
		colnum_transl = '^стовпчик(%d+)$',
		colheadernum = '^col(%d+)header$',
		colheadernum_transl = '^заголовок_стовпчика(%d+)$',
		colfooternum = '^col(%d+)footer$',
		colfooternum_transl = '^внизу_стовпчика(%d+)$',
		contentnum = '^content(%d+)$',
		contentnum_transl = '^вміст(%d+)$',
		groupnum = '^group(%d+)$',
		groupnum_transl = '^група(%d+)$',
		hlist = 'hlist',
		listnum = '^list(%d+)$',
		listnum_transl = '^список(%d+)$',
		
		navbox = 'Шаблон:Navbox',
		navbox_title = '<th[^>]*"navbox%-title"',
		nowrap = '^<span class="nowrap">',
		num = '^%a+(%d+)$',
		plainlist = 'plainlist',
		sandbox = '/пісочниця$',
		sectionnum = '^section(%d+)$',
		sectionnum_transl = '^розділ(%d+)$',
		sectnum = '^sect(%d+)$',
		sectnum_transl = '^розд(%d+)$',
		blocknum = '^блок(%d+)$',
		style = 'style$',
		with_collapsible_groups = 'Template:Navbox with collapsible groups',
		with_columns = 'Template:Navbox with columns',
	},
	arg = {
		abbr_and_num = 'abbr%d',
		above = 'above',
		aboveclass = 'aboveclass',
		abovestyle = 'abovestyle',
		basestyle = 'basestyle',
		below = 'below',
		belowclass = 'belowclass',
		belowstyle = 'belowstyle',
		bodyclass = 'bodyclass',
		bodystyle = 'bodystyle',
		border = 'border',
		content_and_num = 'content%d',
		contentstyle = 'contentstyle',
		contentstyle_and_num = 'content%dstyle',
		colheaderstyle = 'colheaderstyle',
		colheader_and_num = 'col%dheader',
		colheaderstyle_and_num = 'col%dheaderstyle',
		colheadercolspan_and_num = 'col%dheadercolspan',
		colstyle = 'colstyle',
		col_and_num = 'col%d',
		colstyle_and_num = 'col%dstyle',
		colwidth = 'colwidth',
		colwidth_and_num = 'col%dwidth',
		colfooterstyle = 'colfooterstyle',
		colfooter_and_num = 'col%dfooter',
		colfooterstyle_and_num = 'col%dfooterstyle',
		colfootercolspan_and_num = 'col%dfootercolspan',
		coltablestyle = 'coltablestyle',
		evencolstyle = 'evencolstyle',
		evenodd = 'evenodd',
		evenstyle = 'evenstyle',
		fullwidth = 'fullwidth',
		group1 = 'group1',
		group2 = 'group2',
		group_and_num = 'group%d',
		groupclass = 'groupclass',
		groupstyle = 'groupstyle',
		groupstyle_and_num = 'group%dstyle',
		groupwidth = 'groupwidth',
		image = 'image',
		image_and_num = 'image%d',
		imageclass = 'imageclass',
		imageleft = 'imageleft',
		imageleft_and_num = 'imageleft%d',
		imageleftstyle = 'imageleftstyle',
		imagestyle = 'imagestyle',
		innerstyle = 'innerstyle',
		list1padding = 'list1padding',
		list_and_num = 'list%d',
		listclass = 'listclass',
		listclass_and_num = 'list%dclass',
		listpadding = 'listpadding',
		liststyle = 'liststyle',
		liststyle_and_num = 'list%dstyle',
		name = 'name',
		navbar = 'navbar',
		navboxclass = 'navboxclass',
		nocat = 'nocat',
		nowrapitems = 'nowrapitems',
		oddcolstyle = 'oddcolstyle',
		oddstyle = 'oddstyle',
		orphan = 'orphan',
		padding = 'padding',
		sect_and_num = 'sect%d',
		block_and_num = 'блок%d',
		section_and_num = 'section%d',
		sectiontitlestyle_and_num = 'section%dtitlestyle',
		secttitlestyle = 'secttitlestyle',
		selected = 'selected',
		state = 'state',
		state_and_num = 'state%d',
		style = 'style',
		subgroups_and_num = {'subgroup%d', 'child%d', '%d', 'підгрупа%d', 'вбудовування%d', '%d'},
		templatestyles = 'templatestyles',
		child_templatestyles = 'child templatestyles',
		title = 'title',
		titleclass = 'titleclass',
		titlestyle = 'titlestyle',
		tracking = 'tracking',
	},
	transl_arg = {
		abbr_and_num = 'скор%d',
		above = 'угорі',
		aboveclass = 'клас_угорі',
		abovestyle = 'стиль_угорі',
		basestyle = 'основний_стиль',
		below = 'внизу',
		belowclass = 'клас_внизу',
		belowstyle = 'стиль_внизу',
		bodyclass = 'клас_тіла',
		bodystyle = 'стиль_тіла',
		border = 'рамка',
		content_and_num = 'вміст%d',
		contentstyle = 'стиль_вмісту',
		contentstyle_and_num = 'стиль_вмісту%d',
		colheaderstyle = 'стиль_заголовків_стовпчиків',
		colheader_and_num = 'заголовок_стовпчика%d',
		colheaderstyle_and_num = 'стиль_заголовка_стовпчика%d',
		colheadercolspan_and_num = 'colspan_заголовка_стовпчика%d',
		colstyle = 'стиль_стовпчиків',
		col_and_num = 'стовпчик%d',
		colstyle_and_num = 'стиль_стовпчика%d',
		colwidth = 'ширина_стовпчиків',
		colwidth_and_num = 'ширина_стовпчика%d',
		colfooterstyle = 'стиль_внизу_стовпчиків',
		colfooter_and_num = 'внизу_стовпчика%d',
		colfooterstyle_and_num = 'стиль_внизу_стовпчика%d',
		colfootercolspan_and_num = 'colspan_внизу_стовпчика%d',
		coltablestyle = 'стиль_таблиці_стовпчиків',
		evencolstyle = 'стиль_парних_стовпчиків',
		evenodd = 'парні_непарні',
		evenstyle = 'стиль_парних',
		fullwidth = 'повна_ширина',
		group1 = 'група1',
		group2 = 'група2',
		group_and_num = 'група%d',
		groupclass = 'клас_груп',
		groupstyle = 'стиль_груп',
		groupstyle_and_num = 'стиль_групи%d',
		groupwidth = 'ширина_груп',
		image = 'зображення',
		image_and_num = 'зображення%d',
		imageclass = 'клас_зображення',
		imageleft = 'зображення_зліва',
		imageleft_and_num = 'зображення_зліва%d',
		imageleftstyle = 'стиль_зображення_зліва',
		imagestyle = 'стиль_зображення',
		innerstyle = 'внутрішній_стиль',
		list1padding = 'відступ_списку1',
		list_and_num = 'список%d',
		listclass = 'клас_списків',
		listclass_and_num = 'клас_списку%d',
		listpadding = 'відступ_списку',
		liststyle = 'стиль_списків',
		liststyle_and_num = 'стиль_списку%d',
		name = 'ім\'я',
		navbar = 'навпан',
		navboxclass = 'клас_навкон',
--		nocat = 'nocat',
		nowrapitems = 'не_огортати_елементи',
		oddcolstyle = 'стиль_непарних_стовпчиків',
		oddstyle = 'стиль_непарних',
		orphan = 'сирота',
		padding = 'відступ',
		sect_and_num = 'розд%d',
		section_and_num = 'розділ%d',
		sectiontitlestyle_and_num = 'стиль_назви_розділу%d',
		secttitlestyle = 'стиль_назви_розділів',
		selected = 'вибрано',
		state = 'стан',
		state_and_num = 'стан%d',
		style = 'стиль',
		subgroups_and_num = {'підгрупа%d', 'вбудовування%d', '%d'},
		templatestyles = 'стилі_шаблону',
		child_templatestyles = 'стилі_шаблону вбудовування',
		title = 'назва',
		titleclass = 'клас_назви',
		titlestyle = 'стиль_назви',
		tracking = 'відстеження',
	},
	-- names of navbar arguments
	navbar = {
		name = 1,
		fontstyle = 'fontstyle',
		mini = 'mini'
	}
}