Template:Tmbox/doc

From Wikivoyage
Jump to navigation Jump to search

History

[edit]

This is the {{tmbox}} or Talk page message box meta-template.

It is used to build talk page message box templates. 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

[edit]

Example to display a notice:

 {{tmbox
 | type  = notice
 | text  = Hello world!
 }}

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.








See also

[edit]