Template:Lua/doc: Difference between revisions

From Path of Exile 2 Wiki
Jump to navigation Jump to search
>Illviljan
(Created page with "{{documentation subpage}} Creates a infobox with modules that are used in a template. <includeonly> <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> Category:Infobox templat...")
 
m (4 revisions imported)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{documentation subpage}}
{{Documentation subpage}}
Creates a infobox with modules that are used in a template.


<includeonly>
This template displays an infobox that lists the module dependencies for a template or module. For a template, module dependencies are the modules that implement that template (called with <code><nowiki>{{#invoke:}}</nowiki></code>). For a module, module dependencies are the other modules that are required by or loaded from that module.
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
==Usage==
Place this template at the top of the documentation subpage of a template or module. Templates are automatically added to [[:Category:Lua-based templates]].
 
{{tlx|Lua|''module 1''|''module 2''|''module 3''|...}}
 
==Example==
{{tlx|Lua|Module:Example|nocat=true}}
 
{{Lua|Module:Example|nocat=true}}
 
{{Adapted from Wikipedia|Template:Lua}}
 
{{Documentation categories|
<!-- Categories and interwikis go here. -->
[[Category:Infobox templates]]
[[Category:Infobox templates]]
</includeonly>
}}

Latest revision as of 00:50, 23 September 2024

This subpage provides documentation for Template:Lua.

This template displays an infobox that lists the module dependencies for a template or module. For a template, module dependencies are the modules that implement that template (called with {{#invoke:}}). For a module, module dependencies are the other modules that are required by or loaded from that module.

Usage

Place this template at the top of the documentation subpage of a template or module. Templates are automatically added to Category:Lua-based templates.

{{Lua|module 1|module 2|module 3|...}}

Example

{{Lua|Module:Example}}

Lua logo

This template uses the following modules:

This template was adapted from Template:Lua on Wikipedia.
Adaptation is noted for reference and attribution only. This template may differ from the original in function or in usage.