Nookipedia:Lua
From Nookipedia, the Animal Crossing wiki
This page is actively in the process of development or reworking.
You are welcome to assist byediting it as well, though content may change rapidly as it is worked on by users. If no changes have been made in several days, please remove this template.
Lua is a programming language that is available on Nookipedia via theScribunto MediaWiki extension. Lua code is hosted in Module pages and can be invoked by using the{{#invoke:}} function, with the ability to pass in parameters similar to templates. Lua is powerful, with the ability to render templates and HTML output, and perform many things that wikitext cannot.
On Nookipedia, we generally try to reserve Lua for cases in which a wikitext solution is impossible or very complex. Since most editors are familiar with wikitext and not Lua, wikitext is the preferred solution for simple templates.
Help[edit]
- Lua for beginners on the English Wikipedia
- Scribunto/Lua reference manual on MediaWiki
- Programming in Lua (official book)
List of modules[edit]
- Module:Sandbox - used for testing and experiments.
- Module:Formatnum - format and localize numbers.
- Module:Items - utility functions for item-related topics (sorting furniture and generatingavailability templates from a list).
- Module:Availability - used in the {{Availability}} template to output source.
- Module:Materials - used in the {{Material}} and {{PC Material}} templates to output material.
- Module:Currency - used in the {{Currency}} template to output currency.
- Module:NHVillagerItemOutput - used to output the list of villagers that may feature or wear aNew Horizons item.
- Module:PC Prose - generates prose for ourAnimal Crossing: Pocket Camp item pages.
- Module:Plain text - strips simple wikitext (text formatting, links, etc.) and select templates from a string.
| Nookipedia | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||

