Mal:Lua: Forskjell mellom sideversjoner
Hopp til navigering
Hopp til søk
(check for templates with no {{{1}}} parameter) |
imported>Sardanaphalus (Update from sandbox (icononly option)) |
||
Linje 1: | Linje 1: | ||
{{ |
{{Mbox |
||
| type = notice |
| type = notice |
||
| small = yes |
| small = yes |
||
| image = [[File:Lua-logo-nolabel.svg|30px]] |
| image = [[File:Lua-logo-nolabel.svg|30px|alt=Lua logo|link=Wikipedia:Lua]] |
||
| text = {{#if:{{{icononly|}}} | |'''Uses''' [[Wikipedia:Lua|Lua]]:}} |
|||
| text = '''Uses''' [[Wikipedia:Lua|Lua]]: {{bulleted list | {{#if:{{{1|<noinclude>1</noinclude>}}}|[[:{{{1}}}]]}} | {{#if:{{{2|}}}|[[:{{{2}}}]]}} | {{#if:{{{3|}}}|[[:{{{3}}}]]}} | {{#if:{{{4|}}}|[[:{{{4}}}]]}} | {{#if:{{{5|}}}|[[:{{{5}}}]]}} }} |
|||
{{Bulleted list |
|||
}}<includeonly>{{#ifeq: {{{nocat|}}} | true |
|||
| {{#if:{{{1|<noinclude>1</noinclude>}}} |[[:{{{1}}}]]}} |
|||
| |
|||
| {{#if:{{{2|}}} |[[:{{{2}}}]]}} |
|||
⚫ | |||
| {{# |
| {{#if:{{{3|}}} |[[:{{{3}}}]]}} |
||
| {{#if:{{{4|}}} |[[:{{{4}}}]]}} |
|||
⚫ | |||
| {{#if:{{{5|}}} |[[:{{{5}}}]]}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
}} |
}} |
||
}}<!-- |
|||
⚫ | |||
--><includeonly><!-- |
|||
{{documentation}} |
|||
<!-- Categories go on the /doc subpage, and interwikis go in Wikidata --> |
|||
----------Categorization---------- |
|||
</noinclude> |
|||
-->{{#ifeq:{{{nocat|}}}|true | <!--(suppress categorization)--> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
| #default = [[Category:{{#if:{{{category|}}} |{{{category}}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
}} |
|||
⚫ | |||
-->]] |
|||
⚫ | |||
-->{{#if:{{{2|}}}{{#if:{{{1|}}} | |(first parameter absent)}} |
|||
⚫ | |||
⚫ | |||
--></includeonly><noinclude>{{Documentation}}</noinclude> |
Sideversjonen fra 25. mai 2014 kl. 12:29
![]() | Uses Lua:
|
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
![]() | Uses Lua: |
{{Lua|Modul:Bananas}}
![]() |
{{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å