الفرق بين المراجعتين لصفحة: «وحدة:Message box/configuration»

من ويكي‌حج
ط (مراجعة واحدة)
ط (مراجعة واحدة)
 
(٦ مراجعات متوسطة بواسطة ٣ مستخدمين غير معروضة)
سطر ١٠: سطر ١٠:
speedy = {
speedy = {
class = 'ambox-speedy',
class = 'ambox-speedy',
image = 'OOjs UI icon alert destructive black-darkred.svg'
image = 'Commons-emblem-speedy.svg'
},
},
delete = {
delete = {
class = 'ambox-delete',
class = 'ambox-delete',
image = 'OOjs UI icon alert destructive black-darkred.svg'
image = 'Gnome-emblem-important.svg'
},
},
content = {
content = {
class = 'ambox-content',
class = 'ambox-content',
image = 'OOjs UI icon notice-warning.svg'
image = 'Commons-emblem-issue.svg'
},
},
style = {
style = {
class = 'ambox-style',
class = 'ambox-style',
image = 'Edit-clear.svg'
image = 'Commons-emblem-copyedit.svg'
},
},
move = {
move = {
class = 'ambox-move',
class = 'ambox-move',
image = 'Merge-split-transwiki default.svg'
image = 'Commons-emblem-merge.svg'
},
},
protection = {
protection = {
class = 'ambox-protection',
class = 'ambox-protection',
image = 'Logo-semi-protection-etendu-fr-2-square.svg'
image = 'Commons-emblem-padlock.svg'
},
current = {
class = 'ambox-current',
image = 'Appointment red.svg'
},
},
notice = {
notice = {
class = 'ambox-notice',
class = 'ambox-notice',
image = 'OOjs_UI_icon_info_big_progressive.svg'
image = 'Commons-emblem-notice.svg'
},
featured = {
class = 'ambox-featured',
image = 'AE candidate.svg'
}
}
},
},
سطر ٤٠: سطر ٤٨:
allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
allowSmall                  = true,
allowSmall                  = true,
smallParam                  = 'right',
smallParam                  = 'يمين',
smallClass                  = 'mbox-small-right',
smallClass                  = 'mbox-small-right',
substCheck                  = true,
substCheck                  = true,
سطر ٤٩: سطر ٥٧:
imageCellDiv                = true,
imageCellDiv                = true,
useCollapsibleTextFields    = true,
useCollapsibleTextFields    = true,
imageRightNone             = true,
imageLeftNone             = true,
sectionDefault              = 'مقاله',
sectionDefault              = 'مقالة',
allowMainspaceCategories    = true,
allowMainspaceCategories    = true,
templateCategory            = 'الگو:پیامی مقاله‌ها',
templateCategory            = 'قوالب رسائل مقالات',
        templateCategoryRequireName = true,
        templateCategoryRequireName = true,
templateErrorCategory      = 'الگو:پیامی مقاله‌ها که برخی پارامترها را ندارند',
templateErrorCategory      = 'قوالب رسائل مقالات بوسائط مفقودة',
templateErrorParamsToCheck  = {'issue', 'fix', 'subst'},
templateErrorParamsToCheck  = {'issue', 'fix', 'subst'},
removalNotice              = '[[راهنما:حذف الگوی نگهداری|چگونگی و زمان حذف پیام این الگو را بدانید]]'
removalNotice              = '<span style="float:left;">[[ملف:Breezeicons-actions-22-help-about.svg|20px|وصلة=مساعدة:إزالة قوالب الصيانة|تعرَّف على طريقة التعامل مع هذه المسألة من أجل إزالة هذا القالب.]]</span>',
templatestyles              = 'Module:Message box/ambox.css'
},
},
سطر ٦٣: سطر ٧٢:
speedy = {
speedy = {
class = 'cmbox-speedy',
class = 'cmbox-speedy',
image = 'OOjs UI icon alert destructive black-darkred.svg'
image = 'Commons-emblem-speedy.svg'
},
},
delete = {
delete = {
class = 'cmbox-delete',
class = 'cmbox-delete',
image = 'OOjs UI icon alert destructive black-darkred.svg'
image = 'Gnome-emblem-important.svg'
},
},
content = {
content = {
class = 'cmbox-content',
class = 'cmbox-content',
image = 'OOjs UI icon notice-warning.svg'
image = 'Commons-emblem-issue.svg'
},
},
style = {
style = {
class = 'cmbox-style',
class = 'cmbox-style',
image = 'Edit-clear.svg'
image = 'Commons-emblem-copyedit.svg'
},
},
move = {
move = {
class = 'cmbox-move',
class = 'cmbox-move',
image = 'Merge-split-transwiki default.svg'
image = 'Commons-emblem-merge.svg'
},
},
protection = {
protection = {
class = 'cmbox-protection',
class = 'cmbox-protection',
image = 'Logo-semi-protection-etendu-fr-2-square.svg'
image = 'Commons-emblem-padlock.svg'
},
},
notice = {
notice = {
class = 'cmbox-notice',
class = 'cmbox-notice',
image = 'OOjs_UI_icon_info_big_progressive.svg'
image = 'Commons-emblem-notice.svg'
}
}
},
},
سطر ٩٣: سطر ١٠٢:
showInvalidTypeError = true,
showInvalidTypeError = true,
classes              = {'cmbox'},
classes              = {'cmbox'},
imageEmptyCell      = true
imageEmptyCell      = true,
templatestyles      = 'Module:Message box/cmbox.css'
},
},
سطر ١٠٠: سطر ١١٠:
warning = {
warning = {
class = 'fmbox-warning',
class = 'fmbox-warning',
image = 'OOjs UI icon alert destructive black-darkred.svg'
image = 'Gnome-emblem-important.svg'
},
},
editnotice = {
editnotice = {
class = 'fmbox-editnotice',
class = 'fmbox-editnotice',
image = 'OOjs_UI_icon_info_big_progressive.svg'
image = 'Commons-emblem-notice.svg'
},
},
system = {
system = {
class = 'fmbox-system',
class = 'fmbox-system',
image = 'OOjs_UI_icon_info_big_progressive.svg'
image = 'Commons-emblem-notice.svg'
}
}
},
},
سطر ١١٥: سطر ١٢٥:
classes              = {'fmbox'},
classes              = {'fmbox'},
imageEmptyCell      = false,
imageEmptyCell      = false,
imageRightNone       = false
imageLeftNone       = false,
templatestyles      = 'Module:Message box/fmbox.css'
},
},
سطر ١٢٢: سطر ١٣٣:
speedy = {
speedy = {
class = 'imbox-speedy',
class = 'imbox-speedy',
image = 'OOjs UI icon alert destructive black-darkred.svg'
image = 'Commons-emblem-speedy.svg'
},
},
delete = {
delete = {
class = 'imbox-delete',
class = 'imbox-delete',
image = 'OOjs UI icon alert destructive black-darkred.svg'
image = 'Gnome-emblem-important.svg'
},
},
content = {
content = {
class = 'imbox-content',
class = 'imbox-content',
image = 'OOjs UI icon notice-warning.svg'
image = 'Commons-emblem-issue.svg'
},
},
style = {
style = {
class = 'imbox-style',
class = 'imbox-style',
image = 'Edit-clear.svg'
image = 'Commons-emblem-copyedit.svg'
},
},
move = {
move = {
class = 'imbox-move',
class = 'imbox-move',
image = 'Merge-split-transwiki default.svg'
image = 'Commons-emblem-merge.svg'
},
},
protection = {
protection = {
class = 'imbox-protection',
class = 'imbox-protection',
image = 'Logo-semi-protection-etendu-fr-2-square.svg'
image = 'Commons-emblem-padlock.svg'
},
},
license = {
license = {
class = 'imbox-license licensetpl',
class = 'imbox-license licensetpl',
image = 'Imbox license.png' -- @todo We need an SVG version of this
image = 'Imbox-license.svg'
},
},
featured = {
featured = {
سطر ١٥٤: سطر ١٦٥:
notice = {
notice = {
class = 'imbox-notice',
class = 'imbox-notice',
image = 'OOjs_UI_icon_info_big_progressive.svg'
image = 'Commons-emblem-notice.svg'
}
}
},
},
سطر ١٦٢: سطر ١٧٣:
imageEmptyCell      = true,
imageEmptyCell      = true,
below                = true,
below                = true,
templateCategory    = 'الگو:پیامی پرونده'
templateCategory    = 'صناديق رسائل ملفات',
templatestyles      = 'Module:Message box/imbox.css'
},
},
سطر ١٦٩: سطر ١٨١:
speedy = {
speedy = {
class = 'ombox-speedy',
class = 'ombox-speedy',
image = 'OOjs UI icon alert destructive black-darkred.svg'
image = 'Commons-emblem-speedy.svg'
},
},
delete = {
delete = {
class = 'ombox-delete',
class = 'ombox-delete',
image = 'OOjs UI icon alert destructive black-darkred.svg'
image = 'Gnome-emblem-important.svg'
},
},
content = {
content = {
class = 'ombox-content',
class = 'ombox-content',
image = 'OOjs UI icon notice-warning.svg'
image = 'Commons-emblem-issue.svg'
},
},
style = {
style = {
class = 'ombox-style',
class = 'ombox-style',
image = 'Edit-clear.svg'
image = 'Commons-emblem-copyedit.svg'
},
},
move = {
move = {
class = 'ombox-move',
class = 'ombox-move',
image = 'Merge-split-transwiki default.svg'
image = 'Commons-emblem-merge.svg'
},
},
protection = {
protection = {
class = 'ombox-protection',
class = 'ombox-protection',
image = 'Logo-semi-protection-etendu-fr-2-square.svg'
image = 'Commons-emblem-padlock.svg'
},
},
notice = {
notice = {
class = 'ombox-notice',
class = 'ombox-notice',
image = 'OOjs_UI_icon_info_big_progressive.svg'
image = 'Commons-emblem-notice.svg'
}
}
},
},
سطر ٢٠١: سطر ٢١٣:
allowSmall          = true,
allowSmall          = true,
imageEmptyCell      = true,
imageEmptyCell      = true,
imageRightNone       = true
imageLeftNone       = true,
templatestyles      = 'Module:Message box/ombox.css'
},
},
سطر ٢٠٨: سطر ٢٢١:
speedy = {
speedy = {
class = 'tmbox-speedy',
class = 'tmbox-speedy',
image = 'OOjs UI icon alert destructive black-darkred.svg'
image = 'Commons-emblem-speedy.svg'
},
},
delete = {
delete = {
class = 'tmbox-delete',
class = 'tmbox-delete',
image = 'OOjs UI icon alert destructive black-darkred.svg'
image = 'Gnome-emblem-important.svg'
},
},
content = {
content = {
class = 'tmbox-content',
class = 'tmbox-content',
image = 'OOjs UI icon notice-warning.svg'
image = 'Commons-emblem-issue.svg'
},
},
style = {
style = {
class = 'tmbox-style',
class = 'tmbox-style',
image = 'Edit-clear.svg'
image = 'Commons-emblem-copyedit.svg'
},
},
move = {
move = {
class = 'tmbox-move',
class = 'tmbox-move',
image = 'Merge-split-transwiki default.svg'
image = 'Commons-emblem-merge.svg'
},
},
protection = {
protection = {
class = 'tmbox-protection',
class = 'tmbox-protection',
image = 'Logo-semi-protection-etendu-fr-2-square.svg'
image = 'Commons-emblem-padlock.svg'
},
},
notice = {
notice = {
class = 'tmbox-notice',
class = 'tmbox-notice',
image = 'OOjs_UI_icon_info_big_progressive.svg'
image = 'Commons-emblem-notice.svg'
}
}
},
},
سطر ٢٣٩: سطر ٢٥٢:
classes              = {'tmbox'},
classes              = {'tmbox'},
allowSmall          = true,
allowSmall          = true,
imageRightNone       = true,
imageLeftNone       = true,
imageEmptyCell      = true,
imageEmptyCell      = true,
imageEmptyCellStyle  = true,
templateCategory    = 'صناديق رسائل نقاش',
templateCategory    = 'الگو:پیامی بحث'
templatestyles      = 'Module:Message box/tmbox.css'
}
}
}
}

المراجعة الحالية بتاريخ ١٤:٣١، ١٨ مايو ٢٠٢٤

يمكن إنشاء صفحة توثيق الوحدة في وحدة:Message box/configuration/شرح

--------------------------------------------------------------------------------
--                          Message box configuration                         --
--                                                                            --
-- This module contains configuration data for [[Module:Message box]].        --
--------------------------------------------------------------------------------

return {
	ambox = {
		types = {
			speedy = {
				class = 'ambox-speedy',
				image = 'Commons-emblem-speedy.svg'
			},
			delete = {
				class = 'ambox-delete',
				image = 'Gnome-emblem-important.svg'
			},
			content = {
				class = 'ambox-content',
				image = 'Commons-emblem-issue.svg'
			},
			style = {
				class = 'ambox-style',
				image = 'Commons-emblem-copyedit.svg'
			},
			move = {
				class = 'ambox-move',
				image = 'Commons-emblem-merge.svg'
			},
			protection = {
				class = 'ambox-protection',
				image = 'Commons-emblem-padlock.svg'
			},
			current = {
				class = 'ambox-current',
				image = 'Appointment red.svg'
			},
			notice = {
				class = 'ambox-notice',
				image = 'Commons-emblem-notice.svg'
			},
			featured = {
				class = 'ambox-featured',
				image = 'AE candidate.svg'
			}
		},
		default                     = 'notice',
		allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
		allowSmall                  = true,
		smallParam                  = 'يمين',
		smallClass                  = 'mbox-small-right',
		substCheck                  = true,
		classes                     = {'metadata', 'ambox'},
		imageEmptyCell              = true,
		imageCheckBlank             = true,
		imageSmallSize              = '20x20px',
		imageCellDiv                = true,
		useCollapsibleTextFields    = true,
		imageLeftNone              = true,
		sectionDefault              = 'مقالة',
		allowMainspaceCategories    = true,
		templateCategory            = 'قوالب رسائل مقالات',
	        templateCategoryRequireName = true,
		templateErrorCategory       = 'قوالب رسائل مقالات بوسائط مفقودة',
		templateErrorParamsToCheck  = {'issue', 'fix', 'subst'},
		removalNotice               = '<span style="float:left;">[[ملف:Breezeicons-actions-22-help-about.svg|20px|وصلة=مساعدة:إزالة قوالب الصيانة|تعرَّف على طريقة التعامل مع هذه المسألة من أجل إزالة هذا القالب.]]</span>',
		templatestyles              = 'Module:Message box/ambox.css'
	},
	
	cmbox = {
		types = {
			speedy = {
				class = 'cmbox-speedy',
				image = 'Commons-emblem-speedy.svg'
			},
			delete = {
				class = 'cmbox-delete',
				image = 'Gnome-emblem-important.svg'
			},
			content = {
				class = 'cmbox-content',
				image = 'Commons-emblem-issue.svg'
			},
			style = {
				class = 'cmbox-style',
				image = 'Commons-emblem-copyedit.svg'
			},
			move = {
				class = 'cmbox-move',
				image = 'Commons-emblem-merge.svg'
			},
			protection = {
				class = 'cmbox-protection',
				image = 'Commons-emblem-padlock.svg'
			},
			notice = {
				class = 'cmbox-notice',
				image = 'Commons-emblem-notice.svg'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'cmbox'},
		imageEmptyCell       = true,
		templatestyles       = 'Module:Message box/cmbox.css'
	},
	
	fmbox = {
		types = {
			warning = {
				class = 'fmbox-warning',
				image = 'Gnome-emblem-important.svg'
			},
			editnotice = {
				class = 'fmbox-editnotice',
				image = 'Commons-emblem-notice.svg'
			},
			system = {
				class = 'fmbox-system',
				image = 'Commons-emblem-notice.svg'
			}
		},
		default              = 'system',
		showInvalidTypeError = true,
		classes              = {'fmbox'},
		imageEmptyCell       = false,
		imageLeftNone       = false,
		templatestyles       = 'Module:Message box/fmbox.css'
	},
	
	imbox = {
		types = {
			speedy = {
				class = 'imbox-speedy',
				image = 'Commons-emblem-speedy.svg'
			},
			delete = {
				class = 'imbox-delete',
				image = 'Gnome-emblem-important.svg'
			},
			content = {
				class = 'imbox-content',
				image = 'Commons-emblem-issue.svg'
			},
			style = {
				class = 'imbox-style',
				image = 'Commons-emblem-copyedit.svg'
			},
			move = {
				class = 'imbox-move',
				image = 'Commons-emblem-merge.svg'
			},
			protection = {
				class = 'imbox-protection',
				image = 'Commons-emblem-padlock.svg'
			},
			license = {
				class = 'imbox-license licensetpl',
				image = 'Imbox-license.svg'
			},
			featured = {
				class = 'imbox-featured',
				image = 'Cscr-featured.svg'
			},
			notice = {
				class = 'imbox-notice',
				image = 'Commons-emblem-notice.svg'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'imbox'},
		imageEmptyCell       = true,
		below                = true,
		templateCategory     = 'صناديق رسائل ملفات',
		templatestyles       = 'Module:Message box/imbox.css'
	},
	
	ombox = {
		types = {
			speedy = {
				class = 'ombox-speedy',
				image = 'Commons-emblem-speedy.svg'
			},
			delete = {
				class = 'ombox-delete',
				image = 'Gnome-emblem-important.svg'
			},
			content = {
				class = 'ombox-content',
				image = 'Commons-emblem-issue.svg'
			},
			style = {
				class = 'ombox-style',
				image = 'Commons-emblem-copyedit.svg'
			},
			move = {
				class = 'ombox-move',
				image = 'Commons-emblem-merge.svg'
			},
			protection = {
				class = 'ombox-protection',
				image = 'Commons-emblem-padlock.svg'
			},
			notice = {
				class = 'ombox-notice',
				image = 'Commons-emblem-notice.svg'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'ombox'},
		allowSmall           = true,
		imageEmptyCell       = true,
		imageLeftNone       = true,
		templatestyles       = 'Module:Message box/ombox.css'
	},
	
	tmbox = {
		types = {
			speedy = {
				class = 'tmbox-speedy',
				image = 'Commons-emblem-speedy.svg'
			},
			delete = {
				class = 'tmbox-delete',
				image = 'Gnome-emblem-important.svg'
			},
			content = {
				class = 'tmbox-content',
				image = 'Commons-emblem-issue.svg'
			},
			style = {
				class = 'tmbox-style',
				image = 'Commons-emblem-copyedit.svg'
			},
			move = {
				class = 'tmbox-move',
				image = 'Commons-emblem-merge.svg'
			},
			protection = {
				class = 'tmbox-protection',
				image = 'Commons-emblem-padlock.svg'
			},
			notice = {
				class = 'tmbox-notice',
				image = 'Commons-emblem-notice.svg'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'tmbox'},
		allowSmall           = true,
		imageLeftNone       = true,
		imageEmptyCell       = true,
		templateCategory     = 'صناديق رسائل نقاش',
		templatestyles       = 'Module:Message box/tmbox.css'
	}
}