User:Johan G/Messagebox: Difference between revisions

Jump to navigation Jump to search
m
small fixes
(+- immediate, danger → speedy, warning; +neutral)
m (small fixes)
Line 8: Line 8:
  | top
  | top
  | #default =
  | #default =
  {{#ifeq: {{{box|top}}} | top  <!-- Is there an unspecified or valid type of box specified? -->
  {{#ifeq: {{lc: {{{box|top}}} }} | top  <!-- Is there an unspecified or valid type of box specified? -->
   |  <!-- Yes, the type of box is unspecified or a valid type of box is specified -->
   |  <!-- Yes, the type of box is unspecified or a valid type of box is specified -->
   top
   top
Line 170: Line 170:
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:


  <nowiki>...{{#switch: {{nocat|}}
  <nowiki>...{{#switch: {{[nocat|}}}
| true =                                                  <!-- Will not categorise a page -->
| true =                                                  <!-- Will not categorise a page -->
| false = [[Category:Some category]]                      <!-- Will always categorise a page -->
| false = [[Category:Some category]]                      <!-- Will always categorise a page -->

Navigation menu