[go: up one dir, main page]

বিষয়বস্তুতে চলুন

টেমপ্লেট:Ambox

উইকিভ্রমণ থেকে
</span> "}],[{"txt":"style"},{"html":"<span about=\"#mwt4\" typeof=\"mw:Param\" data-parsoid='{\"dsr\":[194,206,null,null],\"pi\":[[{\"k\":\"1\"}]]}' data-mw='{\"parts\":[{\"templatearg\":{\"target\":{\"wt\":\"style\"},\"params\":{\"1\":{\"wt\":\"\"}},\"i\":0}}]}'></span>margin:0 25% 1.5em;border:1px solid #AAAAAA;<span about=\"#mwt5\" typeof=\"mw:Transclusion\" data-parsoid='{\"pi\":[[{\"k\":\"speedy\",\"named\":true,\"spc\":[\" \",\" \",\" \",\"\\n\"]},{\"k\":\"delete\",\"named\":true,\"spc\":[\" \",\" \",\" \",\"\\n\"]},{\"k\":\"content\",\"named\":true,\"spc\":[\" \",\" \",\" \",\"\\n\"]},{\"k\":\"approval\",\"named\":true,\"spc\":[\" \",\" \",\" \",\"\\n\"]},{\"k\":\"move\",\"named\":true,\"spc\":[\" \",\" \",\" \",\"\\n\"]},{\"k\":\"style\",\"named\":true,\"spc\":[\" \",\" \",\" \",\"\\n\"]},{\"k\":\"protection\",\"named\":true,\"spc\":[\" \",\" \",\" \",\"\\n\"]},{\"k\":\"hierarchy\",\"named\":true,\"spc\":[\" \",\" \",\" \",\"\\n\"]},{\"k\":\"1\"},{\"k\":\"custom\",\"named\":true,\"spc\":[\" \",\" \",\" \",\"\\n\"]},{\"k\":\"#default\",\"named\":true,\"spc\":[\" \",\" \",\" \",\"\\n\"]}]],\"dsr\":[250,959,null,null]}' data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"#switch:{{{type|}}}\\n\",\"function\":\"switch\"},\"params\":{\"speedy\":{\"wt\":\"background:#FFDDDD;border-left:10px #B22222 solid;\"},\"delete\":{\"wt\":\"background:#FBFBFB;border-left:10px #B22222 solid;\"},\"content\":{\"wt\":\"background:#FBFBFB;border-left:10px #F28500 solid;\"},\"approval\":{\"wt\":\"background:#FBFBFB;border-left:10px #0B610B solid;\"},\"move\":{\"wt\":\"background:#FBFBFB;border-left:10px #9933CC solid;\"},\"style\":{\"wt\":\"background:#FBFBFB;border-left:10px #F4C430 solid;\"},\"protection\":{\"wt\":\"background:#FBFBFB;border-left:10px #BBBBAA solid;\"},\"hierarchy\":{\"wt\":\"background:#FBFBFB;border-left:10px #9933CC solid;\"},\"1\":{\"wt\":\" notice&lt;!-- = default -->\\n\"},\"custom\":{\"wt\":\"background:#FBFBFB;border-left:10px {{{color}}} solid;\"},\"#default\":{\"wt\":\"background:#FBFBFB;border-left:10px #1E90FF solid;\"}},\"i\":0}}]}'>background:#FBFBFB;border-left:10px #1E90FF solid;</span><span about=\"#mwt6\" typeof=\"mw:Transclusion\" data-parsoid='{\"dsr\":[959,998,null,null],\"pi\":[[{\"k\":\"1\"}]]}' data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"#if:{{{stacked|}}}\",\"function\":\"if\"},\"params\":{\"1\":{\"wt\":\"border-top:-1px;\"}},\"i\":0}}]}'></span>"}]]}'>

This is the {{ambox}} or Article message box meta-template.

It is used to build article message box templates such as {{style}}. It offers several different colours, uses default images if no image parameter is given, and has some other features.

This template is a derived work. It is, however, NOT exactly the same as Wikipedia's template of the same name! All CSS has been integrated into the template, and therefore some features are not available. However it is still a very useful template!

Usage Instructions

[সম্পাদনা]

Example to display a notice:

 {{Ambox
 | type  = notice
 | text  = There's an issue with this page!
 | fix   = To fix it, you can edit!
 }}

The code above should return:

The type parameter defines the colour of the left bar, and the image that is used by default. The type is chosen not on aesthetics but is based on the type of issue that the template describes. The seven available types and their default images are shown below.








The box and text will not appear in printed copies of pages; this is by design, as page maintenance notices are only of value if the user is online and able to edit the page to fix the issues.