الگو:Ambox/doc
This is a documentation subpage for الگو:Ambox. It contains usage information, categories, inter-language links and other content that is not part of the original الگو page. |
History
ویرایش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 = Hello world! }}
The code above should return:
Hello world! |
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.
|type= speedy – speedy deletion issues, such as {{speedy}} |
|type= delete – deletion issues, such as {{vfd}} |
|type= content – content issues, such as {{movetodistrict}} |
|type= style – style issues, such as {{style}} |
|type= notice – article notices, such as {{districts discussion}} |
|type= move – merge, split and transwiki proposals, such as {{merge}} |
|type= protection – protection notices, such as {{protected}} |
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.
See also
ویرایش- Template:Imbox — image message box
- Template:Mbox — multi namespace message box
- Template:Ombox — other pages message box (e.g. policy or help pages)
- Template:Tmbox — talk page message box