Template:Lua/doc: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}


This template creates an infobox that lists the Lua modules invoked by a template. It should be used at the top of the template's /doc subpage.
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.


==Usage==
==Usage==
{{tlx|Lua|''module name''}}
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|
{{Documentation categories|

Latest revision as of 02:59, 15 June 2023

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.