Module:Navbox/configuration: Difference between revisions
From Test Wiki
Content deleted Content added
clean |
m 1 revision imported |
||
| (22 intermediate revisions by 5 users not shown) | |||
| 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>', |
||
templatestyles = mw.getCurrentFrame():extensionTag{ |
|||
name = 'templatestyles', args = { src = 'Module: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 = { |
category = { |
||
orphan = '[[Category:Navbox orphans]]', |
orphan = '[[Category:Navbox orphans]]', |
||
| Line 7: | Line 18: | ||
background_colors = 'Navboxes using background colours', |
background_colors = 'Navboxes using background colours', |
||
illegible = 'Potentially illegible navboxes', |
illegible = 'Potentially illegible navboxes', |
||
borders = 'Navboxes using borders' |
borders = 'Navboxes using borders', |
||
without_first_col = '[[Category:Pages using navbox columns without the first column]]' |
|||
}, |
}, |
||
keyword = { |
keyword = { |
||
| Line 22: | Line 34: | ||
state_off = 'off', |
state_off = 'off', |
||
state_plain = 'plain', |
state_plain = 'plain', |
||
state_uncollapsed = 'uncollapsed', |
|||
subgroups = {'subgroup', 'child', ''}, |
|||
subpage_doc = 'doc', |
subpage_doc = 'doc', |
||
subpage_sandbox = 'sandbox', |
subpage_sandbox = 'sandbox', |
||
subpage_testcases = 'testcases', |
subpage_testcases = 'testcases', |
||
tracking_no = 'no' |
tracking_no = 'no', |
||
with_collapsible_groups = 'with collapsible groups', |
|||
with_columns = 'with columns', |
|||
}, |
}, |
||
class = { |
class = { |
||
| Line 39: | Line 55: | ||
navbox_inner = 'navbox-inner', |
navbox_inner = 'navbox-inner', |
||
navbox_list = 'navbox-list', |
navbox_list = 'navbox-list', |
||
navbox_list_with_group = 'navbox-list-with-group', |
|||
navbox_part = 'navbox-', -- |
navbox_part = 'navbox-', -- do not l10n |
||
navbox_styles = 'navbox-styles', |
|||
navbox_subgroup = 'navbox-subgroup', |
navbox_subgroup = 'navbox-subgroup', |
||
navbox_title = 'navbox-title', |
navbox_title = 'navbox-title', -- l10n only if you change pattern.navbox_title below |
||
navbox_odd_part = 'odd', -- |
navbox_odd_part = 'odd', -- do not l10n |
||
navbox_even_part = 'even', -- |
navbox_even_part = 'even', -- do not l10n |
||
nomobile = 'nomobile', |
|||
nowraplinks = 'nowraplinks', |
nowraplinks = 'nowraplinks', |
||
noviewer = 'noviewer' -- used to remove images from MediaViewer |
noviewer = 'noviewer', -- used to remove images from MediaViewer |
||
notheme = 'notheme' |
|||
| ⚫ | |||
list_classes = { |
|||
| ⚫ | |||
| ⚫ | |||
['hlist hnum'] = true, |
|||
['hlist hwrap'] = true, |
|||
['hlist vcard'] = true, |
|||
['vcard hlist'] = true, |
|||
['hlist vevent'] = true |
|||
}, |
}, |
||
pattern = { |
pattern = { |
||
class = 'class', |
|||
colnum = '^col(%d+)$', |
|||
colheadernum = '^col(%d+)header$', |
|||
colfooternum = '^col(%d+)footer$', |
|||
contentnum = '^content(%d+)$', |
|||
groupnum = '^group(%d+)$', |
|||
| ⚫ | |||
listnum = '^list(%d+)$', |
|||
navbox = 'Template:Navbox', |
navbox = 'Template:Navbox', |
||
| ⚫ | |||
nowrap = '^<span class="nowrap">', |
nowrap = '^<span class="nowrap">', |
||
num = '^%a+(%d+)$', |
|||
| ⚫ | |||
sandbox = '/sandbox$', |
|||
sectionnum = '^section(%d+)$', |
|||
sectnum = '^sect(%d+)$', |
|||
style = 'style$', |
style = 'style$', |
||
with_collapsible_groups = 'Template:Navbox with collapsible groups', |
|||
| ⚫ | |||
with_columns = 'Template:Navbox with columns', |
|||
}, |
}, |
||
-- doesn't support "good" translation of "part" args because these are the |
|||
-- numbered parameters. class_part, style_part, list_part, group_part |
|||
arg = { |
arg = { |
||
abbr_and_num = 'abbr%d', |
|||
above = 'above', |
above = 'above', |
||
aboveclass = 'aboveclass', |
aboveclass = 'aboveclass', |
||
abovestyle = 'abovestyle', |
abovestyle = 'abovestyle', |
||
basestyle = 'basestyle', |
basestyle = 'basestyle', |
||
bodyclass = 'bodyclass', |
|||
| ⚫ | |||
| ⚫ | |||
below = 'below', |
below = 'below', |
||
belowclass = 'belowclass', |
belowclass = 'belowclass', |
||
belowstyle = 'belowstyle', |
belowstyle = 'belowstyle', |
||
bodyclass = 'bodyclass', |
|||
| ⚫ | |||
| ⚫ | |||
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', |
|||
colhfooterstyle = 'colfooterstyle', |
|||
colfooter_and_num = 'col%dfooter', |
|||
colfooterstyle_and_num = 'col%dfooterstyle', |
|||
colfootercolspan_and_num = 'col%dfootercolspan', |
|||
coltablestyle = 'coltablestyle', |
|||
evencolstyle = 'evencolstyle', |
|||
evenodd = 'evenodd', |
evenodd = 'evenodd', |
||
evenstyle = 'evenstyle', |
evenstyle = 'evenstyle', |
||
fullwidth = 'fullwidth', |
|||
group1 = 'group1', |
group1 = 'group1', |
||
group2 = 'group2', |
group2 = 'group2', |
||
group_and_num = 'group%d', |
|||
groupclass = 'groupclass', |
groupclass = 'groupclass', |
||
groupstyle = 'groupstyle', |
groupstyle = 'groupstyle', |
||
groupstyle_and_num = 'group%dstyle', |
|||
groupwidth = 'groupwidth', |
groupwidth = 'groupwidth', |
||
innerstyle = 'innerstyle', |
|||
image = 'image', |
image = 'image', |
||
image_and_num = 'image%d', |
|||
imageclass = 'imageclass', |
imageclass = 'imageclass', |
||
imageleft = 'imageleft', |
imageleft = 'imageleft', |
||
imageleft_and_num = 'imageleft%d', |
|||
imageleftstyle = 'imageleftstyle', |
imageleftstyle = 'imageleftstyle', |
||
imagestyle = 'imagestyle', |
|||
innerstyle = 'innerstyle', |
|||
list1padding = 'list1padding', |
list1padding = 'list1padding', |
||
list_and_num = 'list%d', |
|||
listclass = 'listclass', |
listclass = 'listclass', |
||
listclass_and_num = 'list%dclass', |
|||
listpadding = 'listpadding', |
listpadding = 'listpadding', |
||
liststyle = 'liststyle', |
liststyle = 'liststyle', |
||
liststyle_and_num = 'list%dstyle', |
|||
name = 'name', |
name = 'name', |
||
navbar = 'navbar', |
navbar = 'navbar', |
||
| Line 102: | Line 148: | ||
nocat = 'nocat', |
nocat = 'nocat', |
||
nowrapitems = 'nowrapitems', |
nowrapitems = 'nowrapitems', |
||
oddcolstyle = 'oddcolstyle', |
|||
oddstyle = 'oddstyle', |
oddstyle = 'oddstyle', |
||
orphan = 'orphan', |
orphan = 'orphan', |
||
padding = 'padding', |
|||
sect_and_num = 'sect%d', |
|||
section_and_num = 'section%d', |
|||
sectiontitlestyle_and_num = 'section%dtitlestyle', |
|||
secttitlestyle = 'secttitlestyle', |
|||
selected = 'selected', |
|||
state = 'state', |
state = 'state', |
||
state_and_num = 'state%d', |
|||
style = 'style', |
style = 'style', |
||
subgroups_and_num = {'subgroup%d', 'child%d', '%d'}, |
|||
style_part = 'style', |
|||
templatestyles = 'templatestyles', |
|||
child_templatestyles = 'child templatestyles', |
|||
title = 'title', |
title = 'title', |
||
titleclass = 'titleclass', |
titleclass = 'titleclass', |
||
titlegroup = 'titlegroup', |
|||
titlegroupclass = 'titlegroupclass', |
|||
titlegroupstyle = 'titlegroupstyle', |
|||
titlestyle = 'titlestyle', |
titlestyle = 'titlestyle', |
||
tracking = 'tracking' |
tracking = 'tracking', |
||
}, |
}, |
||
-- names of navbar arguments |
-- names of navbar arguments |
||
navbar = { |
navbar = { |
||
name = 1, |
|||
fontstyle = 'fontstyle', |
fontstyle = 'fontstyle', |
||
mini = 'mini' |
mini = 'mini' |
||