Module:NavboxMobile/configuration: Difference between revisions

From Ikwipedia
No edit summary
Replaced content with " return { class = { navbox = 'navboxMobile', title = 'navboxMobile-title', group = 'navboxMobile-group', list = 'navboxMobile-list', subgroup = 'navboxMobile-subgroup', }, style = { default_bg = '#fdfdfd', title_bg = '#ccf', group_bg = '#e6e6ff', } }"
Tag: Replaced
Line 1: Line 1:
return {
return {
aria_label = 'NavboxMobile',
    class = {
nowrap_item = '%s<span class="nowrap">%s</span>',
        navbox = 'navboxMobile',
templatestyles = mw.getCurrentFrame():extensionTag{
        title = 'navboxMobile-title',
name = 'templatestyles', args = { src = 'Module:NavboxMobile/styles.css' }
        group = 'navboxMobile-group',
},
        list = 'navboxMobile-list',
hlist_templatestyles = 'Hlist/styles.css',
        subgroup = 'navboxMobile-subgroup',
plainlist_templatestyles = 'Plainlist/styles.css',
    },
-- do not localize marker table
    style = {
marker = {
        default_bg = '#fdfdfd',
oddeven = '\127_ODDEVEN_\127',
        title_bg = '#ccf',
restart = '\127_ODDEVEN0_\127',
        group_bg = '#e6e6ff',
regex = '\127_ODDEVEN(%d?)_\127'
    }
},
category = {
orphan = '[[Category:Navbox orphans]]',
horizontal_lists = 'Navigational boxes without horizontal lists',
background_colors = 'Navboxes using background colours',
illegible = 'Potentially illegible navboxMobiles',
borders = 'NavboxMobiles 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',
subgroups = {'subgroup', 'child', ''},
subpage_doc = 'doc',
subpage_sandbox = 'sandbox',
subpage_testcases = 'testcases',
tracking_no = 'no'
},
class = {
autocollapse = 'autocollapse',
collapsible = 'mw-collapsible',
collapsed = 'mw-collapsed',
-- Warning
navboxMobile = 'navboxMobile', -- WMF currently hides 'navboxMobile' from mobile,
-- so you probably shouldn't change the navboxMobile class.
navboxMobile_abovebelow = 'navboxMobile-abovebelow',
navboxMobile_group = 'navboxMobile-group',
navboxMobile_image = 'navboxMobile-image',
navboxMobile_inner = 'navboxMobile-inner',
navboxMobile_list = 'navboxMobile-list',
navboxMobile_list_with_group = 'navboxMobile-list-with-group',
navboxMobile_part = 'navboxMobile-', -- do not l10n
navboxMobile_styles = 'navboxMobile-styles',
navboxMobile_subgroup = 'navboxMobile-subgroup',
navboxMobile_title = 'navboxMobile-title', -- l10n only if you change pattern.navboxMobile_title below
navboxMobile_odd_part = 'odd', -- do not l10n
navboxMobile_even_part = 'even', -- do not l10n
nomobile = 'nomobile',
nowraplinks = 'nowraplinks',
noviewer = 'noviewer' -- used to remove images from MediaViewer
},
pattern = {
listnum = '^list(%d+)$',
class = 'class',
sandbox = '/sandbox$',
navboxMobile = 'Template:Navbox',
nowrap = '^<span class="nowrap">',
style = 'style$',
navboxMobile_title = '<th[^>]*"navboxMobile%-title"',
hlist = 'hlist',
plainlist = 'plainlist',
},
arg = {
above = 'above',
aboveclass = 'aboveclass',
abovestyle = 'abovestyle',
basestyle = 'basestyle',
bodyclass = 'bodyclass',
bodystyle = 'bodystyle',
border = 'border',
below = 'below',
belowclass = 'belowclass',
belowstyle = 'belowstyle',
evenodd = 'evenodd',
evenstyle = 'evenstyle',
group1 = 'group1',
group2 = 'group2',
group_and_num = 'group%d',
groupstyle_and_num = 'group%dstyle',
groupclass = 'groupclass',
groupstyle = 'groupstyle',
groupwidth = 'groupwidth',
innerstyle = 'innerstyle',
image = 'image',
imageclass = 'imageclass',
imageleft = 'imageleft',
imageleftstyle = 'imageleftstyle',
imagestyle = 'imagestyle',
list_and_num = 'list%d',
listclass_and_num = 'list%dclass',
liststyle_and_num = 'list%dstyle',
list1padding = 'list1padding',
listclass = 'listclass',
listpadding = 'listpadding',
liststyle = 'liststyle',
name = 'name',
navbar = 'navbar',
navboxMobileclass = 'navboxMobileclass',
nocat = 'nocat',
nowrapitems = 'nowrapitems',
oddstyle = 'oddstyle',
orphan = 'orphan',
state = 'state',
style = 'style',
templatestyles = 'templatestyles',
child_templatestyles = 'child templatestyles',
title = 'title',
titleclass = 'titleclass',
titlestyle = 'titlestyle',
tracking = 'tracking'
},
-- names of navbar arguments
navbar = {
name = 1,
fontstyle = 'fontstyle',
mini = 'mini'
}
}
}

Revision as of 22:48, 23 November 2024

Documentation for this module may be created at Module:NavboxMobile/configuration/doc

return {
    class = {
        navbox = 'navboxMobile',
        title = 'navboxMobile-title',
        group = 'navboxMobile-group',
        list = 'navboxMobile-list',
        subgroup = 'navboxMobile-subgroup',
    },
    style = {
        default_bg = '#fdfdfd',
        title_bg = '#ccf',
        group_bg = '#e6e6ff',
    }
}