Module:Message box/configuration: Difference between revisions

From Bad Buddy Wiki
m (1 revision imported)
No edit summary
 
Line 6: Line 6:


return {
return {
ambox = {
    ambox = {
types = {
        types = {
speedy = {
            speedy = {
class = 'ambox-speedy',
                class = 'ambox-speedy',
image = 'Ambox warning pn.svg'
                image = 'Ambox warning pn.svg'
},
            },
delete = {
            delete = {
class = 'ambox-delete',
                class = 'ambox-delete',
image = 'Ambox warning pn.svg'
                image = 'Ambox warning pn.svg'
},
            },
content = {
            content = {
class = 'ambox-content',
                class = 'ambox-content',
image = 'Ambox important.svg'
                image = 'Ambox important.svg'
},
            },
style = {
            style = {
class = 'ambox-style',
                class = 'ambox-style',
image = 'Edit-clear.svg'
                image = 'Edit-clear.svg'
},
            },
move = {
            move = {
class = 'ambox-move',
                class = 'ambox-move',
image = 'Merge-split-transwiki default.svg'
                image = 'Merge-split-transwiki default.svg'
},
            },
protection = {
            protection = {
class = 'ambox-protection',
                class = 'ambox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
                image = 'Semi-protection-shackle-keyhole.svg'
},
            },
notice = {
            notice = {
class = 'ambox-notice',
                class = 'ambox-notice',
image = 'Information icon4.svg'
                image = 'Information icon4.svg'
}
            },
},
 
default                    = 'notice',
            fanlore = {
allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
                class = 'ambox-fanlore',
allowSmall                  = true,
                image = 'Information icon4.svg'
smallParam                  = 'left',
            }
smallClass                  = 'mbox-small-left',
        },
substCheck                  = true,
        default                    = 'notice',
classes                    = {'metadata', 'ambox'},
        allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
imageEmptyCell              = true,
        allowSmall                  = true,
imageCheckBlank            = true,
        smallParam                  = 'left',
imageSmallSize              = '20x20px',
        smallClass                  = 'mbox-small-left',
imageCellDiv                = true,
        substCheck                  = true,
useCollapsibleTextFields    = true,
        classes                    = {'metadata', 'ambox'},
imageRightNone              = true,
        imageEmptyCell              = true,
sectionDefault              = 'article',
        imageCheckBlank            = true,
allowMainspaceCategories    = true,
        imageSmallSize              = '20x20px',
templateCategory            = 'Article message templates',
        imageCellDiv                = true,
        templateCategoryRequireName = true,
        useCollapsibleTextFields    = true,
templateErrorCategory      = 'Article message templates with missing parameters',
        imageRightNone              = true,
templateErrorParamsToCheck  = {'issue', 'fix', 'subst'},
        sectionDefault              = 'article',
removalNotice              = '<small>[[Help:Maintenance template removal|Learn how and when to remove this template message]]</small>',
        allowMainspaceCategories    = true,
templatestyles              = 'Module:Message box/ambox.css'
        templateCategory            = 'Notices using Ambox metatemplate',
},
            templateCategoryRequireName = true,
        templateErrorCategory      = 'Article message templates with missing parameters',
cmbox = {
        templateErrorParamsToCheck  = {'issue', 'fix', 'subst'},
types = {
        removalNotice              = '<small>[[Help:Maintenance template removal|Learn how and when to remove this template message]]</small>',
speedy = {
        templatestyles              = 'Module:Message box/ambox.css'
class = 'cmbox-speedy',
    },
image = 'Ambox warning pn.svg'
   
},
    cmbox = {
delete = {
        types = {
class = 'cmbox-delete',
            speedy = {
image = 'Ambox warning pn.svg'
                class = 'cmbox-speedy',
},
                image = 'Ambox warning pn.svg'
content = {
            },
class = 'cmbox-content',
            delete = {
image = 'Ambox important.svg'
                class = 'cmbox-delete',
},
                image = 'Ambox warning pn.svg'
style = {
            },
class = 'cmbox-style',
            content = {
image = 'Edit-clear.svg'
                class = 'cmbox-content',
},
                image = 'Ambox important.svg'
move = {
            },
class = 'cmbox-move',
            style = {
image = 'Merge-split-transwiki default.svg'
                class = 'cmbox-style',
},
                image = 'Edit-clear.svg'
protection = {
            },
class = 'cmbox-protection',
            move = {
image = 'Semi-protection-shackle-keyhole.svg'
                class = 'cmbox-move',
},
                image = 'Merge-split-transwiki default.svg'
notice = {
            },
class = 'cmbox-notice',
            protection = {
image = 'Information icon4.svg'
                class = 'cmbox-protection',
}
                image = 'Semi-protection-shackle-keyhole.svg'
},
            },
default              = 'notice',
            notice = {
showInvalidTypeError = true,
                class = 'cmbox-notice',
classes              = {'cmbox'},
                image = 'Information icon4.svg'
imageEmptyCell      = true,
            }
templatestyles      = 'Module:Message box/cmbox.css'
        },
},
        default              = 'notice',
        showInvalidTypeError = true,
fmbox = {
        classes              = {'cmbox'},
types = {
        imageEmptyCell      = true,
warning = {
        templatestyles      = 'Module:Message box/cmbox.css'
class = 'fmbox-warning',
    },
image = 'Ambox warning pn.svg'
   
},
    fmbox = {
editnotice = {
        types = {
class = 'fmbox-editnotice',
            warning = {
image = 'Information icon4.svg'
                class = 'fmbox-warning',
},
                image = 'Ambox warning pn.svg'
system = {
            },
class = 'fmbox-system',
            editnotice = {
image = 'Information icon4.svg'
                class = 'fmbox-editnotice',
}
                image = 'Information icon4.svg'
},
            },
default              = 'system',
            system = {
showInvalidTypeError = true,
                class = 'fmbox-system',
classes              = {'fmbox'},
                image = 'Information icon4.svg'
imageEmptyCell      = false,
            }
imageRightNone      = false,
        },
templatestyles      = 'Module:Message box/fmbox.css'
        default              = 'system',
},
        showInvalidTypeError = true,
        classes              = {'fmbox'},
imbox = {
        imageEmptyCell      = false,
types = {
        imageRightNone      = false,
speedy = {
        templatestyles      = 'Module:Message box/fmbox.css'
class = 'imbox-speedy',
    },
image = 'Ambox warning pn.svg'
   
},
    imbox = {
delete = {
        types = {
class = 'imbox-delete',
            speedy = {
image = 'Ambox warning pn.svg'
                class = 'imbox-speedy',
},
                image = 'Ambox warning pn.svg'
content = {
            },
class = 'imbox-content',
            delete = {
image = 'Ambox important.svg'
                class = 'imbox-delete',
},
                image = 'Ambox warning pn.svg'
style = {
            },
class = 'imbox-style',
            content = {
image = 'Edit-clear.svg'
                class = 'imbox-content',
},
                image = 'Ambox important.svg'
move = {
            },
class = 'imbox-move',
            style = {
image = 'Merge-split-transwiki default.svg'
                class = 'imbox-style',
},
                image = 'Edit-clear.svg'
protection = {
            },
class = 'imbox-protection',
            move = {
image = 'Semi-protection-shackle-keyhole.svg'
                class = 'imbox-move',
},
                image = 'Merge-split-transwiki default.svg'
license = {
            },
class = 'imbox-license licensetpl',
            protection = {
image = 'Imbox-license.svg'
                class = 'imbox-protection',
},
                image = 'Semi-protection-shackle-keyhole.svg'
["license-related"] = {
            },
class = 'imbox-license',
            license = {
image = 'Imbox-license.svg'
                class = 'imbox-license licensetpl',
},
                image = 'Imbox license.png' -- @todo We need an SVG version of this
featured = {
            },
class = 'imbox-featured',
            featured = {
image = 'Cscr-featured.svg',
                class = 'imbox-featured',
imageNeedsLink = true
                image = 'Cscr-featured.svg'
},
            },
notice = {
            notice = {
class = 'imbox-notice',
                class = 'imbox-notice',
image = 'Information icon4.svg'
                image = 'Information icon4.svg'
}
            }
},
        },
default              = 'notice',
        default              = 'notice',
showInvalidTypeError = true,
        showInvalidTypeError = true,
classes              = {'imbox'},
        classes              = {'imbox'},
imageEmptyCell      = true,
        imageEmptyCell      = true,
below                = true,
        below                = true,
templateCategory    = 'File message boxes',
        templateCategory    = 'File message boxes',
templatestyles      = 'Module:Message box/imbox.css'
        templatestyles      = 'Module:Message box/imbox.css'
},
    },
   
ombox = {
    ombox = {
types = {
        types = {
speedy = {
            speedy = {
class = 'ombox-speedy',
                class = 'ombox-speedy',
image = 'Ambox warning pn.svg'
                image = 'Ambox warning pn.svg'
},
            },
delete = {
            delete = {
class = 'ombox-delete',
                class = 'ombox-delete',
image = 'Ambox warning pn.svg'
                image = 'Ambox warning pn.svg'
},
            },
content = {
            content = {
class = 'ombox-content',
                class = 'ombox-content',
image = 'Ambox important.svg'
                image = 'Ambox important.svg'
},
            },
style = {
            style = {
class = 'ombox-style',
                class = 'ombox-style',
image = 'Edit-clear.svg'
                image = 'Edit-clear.svg'
},
            },
move = {
            move = {
class = 'ombox-move',
                class = 'ombox-move',
image = 'Merge-split-transwiki default.svg'
                image = 'Merge-split-transwiki default.svg'
},
            },
protection = {
            protection = {
class = 'ombox-protection',
                class = 'ombox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
                image = 'Semi-protection-shackle-keyhole.svg'
},
            },
notice = {
            notice = {
class = 'ombox-notice',
                class = 'ombox-notice',
image = 'Information icon4.svg'
                image = 'Information icon4.svg'
}
            }
},
        },
default              = 'notice',
        default              = 'notice',
showInvalidTypeError = true,
        showInvalidTypeError = true,
classes              = {'ombox'},
        classes              = {'ombox'},
allowSmall          = true,
        allowSmall          = true,
imageEmptyCell      = true,
        imageEmptyCell      = true,
imageRightNone      = true,
        imageRightNone      = true,
templatestyles      = 'Module:Message box/ombox.css'
        templatestyles      = 'Module:Message box/ombox.css'
},
    },
   
tmbox = {
    tmbox = {
types = {
        types = {
speedy = {
            speedy = {
class = 'tmbox-speedy',
                class = 'tmbox-speedy',
image = 'Ambox warning pn.svg'
                image = 'Ambox warning pn.svg'
},
            },
delete = {
            delete = {
class = 'tmbox-delete',
                class = 'tmbox-delete',
image = 'Ambox warning pn.svg'
                image = 'Ambox warning pn.svg'
},
            },
content = {
            content = {
class = 'tmbox-content',
                class = 'tmbox-content',
image = 'Ambox important.svg'
                image = 'Ambox important.svg'
},
            },
style = {
            style = {
class = 'tmbox-style',
                class = 'tmbox-style',
image = 'Edit-clear.svg'
                image = 'Edit-clear.svg'
},
            },
move = {
            move = {
class = 'tmbox-move',
                class = 'tmbox-move',
image = 'Merge-split-transwiki default.svg'
                image = 'Merge-split-transwiki default.svg'
},
            },
protection = {
            protection = {
class = 'tmbox-protection',
                class = 'tmbox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
                image = 'Semi-protection-shackle-keyhole.svg'
},
            },
notice = {
            notice = {
class = 'tmbox-notice',
                class = 'tmbox-notice',
image = 'Information icon4.svg'
                image = 'Information icon4.svg'
}
            }
},
        },
default              = 'notice',
        default              = 'notice',
showInvalidTypeError = true,
        showInvalidTypeError = true,
classes              = {'tmbox'},
        classes              = {'tmbox'},
allowSmall          = true,
        allowSmall          = true,
imageRightNone      = true,
        imageRightNone      = true,
imageEmptyCell      = true,
        imageEmptyCell      = true,
templateCategory    = 'Talk message boxes',
        templateCategory    = 'Talk message boxes',
templatestyles      = 'Module:Message box/tmbox.css'
        templatestyles      = 'Module:Message box/tmbox.css'
}
    }
}
}

Latest revision as of 13:38, 25 March 2024

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

--------------------------------------------------------------------------------
--                          Message box configuration                         --
--                                                                            --
-- This module contains configuration data for [[Module:Message box]].        --
--------------------------------------------------------------------------------

return {
    ambox = {
        types = {
            speedy = {
                class = 'ambox-speedy',
                image = 'Ambox warning pn.svg'
            },
            delete = {
                class = 'ambox-delete',
                image = 'Ambox warning pn.svg'
            },
            content = {
                class = 'ambox-content',
                image = 'Ambox important.svg'
            },
            style = {
                class = 'ambox-style',
                image = 'Edit-clear.svg'
            },
            move = {
                class = 'ambox-move',
                image = 'Merge-split-transwiki default.svg'
            },
            protection = {
                class = 'ambox-protection',
                image = 'Semi-protection-shackle-keyhole.svg'
            },
            notice = {
                class = 'ambox-notice',
                image = 'Information icon4.svg'
            },

            fanlore = {
                class = 'ambox-fanlore',
                image = 'Information icon4.svg'
            }
        },
        default                     = 'notice',
        allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
        allowSmall                  = true,
        smallParam                  = 'left',
        smallClass                  = 'mbox-small-left',
        substCheck                  = true,
        classes                     = {'metadata', 'ambox'},
        imageEmptyCell              = true,
        imageCheckBlank             = true,
        imageSmallSize              = '20x20px',
        imageCellDiv                = true,
        useCollapsibleTextFields    = true,
        imageRightNone              = true,
        sectionDefault              = 'article',
        allowMainspaceCategories    = true,
        templateCategory            = 'Notices using Ambox metatemplate',
            templateCategoryRequireName = true,
        templateErrorCategory       = 'Article message templates with missing parameters',
        templateErrorParamsToCheck  = {'issue', 'fix', 'subst'},
        removalNotice               = '<small>[[Help:Maintenance template removal|Learn how and when to remove this template message]]</small>',
        templatestyles              = 'Module:Message box/ambox.css'
    },
    
    cmbox = {
        types = {
            speedy = {
                class = 'cmbox-speedy',
                image = 'Ambox warning pn.svg'
            },
            delete = {
                class = 'cmbox-delete',
                image = 'Ambox warning pn.svg'
            },
            content = {
                class = 'cmbox-content',
                image = 'Ambox important.svg'
            },
            style = {
                class = 'cmbox-style',
                image = 'Edit-clear.svg'
            },
            move = {
                class = 'cmbox-move',
                image = 'Merge-split-transwiki default.svg'
            },
            protection = {
                class = 'cmbox-protection',
                image = 'Semi-protection-shackle-keyhole.svg'
            },
            notice = {
                class = 'cmbox-notice',
                image = 'Information icon4.svg'
            }
        },
        default              = 'notice',
        showInvalidTypeError = true,
        classes              = {'cmbox'},
        imageEmptyCell       = true,
        templatestyles       = 'Module:Message box/cmbox.css'
    },
    
    fmbox = {
        types = {
            warning = {
                class = 'fmbox-warning',
                image = 'Ambox warning pn.svg'
            },
            editnotice = {
                class = 'fmbox-editnotice',
                image = 'Information icon4.svg'
            },
            system = {
                class = 'fmbox-system',
                image = 'Information icon4.svg'
            }
        },
        default              = 'system',
        showInvalidTypeError = true,
        classes              = {'fmbox'},
        imageEmptyCell       = false,
        imageRightNone       = false,
        templatestyles       = 'Module:Message box/fmbox.css'
    },
    
    imbox = {
        types = {
            speedy = {
                class = 'imbox-speedy',
                image = 'Ambox warning pn.svg'
            },
            delete = {
                class = 'imbox-delete',
                image = 'Ambox warning pn.svg'
            },
            content = {
                class = 'imbox-content',
                image = 'Ambox important.svg'
            },
            style = {
                class = 'imbox-style',
                image = 'Edit-clear.svg'
            },
            move = {
                class = 'imbox-move',
                image = 'Merge-split-transwiki default.svg'
            },
            protection = {
                class = 'imbox-protection',
                image = 'Semi-protection-shackle-keyhole.svg'
            },
            license = {
                class = 'imbox-license licensetpl',
                image = 'Imbox license.png' -- @todo We need an SVG version of this
            },
            featured = {
                class = 'imbox-featured',
                image = 'Cscr-featured.svg'
            },
            notice = {
                class = 'imbox-notice',
                image = 'Information icon4.svg'
            }
        },
        default              = 'notice',
        showInvalidTypeError = true,
        classes              = {'imbox'},
        imageEmptyCell       = true,
        below                = true,
        templateCategory     = 'File message boxes',
        templatestyles       = 'Module:Message box/imbox.css'
    },
    
    ombox = {
        types = {
            speedy = {
                class = 'ombox-speedy',
                image = 'Ambox warning pn.svg'
            },
            delete = {
                class = 'ombox-delete',
                image = 'Ambox warning pn.svg'
            },
            content = {
                class = 'ombox-content',
                image = 'Ambox important.svg'
            },
            style = {
                class = 'ombox-style',
                image = 'Edit-clear.svg'
            },
            move = {
                class = 'ombox-move',
                image = 'Merge-split-transwiki default.svg'
            },
            protection = {
                class = 'ombox-protection',
                image = 'Semi-protection-shackle-keyhole.svg'
            },
            notice = {
                class = 'ombox-notice',
                image = 'Information icon4.svg'
            }
        },
        default              = 'notice',
        showInvalidTypeError = true,
        classes              = {'ombox'},
        allowSmall           = true,
        imageEmptyCell       = true,
        imageRightNone       = true,
        templatestyles       = 'Module:Message box/ombox.css'
    },
    
    tmbox = {
        types = {
            speedy = {
                class = 'tmbox-speedy',
                image = 'Ambox warning pn.svg'
            },
            delete = {
                class = 'tmbox-delete',
                image = 'Ambox warning pn.svg'
            },
            content = {
                class = 'tmbox-content',
                image = 'Ambox important.svg'
            },
            style = {
                class = 'tmbox-style',
                image = 'Edit-clear.svg'
            },
            move = {
                class = 'tmbox-move',
                image = 'Merge-split-transwiki default.svg'
            },
            protection = {
                class = 'tmbox-protection',
                image = 'Semi-protection-shackle-keyhole.svg'
            },
            notice = {
                class = 'tmbox-notice',
                image = 'Information icon4.svg'
            }
        },
        default              = 'notice',
        showInvalidTypeError = true,
        classes              = {'tmbox'},
        allowSmall           = true,
        imageRightNone       = true,
        imageEmptyCell       = true,
        templateCategory     = 'Talk message boxes',
        templatestyles       = 'Module:Message box/tmbox.css'
    }
}