Mal:Lua: Forskjell mellom sideversjoner
Hopp til navigering
Hopp til søk
(quick update) |
(revert - you *can* substitute Lua modules - just use {{subst:#invoke:foo|bar}}) |
||
Linje 2: | Linje 2: | ||
| type = style |
| type = style |
||
| image = [[File:Gnome-utilities-terminal.svg|42px]] |
| image = [[File:Gnome-utilities-terminal.svg|42px]] |
||
| text = This template uses {{#if: {{{1|}}} | '''[[{{{1}}}]]''', a script written in }} the [[Lua (programming language)|Lua programming language]] |
| text = This template uses {{#if: {{{1|}}} | '''[[{{{1}}}]]''', a script written in }} the [[Lua (programming language)|Lua programming language]]. Please see [[Wikipedia:Lua]] if you want to learn more about Lua or help convert other templates. {{{2|}}} |
||
}}<includeonly>{{#ifeq: {{{nocat|}}} | true |
}}<includeonly>{{#ifeq: {{{nocat|}}} | true |
||
| |
| |
Sideversjonen fra 11. nov. 2013 kl. 09:40
![]() | This template uses the Lua programming language. Please see Wikipedia:Lua if you want to learn more about Lua or help convert other templates. |
Maldokumentasjon
Denne malen brukes for å vise hvilke Lua-moduler en mal bruker. Den plasseres i maldokumentasjonen, og vil autokategorisere malen i Kategori:Lua-baserte maler.
Bruk
- Basic
{{Lua|module name}}
- All parameters
{{Lua|icononly=on|module 1|module 2|module 3|module 4|module 5|category=custom category|nocat=true}}
(Setting |icononly=
as "on", "true", "yes", etc, suppresses the "Uses Lua:" text. Wikipedia:Lua may still be accessed by clicking on the logo.)
Examples
![]() | This template uses Modul:Bananas, a script written in the Lua programming language. Please see Wikipedia:Lua if you want to learn more about Lua or help convert other templates. |
{{Lua|Modul:Bananas}}
![]() | This template uses Modul:Bananas, a script written in the Lua programming language. Please see Wikipedia:Lua if you want to learn more about Lua or help convert other templates. Modul:BananasArgs |
{{Lua|icononly=on|Modul:Bananas|Modul:BananasArgs}}
Kategorisering
This template adds pages to Kategori:Lua-baserte maler if the page is in the template namespace, and it is not on any of the subpages /dok, /sandkasse, /sandkasse2 eller /testtilfeller. You can specify a different category with the |category=
parameter, e.g. |category=Lua String-based templates
. To suppress categorisation, use |nocat=true
.
Se også