Module:Navbar/configuration: Difference between revisions

    From Nonbinary Wiki
    (hmm)
     
    (3 intermediate revisions by one other user not shown)
    Line 4: Line 4:
    ['title_namespace'] = 'Template', -- namespace to default to for title
    ['title_namespace'] = 'Template', -- namespace to default to for title
    ['invalid_title'] = 'Invalid title ',
    ['invalid_title'] = 'Invalid title ',
    ['classes'] = {
    ['classes'] = { -- set a line to nil if you don't want it
    -- translate or set a line to nil if you don't want it
    ['navbar'] = 'navbar',
    ['navbar'] = 'navbar',
    ['plainlinks'] = 'plainlinks', -- plainlinks
    ['plainlinks'] = 'plainlinks', -- plainlinks
    Line 18: Line 17:
    ['collapsible_title_mini'] = 'navbar-ct-mini',
    ['collapsible_title_mini'] = 'navbar-ct-mini',
    ['collapsible_title_full'] = 'navbar-ct-full'
    ['collapsible_title_full'] = 'navbar-ct-full'
    },
    link_descriptions = {
    -- if you add an option to this, don't forget to update show and
    -- link_descriptions_links
    view = {
    ['default_enabled'] = true,
    ['mini'] = 'v',
    ['full'] = 'view',
    ['html_title'] = 'View this template',
    ['url'] = false
    },
    talk = {
    ['default_enabled'] = true,
    ['mini'] = 't',
    ['full'] = 'talk',
    ['html_title'] = 'Discuss this template',
    ['url'] = false
    },
    edit = {
    ['default_enabled'] = true,
    ['mini'] = 'e',
    ['full'] = 'edit',
    ['html_title'] = 'Edit this template',
    ['url'] = true
    },
    hist = {
    ['default_enabled'] = false,
    ['mini'] = 'h',
    ['full'] = 'hist',
    ['html_title'] = 'History of this template',
    ['url'] = true
    },
    move = {
    ['default_enabled'] = false,
    ['mini'] = 'm',
    ['full'] = 'move',
    ['html_title'] = 'Move this template',
    ['url'] = true
    },
    watch = {
    ['default_enabled'] = false,
    ['mini'] = 'w',
    ['full'] = 'watch',
    ['html_title'] = 'Watch this template',
    ['url'] = true
    }
    }
    }
    }
    }


    return configuration
    return configuration

    Latest revision as of 11:42, 21 May 2021

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

    local configuration = {
    	['templatestyles'] = 'Module:Navbar/styles.css',
    	['box_text'] = 'This box: ',			-- default text box when not plain or mini
    	['title_namespace'] = 'Template',		-- namespace to default to for title
    	['invalid_title'] = 'Invalid title ',
    	['classes'] = { -- set a line to nil if you don't want it
    		['navbar'] = 'navbar',
    		['plainlinks'] = 'plainlinks', -- plainlinks
    		['horizontal_list'] = 'hlist', -- horizontal list class
    		['mini'] = 'navbar-mini', -- class indicating small links in the navbar
    		['this_box'] = 'navbar-boxtext',
    		['brackets'] = 'navbar-brackets',
    		-- 'collapsible' is the key for a class to indicate the navbar is
    		-- setting up the collapsible element in addition to the normal
    		-- navbar.
    		['collapsible'] = 'navbar-collapse',
    		['collapsible_title_mini'] = 'navbar-ct-mini',
    		['collapsible_title_full'] = 'navbar-ct-full'
    	}
    }
    
    return configuration