Module:Infobox/doc: Difference between revisions
Jump to navigation
Jump to search
all the current infoboxes prior to the creation of the companion template invoke p._infobox (which is recommended for advanced infoboxes), so it's misleading to call the template |
ArrowHead294 (talk | contribs) m Update header to reflect change |
||
| Line 1: | Line 1: | ||
{{dochead|header= | {{dochead|header='''Note:''' While this module should not be invoked directly, the use of its corresponding template ([[Template:Infobox]]) is not absolutely necessary. | ||
On other templates that use or generate infoboxes, you can call <code>_infobox</code> (note the underscore in front). The <code>infobox</code> function (without the underscore) is used by [[Template:Infobox]] as a wrapper. | |||
On other modules, you can include <syntaxhighlight inline lang="lua">local infobox = require("Module:Infobox")._infobox</syntaxhighlight> at or near the top.}} | |||
{{Todo|inline=1|Documentation}} | {{Todo|inline=1|Documentation}} | ||
Revision as of 04:40, 8 December 2024
- Note: While this module should not be invoked directly, the use of its corresponding template (Template:Infobox) is not absolutely necessary.
On other templates that use or generate infoboxes, you can call _infobox (note the underscore in front). The infobox function (without the underscore) is used by Template:Infobox as a wrapper.
On other modules, you can include local infobox = require("Module:Infobox")._infobox at or near the top. This module implements Template:Infobox.