Sjabloon:Lua
![]() | GebruikLua: |
![Dokumentasie-ikoon](https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
![]() | Hierdie sjabloon se dokumentasie bestaan nie, of gee 'n onakkurate beskrywing van sy funksionaliteitof die parameters in sy kode. Help assebliefom dit te verbeter. |
This template is used to show that templates have been converted toLua.It is placed at the top of the template's /doc page. It automatically adds the template toCategory:Lua-based templates,or to one of its subcategories.
Parameters
[wysig bron]- Eenvoudig
- Sjabloon:Sjt
- Alle parameters
- Sjabloon:Sjt
{{voorbeeld | par1 = x / y / z | par2 = niks / [[Beeld:enige beeld.svg|40px]] |... }}
par1
- Kies uit x, y of z.
par2
- Verskaf skakel na beeld of niks.
Gebruik
[wysig bron]The first module name is required.
{{Lua|Module:Bananas}}
{{LuaSjabloon:\sandbox|Module:Bananas|nocat=true}}
{{Lua|Module:Bananas|Module:BananasArgs}}
{{LuaSjabloon:\sandbox|Module:Bananas|Module:BananasArgs|nocat=true}}
{{Lua|Module:Bananas|Module:BananasArgs|Module:HelloWorld}}
{{LuaSjabloon:\sandbox|Module:Bananas|Module:BananasArgs|Module:HelloWorld|nocat=true}}
{{Lua}}
{{LuaSjabloon:\sandbox|nocat=true}}
Categorisation
[wysig bron]Template category
[wysig bron]This template adds pages toCategory:Lua-based templatesif 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|category=
parameter, e.g.|category=Lua String-based templates
.
Some modules have a default category other thanCategory:Lua-based templates:
- Module:Stringhas the default categoryCategory:Lua String-based templates.
- Module:Mathhas the default categoryCategory:Templates based on the Math Lua module.
- Module:BaseConverthas the default categoryCategory:Templates based on the BaseConvert Lua module.
- Module:CitationandModule:Citation/CS1both have the default categoryCategory:Lua-based citation templates.
Error category
[wysig bron]If no modules are specified, the transcluded page will be added toCategory:Lua templates with errors.
Category suppression
[wysig bron]To suppress all categorisation, use|nocat=true
.(As well as "true", the values "yes", "y", and "1" will also work.)
Sjabloondata
[wysig bron]Vervang: Maak 'n lys vir inligting wat in die visuele redigeerder moet verskyn.Let wel hierdie is vir gebruik in die Visuele redigeerder. Dit verskaf behoorlike benaming en beskrywings vir die gebruiker vir 'n sjabloon. Die onderstaande genereer tans nog in Engels.
Voorbeeldsjabloon wat 'n klein kassie skep wat noem dat dit 'n voorbeeld is.
Parameter | Beskrywing | Soort | Status | |||
---|---|---|---|---|---|---|
Geen parameters gespesifiseer nie |
Sien ook
[wysig bron]Die bostaandedokumentasieisingesluitvanafSjabloon:Lua/doc.(wysig|geskiedenis) Redigeerders kan eksperimenteer in hierdie sjabloon se sandput(skep|spieël)en toetsgevalle(skep)blaaie. Plaas asseblief kategorieë op die/doc-subbladsy.Subbladsye vir die sjabloon. |