Module:NavboxMobile/configuration: Difference between revisions

From Ikwipedia
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
return {
return {
aria_label = 'NavboxMobile',
    aria_label = 'Navbox Mobile',
nowrap_item = '%s<span class="nowrap">%s</span>',
    nowrap_item = '%s<span class="nowrap">%s</span>',
templatestyles = mw.getCurrentFrame():extensionTag{
    templatestyles = mw.getCurrentFrame():extensionTag{
name = 'templatestyles', args = { src = 'Module:NavboxModule/styles.css' }
        name = 'templatestyles', args = { src = 'Module:NavboxMobile/styles.css' }
},
    },
hlist_templatestyles = 'Hlist/styles.css',
    hlist_templatestyles = 'Module:Hlist/styles.css',
plainlist_templatestyles = 'Plainlist/styles.css',
    plainlist_templatestyles = 'Module:Plainlist/styles.css',
-- do not localize marker table
    marker = {
marker = {
        oddeven = '\127_ODDEVEN_\127',
oddeven = '\127_ODDEVEN_\127',
        restart = '\127_ODDEVEN0_\127',
restart = '\127_ODDEVEN0_\127',
        regex = '\127_ODDEVEN(%d?)_\127'
regex = '\127_ODDEVEN(%d?)_\127'
    },
},
    category = {
category = {
        orphan = '[[Category:Navbox orphans]]',
orphan = '[[Category:Navbox orphans]]',
        horizontal_lists = 'Navigational boxes without horizontal lists',
horizontal_lists = 'Navigational boxes without horizontal lists',
        background_colors = 'Navboxes using background colours',
background_colors = 'Navboxes using background colours',
        illegible = 'Potentially illegible navboxes',
illegible = 'Potentially illegible navboxMobilees',
        borders = 'Navboxes using borders',
borders = 'NavboxMobilees using borders',
    },
},
    keyword = {
keyword = {
        border_subgroup = 'subgroup',
border_subgroup = 'subgroup',
        border_child = 'child',
border_child = 'child',
        border_none = 'none',
border_none = 'none',
        evenodd_swap = 'swap',
evenodd_swap = 'swap',
        navbar_off = 'off',
navbar_off = 'off',
        navbar_plain = 'plain',
navbar_plain = 'plain',
        nocat_false = 'false',
nocat_false = 'false',
        nowrapitems_yes = 'yes',
nowrapitems_yes = 'yes',
        orphan_yes = 'yes',
orphan_yes = 'yes',
        state_collapsed = 'collapsed',
state_collapsed = 'collapsed',
        state_off = 'off',
state_off = 'off',
        state_plain = 'plain',
state_plain = 'plain',
        subgroups = {'subgroup', 'child', ''},
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'
    },
},
    class = {
class = {
        autocollapse = 'autocollapse',
autocollapse = 'autocollapse',
        collapsible = 'mw-collapsible',
collapsible = 'mw-collapsible',
        collapsed = 'mw-collapsed',
collapsed = 'mw-collapsed',
        navbox = 'navboxMobile',
-- Warning
        navbox_abovebelow = 'navboxMobile-abovebelow',
navboxMobile = 'navboxMobile', -- WMF currently hides 'navboxMobile' from mobile,
        navbox_group = 'navboxMobile-group',
-- so you probably shouldn't change the navboxMobile class.
        navbox_image = 'navboxMobile-image',
navboxMobile_abovebelow = 'navboxMobile-abovebelow',
        navbox_inner = 'navboxMobile-inner',
navboxMobile_group = 'navboxMobile-group',
        navbox_list = 'navboxMobile-list',
navboxMobile_image = 'navboxMobile-image',
        navbox_list_with_group = 'navboxMobile-list-with-group',
navboxMobile_inner = 'navboxMobile-inner',
        navbox_part = 'navboxMobile-',
navboxMobile_list = 'navboxMobile-list',
        navbox_styles = 'navboxMobile-styles',
navboxMobile_list_with_group = 'navboxMobile-list-with-group',
        navbox_subgroup = 'navboxMobile-subgroup',
navboxMobile_part = 'navboxMobile-', -- do not l10n
        navbox_title = 'navboxMobile-title',
navboxMobile_styles = 'navboxMobile-styles',
        navbox_odd_part = 'odd',
navboxMobile_subgroup = 'navboxMobile-subgroup',
        navbox_even_part = 'even',
navboxMobile_title = 'navboxMobile-title', -- l10n only if you change pattern.navboxMobile_title below
        nomobile = 'nomobile',
navboxMobile_odd_part = 'odd', -- do not l10n
        nowraplinks = 'nowraplinks',
navboxMobile_even_part = 'even', -- do not l10n
        noviewer = 'noviewer'
nomobile = 'nomobile',
    },
nowraplinks = 'nowraplinks',
    pattern = {
noviewer = 'noviewer' -- used to remove images from MediaViewer
        listnum = '^list(%d+)$',
},
        class = 'class',
pattern = {
        sandbox = '/sandbox$',
listnum = '^list(%d+)$',
        navbox = 'Template:Navbox',
class = 'class',
        nowrap = '^<span class="nowrap">',
sandbox = '/sandbox$',
        style = 'style$',
navboxMobile = 'Template:Navbox',
        navbox_title = '<th[^>]*"navboxMobile%-title"',
nowrap = '^<span class="nowrap">',
        hlist = 'hlist',
style = 'style$',
        plainlist = 'plainlist',
navboxMobile_title = '<th[^>]*"navboxMobile%-title"',
    },
hlist = 'hlist',
    arg = {
plainlist = 'plainlist',
        above = 'above',
},
        aboveclass = 'aboveclass',
arg = {
        abovestyle = 'abovestyle',
above = 'above',
        basestyle = 'basestyle',
aboveclass = 'aboveclass',
        bodyclass = 'bodyclass',
abovestyle = 'abovestyle',
        bodystyle = 'bodystyle',
basestyle = 'basestyle',
        border = 'border',
bodyclass = 'bodyclass',
        below = 'below',
bodystyle = 'bodystyle',
        belowclass = 'belowclass',
border = 'border',
        belowstyle = 'belowstyle',
below = 'below',
        evenodd = 'evenodd',
belowclass = 'belowclass',
        evenstyle = 'evenstyle',
belowstyle = 'belowstyle',
        group1 = 'group1',
evenodd = 'evenodd',
        group2 = 'group2',
evenstyle = 'evenstyle',
        group_and_num = 'group%d',
group1 = 'group1',
        groupstyle_and_num = 'group%dstyle',
group2 = 'group2',
        groupclass = 'groupclass',
group_and_num = 'group%d',
        groupstyle = 'groupstyle',
groupstyle_and_num = 'group%dstyle',
        groupwidth = 'groupwidth',
groupclass = 'groupclass',
        innerstyle = 'innerstyle',
groupstyle = 'groupstyle',
        image = 'image',
groupwidth = 'groupwidth',
        imageclass = 'imageclass',
innerstyle = 'innerstyle',
        imageleft = 'imageleft',
image = 'image',
        imageleftstyle = 'imageleftstyle',
imageclass = 'imageclass',
        imagestyle = 'imagestyle',
imageleft = 'imageleft',
        list_and_num = 'list%d',
imageleftstyle = 'imageleftstyle',
        listclass_and_num = 'list%dclass',
imagestyle = 'imagestyle',
        liststyle_and_num = 'list%dstyle',
list_and_num = 'list%d',
        list1padding = 'list1padding',
listclass_and_num = 'list%dclass',
        listclass = 'listclass',
liststyle_and_num = 'list%dstyle',
        listpadding = 'listpadding',
list1padding = 'list1padding',
        liststyle = 'liststyle',
listclass = 'listclass',
        name = 'name',
listpadding = 'listpadding',
        navbar = 'navbar',
liststyle = 'liststyle',
        navboxclass = 'navboxclass',
name = 'name',
        nocat = 'nocat',
navbar = 'navbar',
        nowrapitems = 'nowrapitems',
navboxMobileclass = 'navboxMobileclass',
        oddstyle = 'oddstyle',
nocat = 'nocat',
        orphan = 'orphan',
nowrapitems = 'nowrapitems',
        state = 'state',
oddstyle = 'oddstyle',
        style = 'style',
orphan = 'orphan',
        templatestyles = 'templatestyles',
state = 'state',
        child_templatestyles = 'child templatestyles',
style = 'style',
        title = 'title',
templatestyles = 'templatestyles',
        titleclass = 'titleclass',
child_templatestyles = 'child templatestyles',
        titlestyle = 'titlestyle',
title = 'title',
        tracking = 'tracking'
titleclass = 'titleclass',
    },
titlestyle = 'titlestyle',
    navbar = {
tracking = 'tracking'
        name = 1,
},
        fontstyle = 'fontstyle',
-- names of navbar arguments
        mini = 'mini'
navbar = {
    }
name = 1,
fontstyle = 'fontstyle',
mini = 'mini'
}
}
}

Latest revision as of 04:44, 24 November 2024

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

return {
    aria_label = 'Navbox Mobile',
    nowrap_item = '%s<span class="nowrap">%s</span>',
    templatestyles = mw.getCurrentFrame():extensionTag{
        name = 'templatestyles', args = { src = 'Module:NavboxMobile/styles.css' }
    },
    hlist_templatestyles = 'Module:Hlist/styles.css',
    plainlist_templatestyles = 'Module:Plainlist/styles.css',
    marker = {
        oddeven = '\127_ODDEVEN_\127',
        restart = '\127_ODDEVEN0_\127',
        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 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',
        subgroups = {'subgroup', 'child', ''},
        subpage_doc = 'doc',
        subpage_sandbox = 'sandbox',
        subpage_testcases = 'testcases',
        tracking_no = 'no'
    },
    class = {
        autocollapse = 'autocollapse',
        collapsible = 'mw-collapsible',
        collapsed = 'mw-collapsed',
        navbox = 'navboxMobile',
        navbox_abovebelow = 'navboxMobile-abovebelow',
        navbox_group = 'navboxMobile-group',
        navbox_image = 'navboxMobile-image',
        navbox_inner = 'navboxMobile-inner',
        navbox_list = 'navboxMobile-list',
        navbox_list_with_group = 'navboxMobile-list-with-group',
        navbox_part = 'navboxMobile-',
        navbox_styles = 'navboxMobile-styles',
        navbox_subgroup = 'navboxMobile-subgroup',
        navbox_title = 'navboxMobile-title',
        navbox_odd_part = 'odd',
        navbox_even_part = 'even',
        nomobile = 'nomobile',
        nowraplinks = 'nowraplinks',
        noviewer = 'noviewer'
    },
    pattern = {
        listnum = '^list(%d+)$',
        class = 'class',
        sandbox = '/sandbox$',
        navbox = 'Template:Navbox',
        nowrap = '^<span class="nowrap">',
        style = 'style$',
        navbox_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',
        navboxclass = 'navboxclass',
        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'
    },
    navbar = {
        name = 1,
        fontstyle = 'fontstyle',
        mini = 'mini'
    }
}