Module:Infobox/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
update dochead |
||
| Line 1: | Line 1: | ||
{{documentation| | {{documentation| | ||
{{dochead|header= | {{dochead|header=dualuse}}{{lua|arguments|navbar|template input utils|yesno}} | ||
<p>'''Module:Infobox''' is a {{w|wp:lua|module}} that implements the {{tlx|Infobox}} template. Infobox templates can be made by using the template or by calling the <code>_sidebar</code> function from another module.</p> | <p>'''Module:Infobox''' is a {{w|wp:lua|module}} that implements the {{tlx|Infobox}} template. Infobox templates can be made by using the template or by calling the <code>_sidebar</code> function from another module.</p> | ||
On templates, you can create an infobox by using <code><nowiki>{{Infobox}}</nowiki></code>, which calls this module's wrapper function. | On templates, you can create an infobox by using <code><nowiki>{{Infobox}}</nowiki></code>, which calls this module's wrapper function. | ||
On modules, you can include <syntaxhighlight inline lang="lua">local infobox= require("Module:Infobox")._infobox</syntaxhighlight> to create | On modules, you can include <syntaxhighlight inline lang="lua">local infobox= require("Module:Infobox")._infobox</syntaxhighlight> to create an infobox.{{clear}} | ||
=== See also === | === See also === | ||
* [[Module:Navbar]], used by this module to add view/talk/edit links. | * [[Module:Navbar]], used by this module to add view/talk/edit links. | ||
}} | }} | ||
Revision as of 09:57, 23 October 2025
- This module may be invoked by templates using its corresponding template Template:Infobox, or used directly from other modules.
| This template has been deprecated. Its replacements are Template:Dochead and Template:Module introspection. |
Module:Infobox is a module that implements the {{Infobox}} template. Infobox templates can be made by using the template or by calling the _sidebar function from another module.
On templates, you can create an infobox by using {{Infobox}}, which calls this module's wrapper function.
On modules, you can include local infobox= require("Module:Infobox")._infobox to create an infobox.
See also
- Module:Navbar, used by this module to add view/talk/edit links.