Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Chabadpedia
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Template:Lua/doc
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Documentation subpage}} {{Template redirects|Lua talk|Uses Lua}} <!-- Categories go at the bottom of this page, and interwikis go on Wikidata. --> {{High-use}} {{Lua|Module:Lua banner}} {{for|template to indicate [[Luba-Kasai language]] words|Template:Lang-lua}} This template is used to indicate that a template uses one or more [[Lua (programming language)|Lua]] modules (pages in the <code>Module:</code> namespace). It is placed at the top of the template's /doc page. It automatically adds a floating right notification box, and it adds the template to [[:Category:Lua-based templates]] or to one of its subcategories. == Usage == ; Basic : {{tlx|Lua|''module name''}} ; All parameters : {{tlx|Lua|''module 1''|''module 2''|''module 3''|...|category{{=}}''custom category''|nocat{{=}}''true''}} The first module name is required. == Examples == * {{tlx|Lua|Module:Example}} {{Lua|Module:Example|nocat=true}} {{clear}} * {{tlx|Lua|Module:Example|Module:Example}} {{Lua|Module:Example|Module:Example|nocat=true}} {{clear}} * {{tlx|Lua|Module:$Example$}} {{Lua|Module:$Example$|nocat=true}} {{clear}} * {{tlx|Lua}} {{Lua|nocat=true}} {{clear}} == Categorisation == ===Template category=== This template adds pages to [[:Category:Lua-based templates]] if the page is in the template namespace, and it is not on any of the subpages /doc, /sandbox, /sandbox2 or /testcases. You can specify a different category with the {{para|category}} parameter, e.g. {{para|category|Lua String-based templates}}. Some modules have a default category other than [[:Category:Lua-based templates]]: * [[Module:String]] has the default category [[:Category:Templates based on the String Lua module]]. * [[Module:Math]] has the default category [[:Category:Templates based on the Math Lua module]]. * [[Module:BaseConvert]] has the default category [[:Category:Templates based on the BaseConvert Lua module]]. * [[Module:Citation/CS1]] has the default category [[:Category:Templates based on the Citation/CS1 Lua module]]. ===Error category=== If no modules are specified, the transcluded page will be added to [[:Category:Lua templates with errors]]. ===Category suppression=== To suppress all categorisation, use {{para|nocat|true}}. (As well as "true", the values "yes", "y", and "1" will also work.) == TemplateData == {{TemplateData header}} {{#invoke:TNT|doc|Lua banner}} == See also == * [[Wikipedia:Lua]] * {{tl|module rating}} * {{tl|Uses TemplateStyles}} <includeonly>{{Sandbox other| | <!-- Categories go here, and interwikis go on Wikidata. --> [[Category:Lua-based templates| ]] [[Category:Wikipedia Lua-related templates]] [[Category:Template namespace templates]] }}</includeonly>
Edit summary
(Briefly describe your changes)
Please note that all contributions to Chabadpedia are considered to be released under the GNU Free Documentation License 1.3 or later (see
Chabadpedia:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Clear
(
edit
)
Template:Documentation subpage
(
edit
)
Template:For
(
edit
)
Template:High-use
(
edit
)
Template:Lua
(
edit
)
Template:Mbox
(
edit
)
Template:No redirect
(
edit
)
Template:Para
(
edit
)
Template:Plainlist/styles.css
(
edit
)
Template:Sandbox other
(
edit
)
Template:Strong
(
edit
)
Template:TemplateData header
(
edit
)
Template:Template link
(
edit
)
Template:Template link expanded
(
edit
)
Template:Template other
(
edit
)
Template:Template parameter usage
(
edit
)
Template:Template redirect
(
edit
)
Template:Template redirects
(
edit
)
Template:Terminate sentence
(
edit
)
Template:Tl
(
edit
)
Template:Tlx
(
edit
)
Template:Yesno
(
edit
)
Template:Yesno-no
(
edit
)
Module:Arguments
(
edit
)
Module:Check for unknown parameters
(
edit
)
Module:For
(
edit
)
Module:Format link
(
edit
)
Module:Hatnote
(
edit
)
Module:Hatnote/styles.css
(
edit
)
Module:Hatnote list
(
edit
)
Module:High-use
(
edit
)
Module:List
(
edit
)
Module:Lua banner
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
view source
) (protected)
Module:Message box/ombox.css
(
edit
)
Module:Redirect
(
edit
)
Module:Shortcut
(
edit
)
Module:Shortcut/config
(
edit
)
Module:Shortcut/styles.css
(
edit
)
Module:String
(
edit
)
Module:TNT
(
edit
)
Module:TableTools
(
edit
)
Module:Template link general
(
edit
)
Module:Text
(
edit
)
Module:Text/data
(
edit
)
Module:Transclusion count
(
edit
)
Module:Transclusion count/data/L
(
edit
)
Module:Yesno
(
edit
)