Module:Navbox/configuration: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
add group_and_num |
here for a minute |
||
Line 2: | Line 2: | ||
aria_label = 'Navbox', |
aria_label = 'Navbox', |
||
nowrap_item = '%s<span class="nowrap">%s</span>', |
nowrap_item = '%s<span class="nowrap">%s</span>', |
||
-- do not localize marker table |
|||
marker = { |
|||
oddeven = '\127_ODDEVEN_\127', |
|||
restart = '\127_ODDEVEN0_\127', |
|||
regex = '\127_ODDEVEN(%d?)_\127' |
|||
}, |
|||
category = { |
category = { |
||
orphan = '[[Category:Navbox orphans]]', |
orphan = '[[Category:Navbox orphans]]', |
||
Line 56: | Line 50: | ||
['plainlist'] = true, |
['plainlist'] = true, |
||
['hlist'] = true, |
['hlist'] = true, |
||
['hlist hnum'] = true, |
|||
['hlist hwrap'] = true, |
|||
['hlist vcard'] = true, |
['hlist vcard'] = true, |
||
['vcard hlist'] = true, |
['vcard hlist'] = true, |
||
Line 81: | Line 77: | ||
belowclass = 'belowclass', |
belowclass = 'belowclass', |
||
belowstyle = 'belowstyle', |
belowstyle = 'belowstyle', |
||
class_part = 'class', |
|||
evenodd = 'evenodd', |
evenodd = 'evenodd', |
||
evenstyle = 'evenstyle', |
evenstyle = 'evenstyle', |
||
⚫ | |||
group1 = 'group1', |
group1 = 'group1', |
||
group2 = 'group2', |
group2 = 'group2', |
||
⚫ | |||
groupstyle_and_num = 'group%dstyle', |
|||
groupclass = 'groupclass', |
groupclass = 'groupclass', |
||
groupstyle = 'groupstyle', |
groupstyle = 'groupstyle', |
||
Line 96: | Line 92: | ||
imageleftstyle = 'imageleftstyle', |
imageleftstyle = 'imageleftstyle', |
||
imagesetyle = 'imagestyle', |
imagesetyle = 'imagestyle', |
||
list_part = 'list', |
|||
listclass_and_num = 'list%dclass', |
|||
liststyle_and_num = 'list%dstyle', |
|||
list1padding = 'list1padding', |
list1padding = 'list1padding', |
||
listclass = 'listclass', |
listclass = 'listclass', |
||
Line 112: | Line 106: | ||
state = 'state', |
state = 'state', |
||
style = 'style', |
style = 'style', |
||
style_part = 'style', |
|||
title = 'title', |
title = 'title', |
||
titleclass = 'titleclass', |
titleclass = 'titleclass', |
Revision as of 19:09, 15 November 2021
Documentation for this module may be created at Module:Navbox/configuration/doc
return {
aria_label = 'Navbox',
nowrap_item = '%s<span class="nowrap">%s</span>',
category = {
orphan = '[[Category:Navbox orphans]]',
horizontal_lists = 'Navigational boxes without horizontal lists',
background_colors = 'Navboxes using background colours',
illegible = 'Potentially illegible navboxes',
borders = 'Navboxes using borders'
},
keyword = {
border_subgroup = 'subgroup',
border_child = 'child',
border_none = 'none',
evenodd_swap = 'swap',
navbar_off = 'off',
navbar_plain = 'plain',
nocat_false = 'false',
nowrapitems_yes = 'yes',
orphan_yes = 'yes',
state_collapsed = 'collapsed',
state_off = 'off',
state_plain = 'plain',
subpage_doc = 'doc',
subpage_sandbox = 'sandbox',
subpage_testcases = 'testcases',
tracking_no = 'no'
},
class = {
autocollapse = 'autocollapse',
collapsible = 'mw-collapsible',
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_part = 'navbox-', -- goes with navbox_(odd|even)_part
navbox_subgroup = 'navbox-subgroup',
navbox_title = 'navbox-title',
navbox_odd_part = 'odd', -- goes with navbox_part
navbox_even_part = 'even', -- goes with navbox_part
nowraplinks = 'nowraplinks',
noviewer = 'noviewer' -- used to remove images from MediaViewer
},
list_classes = {
['plainlist'] = true,
['hlist'] = true,
['hlist hnum'] = true,
['hlist hwrap'] = true,
['hlist vcard'] = true,
['vcard hlist'] = true,
['hlist vevent'] = true
},
pattern = {
list = '^list(%d+)$',
sandbox = '/sandbox$',
navbox = 'Template:Navbox',
nowrap = '^<span class="nowrap">',
style = 'style$',
navbox_title = '<th[^>]*"navbox%-title"'
},
-- doesn't support "good" translation of "part" args because these are the
-- numbered parameters. class_part, style_part, list_part, group_part
arg = {
above = 'above',
aboveclass = 'aboveclass',
abovestyle = 'abovestyle',
basestyle = 'basestyle',
bodyclass = 'bodyclass',
bodystyle = 'bodystyle',
border = 'border',
below = 'below',
belowclass = 'belowclass',
belowstyle = 'belowstyle',
class_part = 'class',
evenodd = 'evenodd',
evenstyle = 'evenstyle',
group_part = 'group',
group1 = 'group1',
group2 = 'group2',
groupclass = 'groupclass',
groupstyle = 'groupstyle',
groupwidth = 'groupwidth',
innerstyle = 'innerstyle',
image = 'image',
imageclass = 'imageclass',
imageleft = 'imageleft',
imageleftstyle = 'imageleftstyle',
imagesetyle = 'imagestyle',
list_part = 'list',
list1padding = 'list1padding',
listclass = 'listclass',
listpadding = 'listpadding',
liststyle = 'liststyle',
name = 'name',
navbar = 'navbar',
navboxclass = 'navboxclass',
nocat = 'nocat',
nowrapitems = 'nowrapitems',
oddstyle = 'oddstyle',
orphan = 'orphan',
state = 'state',
style = 'style',
style_part = 'style',
title = 'title',
titleclass = 'titleclass',
titlegroup = 'titlegroup',
titlegroupclass = 'titlegroupclass',
titlegroupstyle = 'titlegroupstyle',
titlestyle = 'titlestyle',
tracking = 'tracking'
},
-- names of navbar arguments
navbar = {
fontstyle = 'fontstyle',
mini = 'mini'
}
}