Mal:Lua/dok: Forskjell mellom sideversjoner

Fra Wikisida.no
Hopp til navigering Hopp til søk
imported>Sardanaphalus
(→‎See also: missing braces)
m (19 sideversjoner ble importert)
 
(6 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]].


== Usage ==
== Bruk ==


; Basic : {{tlx|Lua|''module name''}}
; Basic : {{tlx|Lua|''module name''}}
Linje 15: Linje 14:
== Examples ==
== Examples ==


{{Lua|Module:Bananas|nocat=true}}
{{Lua|Modul:Bananas|nocat=true}}
* {{tlx|Lua|Module:Bananas}}
* {{tlx|Lua|Modul:Bananas}}
{{clear}}
{{clear}}


{{Lua|icononly=on|Module:Bananas|Module:BananasArgs|nocat=true}}
{{Lua|icononly=on|Modul:Bananas|Modul:BananasArgs|nocat=true}}
* {{tlx|Lua|icononly{{=}}on|Module:Bananas|Module:BananasArgs}}
* {{tlx|Lua|icononly{{=}}on|Modul:Bananas|Modul:BananasArgs}}
{{clear}}
{{clear}}


== Categorisation ==
== Kategorisering ==


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}}. To suppress categorisation, use {{para|nocat|true}}.
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}}.


== See also ==
== 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

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]

  • {{Lua|Modul:Bananas}}
  • {{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]