Module:Infobox/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Ganaram inukshuk (talk | contribs)
module is meant to be invoked directly; saying "should not be invoked directly" when it can be is contradictory
Ganaram inukshuk (talk | contribs)
mNo edit summary
Line 1: Line 1:
{{documentation|
{{documentation|
{{dochead|header='''Note:''' This module may be invoked directly by calling <code>_infobox(args)</code> or by using its corresponding template (Template:Infobox).}}{{lua|arguments|yesno}}
{{dochead|header='''Note:''' This module may be invoked directly by calling <code>_infobox(args)</code> or by using its corresponding template (Template:Infobox).}}{{lua|arguments|navbar|yesno}}
<p>'''Module:Infobox''' is a {{w|wp:lua|module}} that implements the {{tlx|Infobox}} template. Please see the template page for usage instructions.</p>
<p>'''Module:Infobox''' is a {{w|wp:lua|module}} that implements the {{tlx|Infobox}} template. Please see the template page for usage instructions.</p>



Revision as of 23:07, 11 October 2025


Note: This module may be invoked directly by calling _infobox(args) or by using its corresponding template (Template:Infobox). This module implements Template:Infobox.

Module:Infobox is a module that implements the {{Infobox}} template. Please see the template page for usage instructions.

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.