Mudanças entre as edições de "Módulo:Message box/configuration"

De Minecraft Wiki
Ir para: navegação, pesquisa
(vamos adicionar um de tradução)
 
(2 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 30: Linha 30:
 
translation = {
 
translation = {
 
class = 'ambox-translation',
 
class = 'ambox-translation',
image = 'Cleanup.svg'
+
image = 'Green translation icon.svg'
 
},
 
},
 
move = {
 
move = {
Linha 47: Linha 47:
 
class = 'ambox-license',
 
class = 'ambox-license',
 
image = 'License none.svg'
 
image = 'License none.svg'
}
+
},
  +
notice2 = {
  +
class = 'ambox-notice2',
  +
image = 'OOjs UI icon information-progressive.svg'
  +
},
  +
critical = {
  +
class = 'ambox-critical',
  +
image = 'OOjs UI icon clock-destructive.svg'
  +
},
 
},
 
},
 
default = 'notice',
 
default = 'notice',
 
allowBlankParams = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
 
allowBlankParams = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
 
allowSmall = true,
 
allowSmall = true,
smallParam = 'left',
+
smallParam = 'yes',
 
smallClass = 'mbox-small-left',
 
smallClass = 'mbox-small-left',
 
substCheck = true,
 
substCheck = true,
Linha 64: Linha 72:
 
sectionDefault = 'article',
 
sectionDefault = 'article',
 
allowMainspaceCategories = true,
 
allowMainspaceCategories = true,
templateCategory = 'Article message templates',
 
 
templateCategoryRequireName = true,
 
templateCategoryRequireName = true,
 
templateErrorCategory = 'Article message templates with missing parameters',
 
templateErrorCategory = 'Article message templates with missing parameters',
Linha 90: Linha 97:
 
class = 'ombox-style',
 
class = 'ombox-style',
 
image = 'Cleanup.svg'
 
image = 'Cleanup.svg'
  +
},
  +
translation = {
  +
class = 'ombox-translation',
  +
image = 'Green translation icon.svg'
 
},
 
},
 
move = {
 
move = {
Linha 102: Linha 113:
 
class = 'ombox-notice',
 
class = 'ombox-notice',
 
image = 'OOjs UI icon information-progressive.svg'
 
image = 'OOjs UI icon information-progressive.svg'
  +
},
  +
license = {
  +
class = 'ombox-license',
  +
image = 'License none.svg'
 
},
 
},
 
notice2 = {
 
notice2 = {

Edição atual tal como às 18h13min de 20 de setembro de 2020

[criar | histórico | purgar]Documentação
Este module não tem documentação. Se você souber como usar este module, por favor crie.
--------------------------------------------------------------------------------
--                          Message box configuration                         --
--                                                                            --
-- This module contains configuration data for [[Module:Message box]].        --
--------------------------------------------------------------------------------

return {
	ambox = {
		types = {
			speedy = {
				class = 'ambox-speedy',
				image = 'OOjs UI icon clock-destructive.svg'
			},
			delete = {
				class = 'ambox-delete',
				image = 'OOjs UI icon alert-destructive.svg'
			},
			warning = { -- alias for content
				class = 'ambox-content',
				image = 'OOjs UI icon notice-warning.svg'
			},
			content = {
				class = 'ambox-content',
				image = 'OOjs UI icon notice-warning.svg'
			},
			style = {
				class = 'ambox-style',
				image = 'Cleanup.svg'
			},
			translation = {
				class = 'ambox-translation',
				image = 'Green translation icon.svg'
			},
			move = {
				class = 'ambox-move',
				image = 'move arrows.svg'
			},
			protection = {
				class = 'ambox-protection',
				image = 'Semi-protection-shackle-keyhole.svg'
			},
			notice = {
				class = 'ambox-notice',
				image = 'OOjs UI icon information-progressive.svg'
			},
			license = {
				class = 'ambox-license',
				image = 'License none.svg'
			},
			notice2 = {
				class = 'ambox-notice2',
				image = 'OOjs UI icon information-progressive.svg'
			},
			critical = {
				class = 'ambox-critical',
				image = 'OOjs UI icon clock-destructive.svg'
			},
		},
		default                     = 'notice',
		allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
		allowSmall                  = true,
		smallParam                  = 'yes',
		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,
	        templateCategoryRequireName = true,
		templateErrorCategory       = 'Article message templates with missing parameters',
		templateErrorParamsToCheck  = {'issue', 'fix', 'subst'}
	},
	ombox = {
		types = {
			speedy = {
				class = 'ombox-speedy',
				image = 'OOjs UI icon clock-destructive.svg'
			},
			delete = {
				class = 'ombox-delete',
				image = 'OOjs UI icon alert-destructive.svg'
			},
			warning = { -- alias for content
				class = 'ombox-content',
				image = 'OOjs UI icon notice-warning.svg'
			},
			content = {
				class = 'ombox-content',
				image = 'OOjs UI icon notice-warning.svg'
			},
			style = {
				class = 'ombox-style',
				image = 'Cleanup.svg'
			},
			translation = {
				class = 'ombox-translation',
				image = 'Green translation icon.svg'
			},
			move = {
				class = 'ombox-move',
				image = 'Move_arrows.svg'
			},
			protection = {
				class = 'ombox-protection',
				image = 'Semi-protection-shackle-keyhole.svg'
			},
			notice = {
				class = 'ombox-notice',
				image = 'OOjs UI icon information-progressive.svg'
			},
			license = {
				class = 'ombox-license',
				image = 'License none.svg'
			},
			notice2 = {
				class = 'ombox-notice2',
				image = 'OOjs UI icon information-progressive.svg'
			},
			critical = {
				class = 'mbox-critical',
				image = 'OOjs UI icon clock-destructive.svg'
			},
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'plainlinks', 'ombox'},
		allowSmall           = true,
		imageEmptyCell       = true,
		imageRightNone       = true
	},
}