Modul:Message box/configuration: razlika između inačica
Prijeđi na navigaciju
Prijeđi na pretraživanje
Stvorena nova stranica sa sadržajem: »-------------------------------------------------------------------------------- -- Message box configuration...«. |
Nema sažetka uređivanja |
||
| Nisu prikazane 2 međuinačice | |||
| Redak 1: | Redak 1: | ||
local cfg = {} | |||
return { | local function basicBox(class, image) | ||
return { | |||
types = { | |||
warning = { class = class .. "-warning", image = image }, | |||
info = { class = class .. "-info", image = image }, | |||
error = { class = class .. "-error", image = image }, | |||
}, | |||
default = "info", | |||
allowBlankParams = {}, | |||
classes = {}, | |||
allowSmall = true, | |||
smallParam = "small", | |||
smallClass = class .. "-small", | |||
imageCellDiv = true, | |||
imageCheckBlank = true, | |||
imageRightNone = true, | |||
imageEmptyCell = true, | |||
useCollapsibleTextFields = false, | |||
sectionDefault = "page", | |||
removalNotice = nil, | |||
templateCategory = nil, | |||
templateCategoryRequireName = false, | |||
templateErrorCategory = nil, | |||
templateErrorParamsToCheck = {}, | |||
allowMainspaceCategories = false, | |||
} | |||
end | |||
cfg.ambox = basicBox("ambox", "Ambox info blue.svg") | |||
cfg.imbox = basicBox("imbox", "Ambox info blue.svg") | |||
cfg.cmbox = basicBox("cmbox", "Ambox info blue.svg") | |||
cfg.tmbox = basicBox("tmbox", "Ambox info blue.svg") | |||
cfg.ombox = basicBox("ombox", "Ambox info blue.svg") | |||
return cfg | |||
Posljednja izmjena od 27. lipanj 2026. u 11:24
Dokumentacija modula
Ovaj se predložak koristi na velikom broju stranica.
| This modul is used in system messages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid large-scale disruption, any changes should first be tested in this modul's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this modul. Please discuss any changes on the talk page before implementing them. |
| This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
local cfg = {}
local function basicBox(class, image)
return {
types = {
warning = { class = class .. "-warning", image = image },
info = { class = class .. "-info", image = image },
error = { class = class .. "-error", image = image },
},
default = "info",
allowBlankParams = {},
classes = {},
allowSmall = true,
smallParam = "small",
smallClass = class .. "-small",
imageCellDiv = true,
imageCheckBlank = true,
imageRightNone = true,
imageEmptyCell = true,
useCollapsibleTextFields = false,
sectionDefault = "page",
removalNotice = nil,
templateCategory = nil,
templateCategoryRequireName = false,
templateErrorCategory = nil,
templateErrorParamsToCheck = {},
allowMainspaceCategories = false,
}
end
cfg.ambox = basicBox("ambox", "Ambox info blue.svg")
cfg.imbox = basicBox("imbox", "Ambox info blue.svg")
cfg.cmbox = basicBox("cmbox", "Ambox info blue.svg")
cfg.tmbox = basicBox("tmbox", "Ambox info blue.svg")
cfg.ombox = basicBox("ombox", "Ambox info blue.svg")
return cfg