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) |
||
(9 intermediate revisions by 5 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|ombox}}, 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 ==
As well as the <code>main</code> function, this module has separate functions for each box type. They are accessed using the code <code><nowiki>{{#invoke:Message box|mbox|...}}</nowiki></code>, <code><nowiki>{{#invoke:Message box|ambox|...}}</nowiki></code>, etc. These
== Technical details ==
Line 62 ⟶ 58:
* <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.
|