Diferencia entre revisiones de «Módulo:Message box/configuration»

De Familia Sanchez Arjona
Saltar a: navegación, buscar
m (23 revisiones importadas)
(Created page with "local ambox = { types = { speedy = { class = 'ambox-speedy', image = 'Ambox speedy deletion.png' }, delete = { class = 'ambox-delete', image = 'Ambox deleti...")
(No se muestran 19 ediciones intermedias de 10 usuarios)
Línea 1: Línea 1:
--------------------------------------------------------------------------------
+
local ambox = {
--                          Message box configuration                        --
+
types = {
--                                                                            --
+
speedy = {
-- This module contains configuration data for [[Module:Message box]].        --
+
class = 'ambox-speedy',
--------------------------------------------------------------------------------
+
image = 'Ambox speedy deletion.png'
 
+
},
return {
+
delete = {
ambox = {
+
class = 'ambox-delete',
types = {
+
image = 'Ambox deletion.png'
speedy = {
+
},
class = 'ambox-speedy',
+
content = {
image = 'Ambox warning pn.svg'
+
class = 'ambox-content',
},
+
image = 'Ambox content.png'
delete = {
+
},
class = 'ambox-delete',
+
style = {
image = 'Ambox warning pn.svg'
+
class = 'ambox-style',
},
+
image = 'Edit-clear.svg'
content = {
+
},
class = 'ambox-content',
+
move = {
image = 'Ambox important.svg'
+
class = 'ambox-move',
},
+
image = 'Ambox move.png'
style = {
+
},
class = 'ambox-style',
+
protection = {
image = 'Edit-clear.svg'
+
class = 'ambox-protection',
},
+
image = 'Ambox protection.png'
move = {
 
class = 'ambox-move',
 
image = 'Merge-split-transwiki default.svg'
 
},
 
protection = {
 
class = 'ambox-protection',
 
image = 'Padlock-silver-medium.svg'
 
},
 
notice = {
 
class = 'ambox-notice',
 
image = 'Information icon4.svg'
 
}
 
 
},
 
},
default                    = 'notice',
+
notice = {
allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
+
class = 'ambox-notice',
allowSmall                  = true,
+
image = 'Ambox notice.png'
smallParam                  = 'left',
+
}
smallClass                  = 'mbox-small-left',
 
substCheck                  = true,
 
classes                    = {'metadata', 'plainlinks', 'ambox'},
 
imageEmptyCell              = true,
 
imageCheckBlank            = true,
 
imageSmallSize              = '20x20px',
 
imageCellDiv                = true,
 
useCollapsibleTextFields    = true,
 
imageRightNone              = true,
 
sectionDefault              = 'article',
 
allowMainspaceCategories    = true,
 
templateCategory            = 'Article message templates',
 
        templateCategoryRequireName = true,
 
templateErrorCategory      = 'Article message templates with missing parameters',
 
templateErrorParamsToCheck  = {'issue', 'fix', 'subst'},
 
removalNotice              = '[[Help:Maintenance template removal|Learn how and when to remove this template message]]'
 
 
},
 
},
+
default                    = 'notice',
cmbox = {
+
allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
types = {
+
allowSmall                  = true,
speedy = {
+
smallParam                  = 'left',
class = 'cmbox-speedy',
+
smallClass                  = 'mbox-small-left',
image = 'Ambox warning pn.svg'
+
substCheck                  = true,
},
+
classes                    = {'metadata', 'plainlinks', 'ambox'},
delete = {
+
imageEmptyCell              = true,
class = 'cmbox-delete',
+
imageCheckBlank            = true,
image = 'Ambox warning pn.svg'
+
imageSmallSize              = '20x20px',
},
+
imageCellDiv                = true,
content = {
+
useCollapsibleTextFields    = true,
class = 'cmbox-content',
+
imageRightNone              = true,
image = 'Ambox important.svg'
+
sectionDefault              = 'article',
},
+
allowMainspaceCategories    = true,
style = {
+
templateCategory            = 'Article message templates',
class = 'cmbox-style',
+
        templateCategoryRequireName = true,
image = 'Edit-clear.svg'
+
templateErrorCategory      = 'Article message templates with missing parameters',
},
+
templateErrorParamsToCheck  = {'issue', 'fix', 'subst'}
move = {
+
}
class = 'cmbox-move',
+
image = 'Merge-split-transwiki default.svg'
+
local cmbox = {
},
+
types = {
protection = {
+
speedy = {
class = 'cmbox-protection',
+
class = 'cmbox-speedy',
image = 'Padlock-silver-medium.svg'
+
image = 'Cmbox deletion.png'
},
+
},
notice = {
+
delete = {
class = 'cmbox-notice',
+
class = 'cmbox-delete',
image = 'Information icon4.svg'
+
image = 'Cmbox deletion.png'
}
+
},
 +
content = {
 +
class = 'cmbox-content',
 +
image = 'Cmbox content.png'
 +
},
 +
style = {
 +
class = 'cmbox-style',
 +
image = 'Edit-clear.svg'
 +
},
 +
move = {
 +
class = 'cmbox-move',
 +
image = 'Cmbox move.png'
 +
},
 +
protection = {
 +
class = 'cmbox-protection',
 +
image = 'Cmbox protection.png'
 
},
 
},
default              = 'notice',
+
notice = {
showInvalidTypeError = true,
+
class = 'cmbox-notice',
classes              = {'plainlinks', 'cmbox'},
+
image = 'Cmbox notice.png'
imageEmptyCell      = true
+
}
 
},
 
},
+
default              = 'notice',
fmbox = {
+
showInvalidTypeError = true,
types = {
+
classes              = {'plainlinks', 'cmbox'},
warning = {
+
imageEmptyCell      = true
class = 'fmbox-warning',
+
}
image = 'Ambox warning pn.svg'
+
},
+
local fmbox = {
editnotice = {
+
types = {
class = 'fmbox-editnotice',
+
warning = {
image = 'Information icon4.svg'
+
class = 'fmbox-warning',
},
+
image = 'Cmbox deletion.png'
system = {
+
},
class = 'fmbox-system',
+
editnotice = {
image = 'Information icon4.svg'
+
class = 'fmbox-editnotice',
}
+
image = 'Imbox notice.png'
 
},
 
},
default              = 'system',
+
system = {
showInvalidTypeError = true,
+
class = 'fmbox-system',
classes              = {'plainlinks', 'fmbox'},
+
image = 'Imbox notice.png'
imageEmptyCell      = false,
+
}
imageRightNone      = false
 
 
},
 
},
+
default              = 'system',
imbox = {
+
showInvalidTypeError = true,
types = {
+
allowId                = true,
speedy = {
+
classes              = {'plainlinks', 'fmbox'},
class = 'imbox-speedy',
+
imageEmptyCell      = false,
image = 'Ambox warning pn.svg'
+
imageRightNone      = false
},
+
}
delete = {
+
class = 'imbox-delete',
+
local imbox = {
image = 'Ambox warning pn.svg'
+
types = {
},
+
speedy = {
content = {
+
class = 'imbox-speedy',
class = 'imbox-content',
+
image = 'Imbox speedy deletion.png'
image = 'Ambox important.svg'
+
},
},
+
delete = {
style = {
+
class = 'imbox-delete',
class = 'imbox-style',
+
image = 'Imbox deletion.png'
image = 'Edit-clear.svg'
+
},
},
+
content = {
move = {
+
class = 'imbox-content',
class = 'imbox-move',
+
image = 'Imbox content.png'
image = 'Merge-split-transwiki default.svg'
+
},
},
+
style = {
protection = {
+
class = 'imbox-style',
class = 'imbox-protection',
+
image = 'Edit-clear.svg'
image = 'Padlock-silver-medium.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',
+
move = {
showInvalidTypeError = true,
+
class = 'imbox-move',
classes              = {'imbox'},
+
image = 'Imbox move.png'
usePlainlinksParam  = true,
+
},
imageEmptyCell      = true,
+
protection = {
below                = true,
+
class = 'imbox-protection',
templateCategory    = 'File message boxes'
+
image = 'Imbox protection.png'
 +
},
 +
license = {
 +
class = 'imbox-license',
 +
image = 'Imbox license.png'
 +
},
 +
featured = {
 +
class = 'imbox-featured',
 +
image = 'Imbox featured.png'
 +
},
 +
notice = {
 +
class = 'imbox-notice',
 +
image = 'Imbox notice.png'
 +
}
 
},
 
},
+
default              = 'notice',
ombox = {
+
showInvalidTypeError = true,
types = {
+
classes              = {'imbox'},
speedy = {
+
usePlainlinksParam  = true,
class = 'ombox-speedy',
+
imageEmptyCell      = true,
image = 'Ambox warning pn.svg'
+
below                = true,
},
+
templateCategory    = 'File message boxes'
delete = {
+
}
class = 'ombox-delete',
+
image = 'Ambox warning pn.svg'
+
local ombox = {
},
+
types = {
content = {
+
speedy = {
class = 'ombox-content',
+
class = 'ombox-speedy',
image = 'Ambox important.svg'
+
image = 'Imbox speedy deletion.png'
},
+
},
style = {
+
delete = {
class = 'ombox-style',
+
class = 'ombox-delete',
image = 'Edit-clear.svg'
+
image = 'Imbox deletion.png'
},
+
},
move = {
+
content = {
class = 'ombox-move',
+
class = 'ombox-content',
image = 'Merge-split-transwiki default.svg'
+
image = 'Imbox content.png'
},
+
},
protection = {
+
style = {
class = 'ombox-protection',
+
class = 'ombox-style',
image = 'Padlock-silver-medium.svg'
+
image = 'Edit-clear.svg'
},
+
},
notice = {
+
move = {
class = 'ombox-notice',
+
class = 'ombox-move',
image = 'Information icon4.svg'
+
image = 'Imbox move.png'
}
 
 
},
 
},
default              = 'notice',
+
protection = {
showInvalidTypeError = true,
+
class = 'ombox-protection',
classes              = {'plainlinks', 'ombox'},
+
image = 'Imbox protection.png'
allowSmall          = true,
+
},
imageEmptyCell      = true,
+
notice = {
imageRightNone      = true
+
class = 'ombox-notice',
 +
image = 'Imbox notice.png'
 +
}
 
},
 
},
+
default              = 'notice',
tmbox = {
+
showInvalidTypeError = true,
types = {
+
classes              = {'plainlinks', 'ombox'},
speedy = {
+
allowSmall          = true,
class = 'tmbox-speedy',
+
imageEmptyCell      = true,
image = 'Ambox warning pn.svg'
+
imageRightNone      = true
},
+
}
delete = {
+
class = 'tmbox-delete',
+
local tmbox = {
image = 'Ambox warning pn.svg'
+
types = {
},
+
speedy = {
content = {
+
class = 'tmbox-speedy',
class = 'tmbox-content',
+
image = 'Imbox speedy deletion.png'
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 = 'Padlock-silver-medium.svg'
 
},
 
notice = {
 
class = 'tmbox-notice',
 
image = 'Information icon4.svg'
 
}
 
 
},
 
},
default              = 'notice',
+
delete = {
showInvalidTypeError = true,
+
class = 'tmbox-delete',
classes              = {'plainlinks', 'tmbox'},
+
image = 'Imbox deletion.png'
allowSmall          = true,
+
},
imageRightNone      = true,
+
content = {
imageEmptyCell      = true,
+
class = 'tmbox-content',
imageEmptyCellStyle  = true,
+
image = 'Imbox content.png'
templateCategory    = 'Talk message boxes'
+
},
}
+
style = {
 +
class = 'tmbox-style',
 +
image = 'Edit-clear.svg '
 +
},
 +
move = {
 +
class = 'tmbox-move',
 +
image = 'Imbox move.png'
 +
},
 +
protection = {
 +
class = 'tmbox-protection',
 +
image = 'Imbox protection.png'
 +
},
 +
notice = {
 +
class = 'tmbox-notice',
 +
image = 'Imbox notice.png'
 +
}
 +
},
 +
default              = 'notice',
 +
showInvalidTypeError = true,
 +
classes              = {'plainlinks', 'tmbox'},
 +
allowId              = true,
 +
allowSmall          = true,
 +
imageRightNone      = true,
 +
imageEmptyCell      = true,
 +
imageEmptyCellStyle  = true,
 +
templateCategory    = 'Talk message boxes'
 +
}
 +
 +
return {
 +
ambox = ambox,
 +
cmbox = cmbox,
 +
fmbox = fmbox,
 +
imbox = imbox,
 +
ombox = ombox,
 +
tmbox = tmbox
 
}
 
}

Revisión del 14:54 2 feb 2014

La documentación para este módulo puede ser creada en Módulo:Message box/configuration/doc

local ambox = {
	types = {
		speedy = {
			class = 'ambox-speedy',
			image = 'Ambox speedy deletion.png'
		},
		delete = {
			class = 'ambox-delete',
			image = 'Ambox deletion.png'
		},
		content = {
			class = 'ambox-content',
			image = 'Ambox content.png'
		},
		style = {
			class = 'ambox-style',
			image = 'Edit-clear.svg'
		},
		move = {
			class = 'ambox-move',
			image = 'Ambox move.png'
		},
		protection = {
			class = 'ambox-protection',
			image = 'Ambox protection.png'
		},
		notice = {
			class = 'ambox-notice',
			image = 'Ambox notice.png'
		}
	},
	default                     = 'notice',
	allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
	allowSmall                  = true,
	smallParam                  = 'left',
	smallClass                  = 'mbox-small-left',
	substCheck                  = true,
	classes                     = {'metadata', 'plainlinks', 'ambox'},
	imageEmptyCell              = true,
	imageCheckBlank             = true,
	imageSmallSize              = '20x20px',
	imageCellDiv                = true,
	useCollapsibleTextFields    = true,
	imageRightNone              = true,
	sectionDefault              = 'article',
	allowMainspaceCategories    = true,
	templateCategory            = 'Article message templates',
        templateCategoryRequireName = true,
	templateErrorCategory       = 'Article message templates with missing parameters',
	templateErrorParamsToCheck  = {'issue', 'fix', 'subst'}
}
 
local cmbox = {
	types = {
		speedy = {
			class = 'cmbox-speedy',
			image = 'Cmbox deletion.png'
		},
		delete = {
			class = 'cmbox-delete',
			image = 'Cmbox deletion.png'
		},
		content = {
			class = 'cmbox-content',
			image = 'Cmbox content.png'
		},
		style = {
			class = 'cmbox-style',
			image = 'Edit-clear.svg'
		},
		move = {
			class = 'cmbox-move',
			image = 'Cmbox move.png'
		},
		protection = {
			class = 'cmbox-protection',
			image = 'Cmbox protection.png'
		},
		notice = {
			class = 'cmbox-notice',
			image = 'Cmbox notice.png'
		}
	},
	default              = 'notice',
	showInvalidTypeError = true,
	classes              = {'plainlinks', 'cmbox'},
	imageEmptyCell       = true
}
 
local fmbox = {
	types = {
		warning = {
			class = 'fmbox-warning',
			image = 'Cmbox deletion.png'
		},
		editnotice = {
			class = 'fmbox-editnotice',
			image = 'Imbox notice.png'
		},
		system = {
			class = 'fmbox-system',
			image = 'Imbox notice.png'
		}
	},
	default              = 'system',
	showInvalidTypeError = true,
	allowId                = true,
	classes              = {'plainlinks', 'fmbox'},
	imageEmptyCell       = false,
	imageRightNone       = false
}
 
local imbox = {
	types = {
		speedy = {
			class = 'imbox-speedy',
			image = 'Imbox speedy deletion.png'
		},
		delete = {
			class = 'imbox-delete',
			image = 'Imbox deletion.png'
		},
		content = {
			class = 'imbox-content',
			image = 'Imbox content.png'
		},
		style = {
			class = 'imbox-style',
			image = 'Edit-clear.svg'
		},
		move = {
			class = 'imbox-move',
			image = 'Imbox move.png'
		},
		protection = {
			class = 'imbox-protection',
			image = 'Imbox protection.png'
		},
		license = {
			class = 'imbox-license',
			image = 'Imbox license.png'
		},
		featured = {
			class = 'imbox-featured',
			image = 'Imbox featured.png'
		},
		notice = {
			class = 'imbox-notice',
			image = 'Imbox notice.png'
		}
	},
	default              = 'notice',
	showInvalidTypeError = true,
	classes              = {'imbox'},
	usePlainlinksParam   = true,
	imageEmptyCell       = true,
	below                = true,
	templateCategory     = 'File message boxes'
}
 
local ombox = {
	types = {
		speedy = {
			class = 'ombox-speedy',
			image = 'Imbox speedy deletion.png'
		},
		delete = {
			class = 'ombox-delete',
			image = 'Imbox deletion.png'
		},
		content = {
			class = 'ombox-content',
			image = 'Imbox content.png'
		},
		style = {
			class = 'ombox-style',
			image = 'Edit-clear.svg'
		},
		move = {
			class = 'ombox-move',
			image = 'Imbox move.png'
		},
		protection = {
			class = 'ombox-protection',
			image = 'Imbox protection.png'
		},
		notice = {
			class = 'ombox-notice',
			image = 'Imbox notice.png'
		}
	},
	default              = 'notice',
	showInvalidTypeError = true,
	classes              = {'plainlinks', 'ombox'},
	allowSmall           = true,
	imageEmptyCell       = true,
	imageRightNone       = true
}
 
local tmbox = {
	types = {
		speedy = {
			class = 'tmbox-speedy',
			image = 'Imbox speedy deletion.png'
		},
		delete = {
			class = 'tmbox-delete',
			image = 'Imbox deletion.png'
		},
		content = {
			class = 'tmbox-content',
			image = 'Imbox content.png'
		},
		style = {
			class = 'tmbox-style',
			image = 'Edit-clear.svg '
		},
		move = {
			class = 'tmbox-move',
			image = 'Imbox move.png'
		},
		protection = {
			class = 'tmbox-protection',
			image = 'Imbox protection.png'
		},
		notice = {
			class = 'tmbox-notice',
			image = 'Imbox notice.png'
		}
	},
	default              = 'notice',
	showInvalidTypeError = true,
	classes              = {'plainlinks', 'tmbox'},
	allowId              = true,
	allowSmall           = true,
	imageRightNone       = true,
	imageEmptyCell       = true,
	imageEmptyCellStyle  = true,
	templateCategory     = 'Talk message boxes'
}
 
return {
	ambox = ambox,
	cmbox = cmbox,
	fmbox = fmbox,
	imbox = imbox,
	ombox = ombox,
	tmbox = tmbox
}