Module:Message box/doc

From The Kodiak Republic Wiki

Revision as of 13:01, 1 October 2013 by wikipedia>Mr. Stradivarius (make a start on the docs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:Message box


This module implements the message box templates {{mbox}}, {{ambox}}, {{cmbox}}, {{fmbox}}, {{imbox}}, {{ombox}}, and {{tmbox}}. It uses the same basic code for each of these templates; the differences between each of them are configured using the data at Module:Message box/configuration.

Usage from #invoke

{{#invoke:Message box|box type|parameters}}

There are seven available box types:

  • mbox - for message boxes to be used in multiple namespaces
  • ambox - for article message boxes
  • cmbox - for category message boxes
  • fmbox - for interface message boxes
  • imbox - for file namespace message boxes
  • tmbox - for talk page message boxes
  • ombox - for message boxes in other namespaces

Parameters

Parameters available to all box types

  • page
  • demospace
  • type
  • id
  • style
  • textstyle
  • text
  • image
  • imageright
  • nocat

Parameters limited to specific box types

  • subst - depends on cfg.substCheck
  • small - depends on cfg.allowSmall
  • plainlinks - depends on cfg.usePlainlinksParam
  • name - depends on cfg.useCollapsibleTextFields
  • sect - depends on cfg.useCollapsibleTextFields
  • issue - depends on cfg.useCollapsibleTextFields
  • talk - depends on cfg.useCollapsibleTextFields
  • fix - depends on cfg.useCollapsibleTextFields
  • date - depends on cfg.useCollapsibleTextFields
  • info - depends on cfg.useCollapsibleTextFields
  • smalltext - depends on cfg.allowSmall
  • below - depends on cfg.below
  • smallimage - depends on cfg.allowSmall
  • smallimageright - depends on cfg.allowSmall
  • cat, cat1, cat2, cat3, ... - depends on cfg.useMainspaceCategories
  • category, category1, category2, category3, ... - depends on cfg.useMainspaceCategories
Cookies help us deliver our services. By using our services, you agree to our use of cookies.