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

위키백과>Ykhwong
m편집 요약 없음
imported>MusikAnimal
m (1 revision imported)
 
(사용자 6명의 중간 판 13개는 보이지 않습니다)
1번째 줄: 1번째 줄:
local ambox = {
--------------------------------------------------------------------------------
types = {
--                          Message box configuration                        --
speedy = {
--                                                                            --
class = 'ambox-speedy',
-- This module contains configuration data for [[Module:Message box]].        --
image = 'Ambox speedy deletion.png'
--------------------------------------------------------------------------------
 
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'
}
},
},
delete = {
default                    = 'notice',
class = 'ambox-delete',
allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
image = 'Ambox deletion.png'
allowSmall                  = true,
},
smallParam                  = 'left',
content = {
smallClass                  = 'mbox-small-left',
class = 'ambox-content',
substCheck                  = true,
image = 'Ambox content.png'
classes                    = {'metadata', 'ambox'},
},
imageEmptyCell              = true,
style = {
imageCheckBlank            = true,
class = 'ambox-style',
imageSmallSize              = '20x20px',
image = 'Edit-clear.svg'
imageCellDiv                = true,
},
useCollapsibleTextFields    = true,
move = {
imageRightNone              = true,
class = 'ambox-move',
sectionDefault              = 'article',
image = 'Ambox move.png'
allowMainspaceCategories    = true,
},
templateCategory            = 'Article message templates',
protection = {
        templateCategoryRequireName = true,
class = 'ambox-protection',
templateErrorCategory      = 'Article message templates with missing parameters',
image = 'Ambox protection.png'
templateErrorParamsToCheck  = {'issue', 'fix', 'subst'},
},
removalNotice              = '[[Help:Maintenance template removal|Learn how and when to remove this template message]]'
notice = {
class = 'ambox-notice',
image = 'Ambox notice.png'
}
},
},
default                    = 'notice',
allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
cmbox = {
allowSmall                  = true,
types = {
smallParam                  = 'left',
speedy = {
smallClass                  = 'mbox-small-left',
class = 'cmbox-speedy',
substCheck                  = true,
image = 'Ambox warning pn.svg'
classes                    = {'metadata', 'plainlinks', 'ambox'},
},
imageEmptyCell              = true,
delete = {
imageCheckBlank            = true,
class = 'cmbox-delete',
imageSmallSize              = '20x20px',
image = 'Ambox warning pn.svg'
imageCellDiv                = true,
},
useCollapsibleTextFields    = true,
content = {
imageRightNone              = true,
class = 'cmbox-content',
sectionDefault              = 'article',
image = 'Ambox important.svg'
allowMainspaceCategories    = true,
},
templateCategory            = '문서 알림 상자',
style = {
        templateCategoryRequireName = true,
class = 'cmbox-style',
templateErrorCategory      = '매개변수를 지정하지 않은 문서 알림 상자',
image = 'Edit-clear.svg'
templateErrorParamsToCheck  = {'issue', 'fix', 'subst'}
},
}
move = {
class = 'cmbox-move',
local cmbox = {
image = 'Merge-split-transwiki default.svg'
types = {
},
speedy = {
protection = {
class = 'cmbox-speedy',
class = 'cmbox-protection',
image = 'Cmbox deletion.png'
image = 'Semi-protection-shackle-keyhole.svg'
},
},
delete = {
notice = {
class = 'cmbox-delete',
class = 'cmbox-notice',
image = 'Cmbox deletion.png'
image = 'Information icon4.svg'
}
},
},
content = {
default              = 'notice',
class = 'cmbox-content',
showInvalidTypeError = true,
image = 'Cmbox content.png'
classes              = {'cmbox'},
},
imageEmptyCell      = true
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,
fmbox = {
classes              = {'plainlinks', 'cmbox'},
types = {
imageEmptyCell      = true,
warning = {
templateCategory    = '분류 알림 상자',
class = 'fmbox-warning',
 
image = 'Ambox warning pn.svg'
}
},
editnotice = {
local fmbox = {
class = 'fmbox-editnotice',
types = {
image = 'Information icon4.svg'
warning = {
},
class = 'fmbox-warning',
system = {
image = 'Cmbox deletion.png'
class = 'fmbox-system',
},
image = 'Information icon4.svg'
editnotice = {
}
class = 'fmbox-editnotice',
image = 'Imbox notice.png'
},
},
system = {
default              = 'system',
class = 'fmbox-system',
showInvalidTypeError = true,
image = 'Imbox notice.png'
classes              = {'fmbox'},
}
imageEmptyCell      = false,
imageRightNone      = false
},
},
default              = 'system',
showInvalidTypeError = true,
imbox = {
allowId                = true,
types = {
classes              = {'plainlinks', 'fmbox'},
speedy = {
imageEmptyCell      = false,
class = 'imbox-speedy',
imageRightNone      = false
image = 'Ambox warning pn.svg'
}
},
delete = {
local imbox = {
class = 'imbox-delete',
types = {
image = 'Ambox warning pn.svg'
speedy = {
},
class = 'imbox-speedy',
content = {
image = 'Imbox speedy deletion.png'
class = 'imbox-content',
},
image = 'Ambox important.svg'
delete = {
},
class = 'imbox-delete',
style = {
image = 'Imbox deletion.png'
class = 'imbox-style',
},
image = 'Edit-clear.svg'
content = {
},
class = 'imbox-content',
move = {
image = 'Imbox content.png'
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'
}
},
},
style = {
default              = 'notice',
class = 'imbox-style',
showInvalidTypeError = true,
image = 'Edit-clear.svg'
classes              = {'imbox'},
},
imageEmptyCell      = true,
move = {
below                = true,
class = 'imbox-move',
templateCategory    = 'File message boxes'
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,
ombox = {
classes              = {'imbox'},
types = {
usePlainlinksParam  = true,
speedy = {
imageEmptyCell      = true,
class = 'ombox-speedy',
below                = true,
image = 'Ambox warning pn.svg'
templateCategory    = '파일 알림 상자'
},
}
delete = {
class = 'ombox-delete',
local ombox = {
image = 'Ambox warning pn.svg'
types = {
},
speedy = {
content = {
class = 'ombox-speedy',
class = 'ombox-content',
image = 'Imbox speedy deletion.png'
image = 'Ambox important.svg'
},
},
delete = {
style = {
class = 'ombox-delete',
class = 'ombox-style',
image = 'Imbox deletion.png'
image = 'Edit-clear.svg'
},
},
content = {
move = {
class = 'ombox-content',
class = 'ombox-move',
image = 'Imbox content.png'
image = 'Merge-split-transwiki default.svg'
},
},
style = {
protection = {
class = 'ombox-style',
class = 'ombox-protection',
image = 'Edit-clear.svg'
image = 'Semi-protection-shackle-keyhole.svg'
},
},
move = {
notice = {
class = 'ombox-move',
class = 'ombox-notice',
image = 'Imbox move.png'
image = 'Information icon4.svg'
},
}
protection = {
class = 'ombox-protection',
image = 'Imbox protection.png'
},
},
notice = {
default              = 'notice',
class = 'ombox-notice',
showInvalidTypeError = true,
image = 'Imbox notice.png'
classes              = {'ombox'},
}
allowSmall          = true,
imageEmptyCell      = true,
imageRightNone      = true
},
},
default              = 'notice',
showInvalidTypeError = true,
tmbox = {
classes              = {'plainlinks', 'ombox'},
types = {
allowSmall          = true,
speedy = {
imageEmptyCell      = true,
class = 'tmbox-speedy',
imageRightNone      = true
image = 'Ambox warning pn.svg'
}
},
delete = {
local tmbox = {
class = 'tmbox-delete',
types = {
image = 'Ambox warning pn.svg'
speedy = {
},
class = 'tmbox-speedy',
content = {
image = 'Imbox speedy deletion.png'
class = 'tmbox-content',
},
image = 'Ambox important.svg'
delete = {
},
class = 'tmbox-delete',
style = {
image = 'Imbox deletion.png'
class = 'tmbox-style',
},
image = 'Edit-clear.svg'
content = {
},
class = 'tmbox-content',
move = {
image = 'Imbox content.png'
class = 'tmbox-move',
},
image = 'Merge-split-transwiki default.svg'
style = {
},
class = 'tmbox-style',
protection = {
image = 'Edit-clear.svg '
class = 'tmbox-protection',
},
image = 'Semi-protection-shackle-keyhole.svg'
move = {
},
class = 'tmbox-move',
notice = {
image = 'Imbox move.png'
class = 'tmbox-notice',
},
image = 'Information icon4.svg'
protection = {
}
class = 'tmbox-protection',
image = 'Imbox protection.png'
},
},
notice = {
default              = 'notice',
class = 'tmbox-notice',
showInvalidTypeError = true,
image = 'Imbox notice.png'
classes              = {'tmbox'},
}
allowSmall          = true,
},
imageRightNone      = true,
default              = 'notice',
imageEmptyCell      = true,
showInvalidTypeError = true,
imageEmptyCellStyle  = true,
classes              = {'plainlinks', 'tmbox'},
templateCategory    = 'Talk message boxes'
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년 4월 1일 (수) 15:12 기준 최신판

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

--------------------------------------------------------------------------------
--                          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'
			}
		},
		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            = '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]]'
	},
	
	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
	},
	
	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
	},
	
	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'
	},
	
	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
	},
	
	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,
		imageEmptyCellStyle  = true,
		templateCategory     = 'Talk message boxes'
	}
}
• 현재 페이지 URL 줄이기