Module:Message box/doc: Difference between revisions
From The Kodiak Republic Wiki
m
84 revisions imported from dev:Module:Message_box/doc
No edit summary |
m (84 revisions imported from dev:Module:Message_box/doc) |
||
(11 intermediate revisions by 6 users not shown) | |||
Line 1:
This is a meta-module that implements the message box templates {{tl|mbox}}
▲This is a meta-module that implements the message box templates {{tl|mbox}}, {{tl|ambox}}, {{tl|cmbox}}, {{tl|fmbox}}, {{tl|imbox}}, {{tl|inbox}}, and {{tl|tmbox}}. It is intended to be used from Lua modules, and should not be used directly from wiki pages. If you want to use this module's functionality from a wiki page, please use the individual message box templates instead.
== Usage ==
Line 28 ⟶ 24:
! Box type !! Template !! Purpose
|-
| <code>mbox</code>
|-
| <code>ambox</code>
|-
| <code>cmbox</code>
|-
| <code>fmbox</code>
|-
| <code>imbox</code>
|-
| <code>tmbox</code>
|-
| <code>ombox</code>
|}
See
== Usage from #invoke ==
Line 57 ⟶ 53:
* <code>showInvalidTypeError</code> – whether to show an error if the value passed to the type parameter was invalid.
* <code>allowBlankParams</code> – usually blank values are stripped from parameters passed to the module. However, whitespace is preserved for the parameters included in the allowBlankParams table.
* <code>
* <code>smallParam</code> – a custom name for the small parameter. For example, if set to "left" you can produce a small message box using "small=left".
* <code>smallClass</code> – the class to use for small message boxes.
* <code>substCheck</code> – whether to perform a subst check or not.
* <code>classes</code> – an array of classes to use with the message box.
* <code>imageEmptyCell</code> – whether to use an empty
* <code>imageEmptyCellStyle</code> – whether empty image cells should be styled.
* <code>imageCheckBlank</code> – whether "image=blank" results in no image being displayed.
|