Mal:Lua/dok: Forskjell mellom sideversjoner

Fra Wikisida.no
Hopp til navigering Hopp til søk
(update with new name)
m (19 sideversjoner ble importert)
 
(15 mellomliggende versjoner av 6 brukere er ikke vist)
Linje 1: Linje 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Categories go at the bottom of this page and interwikis go in 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. 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]] if the page is in the template namespace, and it is not on any of the subpages /doc, /sandbox, /sandbox2 or /testcases. To suppress categorisation explicitly, use {{para|nocat|true}}.


== Usage ==
== Bruk ==

{{tlx|lua|''module name''}}
; Basic : {{tlx|Lua|''module name''}}

; All parameters : {{tlx|Lua|icononly{{=}}''on''|''module 1''|''module 2''|''module 3''|''module 4''|''module 5''|category{{=}}''custom category''|nocat{{=}}''true''}}

(Setting {{para|icononly}} as "on", "true", "yes", etc, suppresses the "Uses Lua:" text. [[Wikipedia:Lua]] may still be accessed by clicking on the logo.)


== Examples ==
== Examples ==


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


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


== See also ==
== 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 {{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 | |
<!-- Categories go here, and interwikis go in Wikidata -->
<!-----Categories below here, please; interwikis to Wikidata----->
[[Category:Wikipedia 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]