Mal:Lua/dok: Forskjell mellom sideversjoner
< Mal:Lua
m (15 revisjoner fra en:Mal:Lua/doc) |
m (19 sideversjoner ble importert) |
||
(5 mellomliggende versjoner av 3 brukere er ikke vist) | |||
Linje 1: | Linje 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
{{Template shortcut|Lua talk}} |
|||
<!-----Categories where indicated at the bottom of this page, please; interwikis to Wikidata-----> |
<!-----Categories where indicated at the bottom of this page, please; interwikis to Wikidata-----> |
||
Denne malen brukes for å vise hvilke [[Lua]]-moduler en mal bruker. Den plasseres i maldokumentasjonen, og vil autokategorisere malen i [[:Kategori:Lua-baserte maler]]. |
|||
This template is used to show that templates have been converted to [[Lua (programming language)|Lua]]. It can be placed on the template's /doc page or on its talk page. It automatically adds the template to [[:Category:Lua-based templates]]. |
|||
== |
== Bruk == |
||
; Basic : {{tlx|Lua|''module name''}} |
; Basic : {{tlx|Lua|''module name''}} |
||
Linje 15: | Linje 14: | ||
== Examples == |
== Examples == |
||
{{Lua| |
{{Lua|Modul:Bananas|nocat=true}} |
||
* {{tlx|Lua| |
* {{tlx|Lua|Modul:Bananas}} |
||
{{clear}} |
{{clear}} |
||
{{Lua|icononly=on| |
{{Lua|icononly=on|Modul:Bananas|Modul:BananasArgs|nocat=true}} |
||
* {{tlx|Lua|icononly{{=}}on| |
* {{tlx|Lua|icononly{{=}}on|Modul:Bananas|Modul:BananasArgs}} |
||
{{clear}} |
{{clear}} |
||
== |
== Kategorisering == |
||
This template adds pages to [[: |
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 {{para|category}} parameter, e.g. {{para|category|Lua String-based templates}}. To suppress categorisation, use {{para|nocat|true}}. |
||
== |
== Se også == |
||
* [[Wikipedia:Lua]] |
* [[Wikipedia:Lua]] |
||
* {{tl|module rating}} |
|||
<includeonly> |
<includeonly> |
||
{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
||
<!-----Categories below here, please; interwikis to Wikidata-----> |
<!-----Categories below here, please; interwikis to Wikidata-----> |
||
[[Category:Wikipedia Lua templates| ]] |
|||
}} |
}} |
||
</includeonly> |
</includeonly> |
Siste sideversjon per 27. mai 2024 kl. 09:27
![]() | Dette er en underside med dokumentasjon for Mal:Lua (se denne siden for selve malen). Den inneholder brukerinformasjon, kategorier og annet som ikke er del av den originale malsiden. |
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[rediger kilde]
- 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[rediger kilde]
![]() | Denne malen benytter seg av Lua: |
{{Lua|Modul:Bananas}}
![]() | Denne malen benytter seg av Lua: |
{{Lua|icononly=on|Modul:Bananas|Modul:BananasArgs}}
Kategorisering[rediger kilde]
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å[rediger kilde]