×
Create a new article
Write your page title here:
We currently have 3,602 articles on DC Multiverse Wiki. Type your article name above or create one of the articles listed here!



    DC Multiverse Wiki

    Module:Namespace detect/config: Difference between revisions

    Content added Content deleted
    imported>MusikAnimal
    m (1 revision imported)
    m (1 revision imported)
    Line 1: Line 1:
    -- This Module is used for making templates based in the Lua language.
    --------------------------------------------------------------------------------
    -- See more details about Lua in [[Help:Lua]].
    -- Namespace detect configuration data --
    -- The Fandom Developer's Wiki hosts Global Lua Modules that can be imported and locally overridden.
    -- --
    -- The next line imports from the [[w:c:dev:Global Lua Modules]].
    -- This module stores configuration data for Module:Namespace detect. Here --
    local nsConfiguration = require('Dev:Namespace_detect/config')
    -- you can localise the module to your wiki's language. --
    -- See more details about this module at [[w:c:dev:Global_Lua_Modules/Namespace_detect]]
    -- --
    -- To activate a configuration item, you need to uncomment it. This means --
    -- The imported Module is overwritten locally to include default configuration.
    -- that you need to remove the text "-- " at the start of the line. --
    -- For a more flexible experience, delete the page import
    --------------------------------------------------------------------------------
    -- and paste (and modify as you like) its contents into this page
    -- https://dev.fandom.com/wiki/Module:Namespace_detect/config


    -- The last line produces the output for the template
    local cfg = {} -- Don't edit this line.
    return nsConfiguration

    --------------------------------------------------------------------------------
    -- Parameter names --
    -- These configuration items specify custom parameter names. Values added --
    -- here will work in addition to the default English parameter names. --
    -- To add one extra name, you can use this format: --
    -- --
    -- cfg.foo = 'parameter name' --
    -- --
    -- To add multiple names, you can use this format: --
    -- --
    -- cfg.foo = {'parameter name 1', 'parameter name 2', 'parameter name 3'} --
    --------------------------------------------------------------------------------

    ---- This parameter displays content for the main namespace:
    -- cfg.main = 'main'

    ---- This parameter displays in talk namespaces:
    -- cfg.talk = 'talk'

    ---- This parameter displays content for "other" namespaces (namespaces for which
    ---- parameters have not been specified):
    -- cfg.other = 'other'

    ---- This parameter makes talk pages behave as though they are the corresponding
    ---- subject namespace. Note that this parameter is used with [[Module:Yesno]].
    ---- Edit that module to change the default values of "yes", "no", etc.
    -- cfg.subjectns = 'subjectns'

    ---- This parameter sets a demonstration namespace:
    -- cfg.demospace = 'demospace'

    ---- This parameter sets a specific page to compare:
    cfg.demopage = 'page'

    --------------------------------------------------------------------------------
    -- Table configuration --
    -- These configuration items allow customisation of the "table" function, --
    -- used to generate a table of possible parameters in the module --
    -- documentation. --
    --------------------------------------------------------------------------------

    ---- The header for the namespace column in the wikitable containing the list of
    ---- possible subject-space parameters.
    -- cfg.wikitableNamespaceHeader = 'Namespace'

    ---- The header for the wikitable containing the list of possible subject-space
    ---- parameters.
    -- cfg.wikitableAliasesHeader = 'Aliases'

    --------------------------------------------------------------------------------
    -- End of configuration data --
    --------------------------------------------------------------------------------

    return cfg -- Don't edit this line.

    Revision as of 22:50, 26 June 2020


    -- This Module is used for making templates based in the Lua language.
    -- See more details about Lua in [[Help:Lua]].
    -- The Fandom Developer's Wiki hosts Global Lua Modules that can be imported and locally overridden.
    -- The next line imports from the [[w:c:dev:Global Lua Modules]].
    local nsConfiguration = require('Dev:Namespace_detect/config')
    -- See more details about this module at [[w:c:dev:Global_Lua_Modules/Namespace_detect]]
     
    -- The imported Module is overwritten locally to include default configuration.
    -- For a more flexible experience, delete the page import 
    -- and paste (and modify as you like) its contents into this page
    -- https://dev.fandom.com/wiki/Module:Namespace_detect/config
    
    -- The last line produces the output for the template
    return nsConfiguration
    
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.

    Recent changes

  • IC228 • 4 days ago
  • IC228 • 4 days ago
  • IC228 • 5 days ago
  • IC228 • 5 days ago
  • Welcome to the DC Multiverse Wiki


    Cookies help us deliver our services. By using our services, you agree to our use of cookies.