• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Lua

  • Template
  • Talk
  • Language
  • Watch
  • View source
(Redirected from Template:Lua talk)
This template uses Lua:
  • Module:Lua banner (sandbox)
Template documentation[view] [edit] [history] [purge]
Redirects
  • {{Lua talkTemplate:Lua talk}}
  • {{Uses LuaTemplate:Uses Lua}}
WarningThis template is used on approximately 10,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
This template uses Lua:
  • Module:Lua banner (sandbox)
For template to indicate Luba-Kasai language words, see Template:Lang-lua.

This template is used to indicate that a template uses one or more Lua modules (pages in the Module: 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.

Contents

  • 1 Usage
  • 2 Examples
  • 3 Categorisation
    • 3.1 Template category
    • 3.2 Error category
    • 3.3 Category suppression
  • 4 TemplateData
  • 5 See also

Usage

Basic
{{Lua|module name}}
All parameters
{{Lua|module 1|module 2|module 3|...|category=custom category|nocat=true}}

The first module name is required.

Examples

  • {{Lua|Module:Example}}
This template uses Lua:
  • Module:Example (sandbox)
  • {{Lua|Module:Example|Module:Example}}
This template uses Lua:
  • Module:Example (sandbox)
  • Module:Example (sandbox)
  • {{Lua|Module:$Example$}}
This template uses Lua:
  • Module:$Example$
  • {{Lua}}
Error: no modules specified

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 |category= parameter, e.g. |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 |nocat=true. (As well as "true", the values "yes", "y", and "1" will also work.)

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Lua in articles based on its TemplateData.

TemplateData for Lua

Banner for templates that rely on Lua modules.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Module 11

Name of the main module used in the template. Use multiple parameters to specify multiple modules.

Page namerequired
Module 22

Name of the second module.

Page nameoptional
Module 33

Name of the third module.

Page nameoptional
Module 44

Name of the fourth module.

Page nameoptional
Module 55

Name of the fifth module.

Page nameoptional
Module 66

Name of the sixth module.

Page nameoptional
Module 77

Name of the seventh module.

Page nameoptional
Module 88

Name of the eighth module.

Page nameoptional
Module 99

Name of the ninth module.

Page nameoptional
Module 1010

Name of the tenth module.

Page nameoptional
No category?nocat

Whether to disable categorization.

Default
0
Auto value
1
Booleanoptional
Wish?wish

Whether this template is a candidate for conversion to Lua.

Default
0
Auto value
1
Booleanoptional
Custom categorycategory

Main category to put on pages using this template, without namespace prefix.

Default
Lua-based templates
Stringoptional
Edit parameter translations

See also

  • Wikipedia:Lua
  • {{module rating}}
  • {{Uses TemplateStyles}}
The above documentation is transcluded from Template:Lua/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Lua&oldid=888711835"
Last edited on 20 March 2019, at 22:04

Languages

    • Afrikaans
    • Алтай тил
    • Anarâškielâ
    • Ænglisc
    • Аԥсшәа
    • العربية
    • অসমীয়া
    • Asturianu
    • Atikamekw
    • Авар
    • Azərbaycanca
    • تۆرکجه
    • Basa Bali
    • বাংলা
    • 閩南語 / Bân-lâm-gí
    • Башҡортса
    • Беларуская
    • Беларуская (тарашкевіца)
    • भोजपुरी
    • Bikol Central
    • Български
    • Boarisch
    • བོད་ཡིག
    • Bosanski
    • Català
    • Чӑвашла
    • Cebuano
    • Čeština
    • Chi-Chewa
    • ChiTumbuka
    • Cymraeg
    • Dansk
    • الدارجة
    • Deutsch
    • ދިވެހިބަސް
    • Dolnoserbski
    • Eesti
    • Ελληνικά
    • Эрзянь
    • Español
    • Esperanto
    • Euskara
    • Farefare
    • فارسی
    • Fiji Hindi
    • Føroyskt
    • Français
    • Frysk
    • Galego
    • ГӀалгӀай
    • ગુજરાતી
    • गोंयची कोंकणी / Gõychi Konknni
    • Gungbe
    • 客家語 / Hak-kâ-ngî
    • 한국어
    • Hawaiʻi
    • Հայերեն
    • हिन्दी
    • Hornjoserbsce
    • Hrvatski
    • Ido
    • Ilokano
    • Bahasa Indonesia
    • Íslenska
    • Jawa
    • ಕನ್ನಡ
    • Kapampangan
    • ქართული
    • Қазақша
    • Kernowek
    • Ikirundi
    • Kongo
    • Kurdî
    • Кыргызча
    • Ladin
    • Latgaļu
    • Latina
    • Latviešu
    • Lingála
    • Magyar
    • मैथिली
    • Македонски
    • മലയാളം
    • Māori
    • मराठी
    • مصرى
    • ဘာသာမန်
    • Bahasa Melayu
    • Mfantse
    • Minangkabau
    • 閩東語 / Mìng-dĕ̤ng-ngṳ̄
    • Mirandés
    • Мокшень
    • Монгол
    • မြန်မာဘာသာ
    • Nederlands
    • नेपाली
    • नेपाल भाषा
    • 日本語
    • Нохчийн
    • Nordfriisk
    • Norsk bokmål
    • Norsk nynorsk
    • Occitan
    • ଓଡ଼ିଆ
    • Oʻzbekcha / ўзбекча
    • ਪੰਜਾਬੀ
    • पालि
    • پنجابی
    • ပအိုဝ်ႏဘာႏသာႏ
    • Papiamentu
    • پښتو
    • Plattdüütsch
    • Polski
    • Português
    • Qaraqalpaqsha
    • Qırımtatarca
    • Română
    • Русский
    • Саха тыла
    • Sakizaya
    • संस्कृतम्
    • ᱥᱟᱱᱛᱟᱲᱤ
    • Scots
    • Shqip
    • සිංහල
    • Simple English
    • سنڌي
    • Slovenčina
    • Slovenščina
    • Soomaaliga
    • کوردی
    • Српски / srpski
    • Srpskohrvatski / српскохрватски
    • Sunda
    • Suomi
    • Svenska
    • Tagalog
    • தமிழ்
    • Taclḥit
    • Татарча / tatarça
    • တႆး
    • తెలుగు
    • ไทย
    • Thuɔŋjäŋ
    • Тоҷикӣ
    • ತುಳು
    • Türkçe
    • Тыва дыл
    • Удмурт
    • Українська
    • اردو
    • ئۇيغۇرچە / Uyghurche
    • Tiếng Việt
    • 文言
    • 吴语
    • 粵語
    • Zazaki
    • 中文
    • Jaku Iban
    • Kumoring
    • Руски
    • ꠍꠤꠟꠐꠤ
    • ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 20 March 2019, at 22:04 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop