모듈:Message box/configuration: 두 판 사이의 차이

m (2 revisions imported from w:Module:Message_box/configuration: per RFH)
위키백과>Ykhwong
m (총의에 따른 수정)
1번째 줄: 1번째 줄:
--------------------------------------------------------------------------------
local ambox = {
--                          Message box configuration                        --
types = {
--                                                                            --
speedy = {
-- This module contains configuration data for [[Module:Message box]].        --
class = 'ambox-speedy',
--------------------------------------------------------------------------------
image = 'Ambox warning pn.svg'
 
},
return {
delete = {
ambox = {
class = 'ambox-delete',
types = {
image = 'Ambox warning pn.svg'
speedy = {
},
class = 'ambox-speedy',
content = {
image = 'Ambox warning pn.svg'
class = 'ambox-content',
},
image = 'Ambox important.svg'
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 = 'Merge-split-transwiki default.svg'
style = {
},
class = 'ambox-style',
protection = {
image = 'Edit-clear.svg'
class = 'ambox-protection',
},
image = 'Semi-protection-shackle-keyhole.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'
}
},
},
default                    = 'notice',
notice = {
allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
class = 'ambox-notice',
allowSmall                  = true,
image = 'Information icon4.svg'
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            = '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            = '문서 알림 상자',
class = 'cmbox-style',
        templateCategoryRequireName = true,
image = 'Edit-clear.svg'
templateErrorCategory      = '매개변수를 지정하지 않은 문서 알림 상자',
},
templateErrorParamsToCheck  = {'name', 'issue', 'fix'}
move = {
}
class = 'cmbox-move',
image = 'Merge-split-transwiki default.svg'
local cmbox = {
},
types = {
protection = {
speedy = {
class = 'cmbox-protection',
class = 'cmbox-speedy',
image = 'Semi-protection-shackle-keyhole.svg'
image = 'Ambox warning pn.svg'
},
},
notice = {
delete = {
class = 'cmbox-notice',
class = 'cmbox-delete',
image = 'Information icon4.svg'
image = 'Ambox warning pn.svg'
}
},
},
default              = 'notice',
content = {
showInvalidTypeError = true,
class = 'cmbox-content',
classes              = {'cmbox'},
image = 'Ambox important.svg'
imageEmptyCell      = true
},
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',
fmbox = {
showInvalidTypeError = true,
types = {
classes              = {'plainlinks', 'cmbox'},
warning = {
imageEmptyCell      = true,
class = 'fmbox-warning',
templateCategory    = '분류 알림 상자',
image = 'Ambox warning pn.svg'
 
},
}
editnotice = {
class = 'fmbox-editnotice',
local fmbox = {
image = 'Information icon4.svg'
types = {
},
warning = {
system = {
class = 'fmbox-warning',
class = 'fmbox-system',
image = 'Ambox warning pn.svg'
image = 'Information icon4.svg'
},
}
editnotice = {
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
},
},
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 = 'Ambox warning pn.svg'
image = 'Ambox important.svg'
},
},
delete = {
style = {
class = 'imbox-delete',
class = 'imbox-style',
image = 'Ambox warning pn.svg'
image = 'Edit-clear.svg'
},
},
content = {
move = {
class = 'imbox-content',
class = 'imbox-move',
image = 'Ambox important.svg'
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',
style = {
showInvalidTypeError = true,
class = 'imbox-style',
classes              = {'imbox'},
image = 'Edit-clear.svg'
imageEmptyCell      = true,
},
below                = true,
move = {
templateCategory    = 'File message boxes'
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 SVG 버전이 필요합니다
},
featured = {
class = 'imbox-featured',
image = 'Cscr-featured.svg'
},
notice = {
class = 'imbox-notice',
image = 'Information icon4.svg'
}
},
},
default              = 'notice',
ombox = {
showInvalidTypeError = true,
types = {
classes              = {'imbox'},
speedy = {
usePlainlinksParam  = true,
class = 'ombox-speedy',
imageEmptyCell      = true,
image = 'Ambox warning pn.svg'
below                = true,
},
templateCategory    = '파일 알림 상자'
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 = 'Ambox warning pn.svg'
},
},
style = {
delete = {
class = 'ombox-style',
class = 'ombox-delete',
image = 'Edit-clear.svg'
image = 'Ambox warning pn.svg'
},
},
move = {
content = {
class = 'ombox-move',
class = 'ombox-content',
image = 'Merge-split-transwiki default.svg'
image = 'Ambox important.svg'
},
},
protection = {
style = {
class = 'ombox-protection',
class = 'ombox-style',
image = 'Semi-protection-shackle-keyhole.svg'
image = 'Edit-clear.svg'
},
},
notice = {
move = {
class = 'ombox-notice',
class = 'ombox-move',
image = 'Information icon4.svg'
image = 'Merge-split-transwiki default.svg'
}
},
protection = {
class = 'ombox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
},
},
default              = 'notice',
notice = {
showInvalidTypeError = true,
class = 'ombox-notice',
classes              = {'ombox'},
image = 'Information icon4.svg'
allowSmall          = true,
}
imageEmptyCell      = true,
imageRightNone      = true
},
},
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 = 'Ambox warning pn.svg'
image = 'Ambox important.svg'
},
},
delete = {
style = {
class = 'tmbox-delete',
class = 'tmbox-style',
image = 'Ambox warning pn.svg'
image = 'Edit-clear.svg'
},
},
content = {
move = {
class = 'tmbox-content',
class = 'tmbox-move',
image = 'Ambox important.svg'
image = 'Merge-split-transwiki default.svg'
},
},
style = {
protection = {
class = 'tmbox-style',
class = 'tmbox-protection',
image = 'Edit-clear.svg'
image = 'Semi-protection-shackle-keyhole.svg'
},
},
move = {
notice = {
class = 'tmbox-move',
class = 'tmbox-notice',
image = 'Merge-split-transwiki default.svg'
image = 'Information icon4.svg'
},
}
protection = {
class = 'tmbox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
},
},
default              = 'notice',
notice = {
showInvalidTypeError = true,
class = 'tmbox-notice',
classes              = {'tmbox'},
image = 'Information icon4.svg'
allowSmall          = true,
}
imageRightNone      = true,
},
imageEmptyCell      = true,
default              = 'notice',
imageEmptyCellStyle  = true,
showInvalidTypeError = true,
templateCategory    = 'Talk message boxes'
classes              = {'plainlinks', 'tmbox'},
}
allowId              = true,
allowSmall          = true,
imageRightNone      = true,
imageEmptyCell      = true,
imageEmptyCellStyle  = true,
templateCategory    = '토론 알림 상자'
}
return {
ambox = ambox,
cmbox = cmbox,
fmbox = fmbox,
imbox = imbox,
ombox = ombox,
tmbox = tmbox
}
}

2020년 1월 1일 (수) 19:53 판

이 모듈에 대한 설명문서는 모듈:Message box/configuration/설명문서에서 만들 수 있습니다

local 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'
		}
	},
	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            = '문서 알림 상자',
        templateCategoryRequireName = true,
	templateErrorCategory       = '매개변수를 지정하지 않은 문서 알림 상자',
	templateErrorParamsToCheck  = {'name', 'issue', 'fix'}
}
 
local 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              = {'plainlinks', 'cmbox'},
	imageEmptyCell       = true,
	templateCategory     = '분류 알림 상자',

}
 
local 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,
	allowId                = true,
	classes              = {'plainlinks', 'fmbox'},
	imageEmptyCell       = false,
	imageRightNone       = false
}
 
local 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 SVG 버전이 필요합니다
		},
		featured = {
			class = 'imbox-featured',
			image = 'Cscr-featured.svg'
		},
		notice = {
			class = 'imbox-notice',
			image = 'Information icon4.svg'
		}
	},
	default              = 'notice',
	showInvalidTypeError = true,
	classes              = {'imbox'},
	usePlainlinksParam   = true,
	imageEmptyCell       = true,
	below                = true,
	templateCategory     = '파일 알림 상자'
}
 
local 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              = {'plainlinks', 'ombox'},
	allowSmall           = true,
	imageEmptyCell       = true,
	imageRightNone       = true
}
 
local 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              = {'plainlinks', 'tmbox'},
	allowId              = true,
	allowSmall           = true,
	imageRightNone       = true,
	imageEmptyCell       = true,
	imageEmptyCellStyle  = true,
	templateCategory     = '토론 알림 상자'
}
 
return {
	ambox = ambox,
	cmbox = cmbox,
	fmbox = fmbox,
	imbox = imbox,
	ombox = ombox,
	tmbox = tmbox
}
• 현재 페이지 URL 줄이기