User:Johan G/Messagebox: Difference between revisions

Jump to navigation Jump to search
m
Let's use that for now
(Starting with documenting some of the parameters I think will be needed)
 
m (Let's use that for now)
Line 45: Line 45:


== Category suppression ==
== Category suppression ==
In cases where a template using {{tl|messagebox}} is automatically categorising pages it is ''highly'' recommended to use {{tl|messagebox}} together with a [[:Category:Namespace templates|namespace template]] to suppress categorisation if a template is used on other pages than the intended ones, like for example in lists of templates. Some common namespace templates are for example {{tl|category handler}}, {{tl|main other}}, {{tl|talk other}} and {{tl|category other}}.
In cases where a template using <nowiki>{{</nowiki>'''messagebox'''<nowiki>}}</nowiki> is automatically categorising pages it is ''highly'' recommended to use <nowiki>{{</nowiki>'''messagebox'''<nowiki>}}</nowiki> together with a [[:Category:Namespace templates|namespace template]] to suppress categorisation if a template is used on other pages than the intended ones, like for example in lists of templates. Some common namespace templates are for example {{tl|category handler}}, {{tl|main other}}, {{tl|talk other}} and {{tl|category other}}.


Where one of the "other" templates are sufficient, a way to add a '''nocat''' parameter working in a similar way as in {{tl|category handler}} to a template is to do as in the below example:
Where one of the "other" templates are sufficient, a way to add a '''nocat''' parameter working in a similar way as in {{tl|category handler}} to a template is to do as in the below example:

Navigation menu