Mal:Lua: Forskjell mellom sideversjoner
Hopp til navigering
Hopp til søk
(convert this to a smaller version as per User:TheDJ's suggestion on the talk page) |
m (37 sideversjoner ble importert) |
||
(9 mellomliggende versjoner av 6 brukere er ikke vist) | |||
Linje 1: | Linje 1: | ||
<includeonly>{{#invoke:Lua banner|main}}</includeonly><noinclude> |
|||
{{mbox |
|||
{{Lua|Module:Lua banner}} |
|||
| type = notice |
|||
{{Dokumentasjon}} |
|||
| small = yes |
|||
| image = [[File:Lua-logo-nolabel.svg|30px]] |
|||
| 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}}}]]}} }} |
|||
}}<includeonly>{{#ifeq: {{{nocat|}}} | true |
|||
| |
|||
| {{template other |
|||
| {{#switch: {{SUBPAGENAME}} |
|||
| doc | sandbox | sandbox2 | testcases = |
|||
| #default = [[Category:{{#if: {{{category|}}} |
|||
| {{{category}}} |
|||
| {{#switch: {{{1|}}} |
|||
| Module:String = Lua String-based templates |
|||
| Module:Math = Templates based on the Math Lua module |
|||
| Module:BaseConvert = Templates based on the BaseConvert Lua module |
|||
| Module:Citation | Module:Citation/CS1 = Lua-based citation templates |
|||
| #default = Lua-based templates |
|||
}} |
|||
}}|{{PAGENAME}}]] |
|||
}} |
|||
}} |
|||
}}{{#if: {{{2|}}} | [[Category:Lua templates with deprecated parameters]] }}</includeonly><noinclude> |
|||
{{documentation}} |
|||
<!-- Categories go on the /doc subpage, and interwikis go in Wikidata --> |
|||
</noinclude> |
</noinclude> |
Siste sideversjon per 27. mai 2024 kl. 09:25
![]() | Denne malen benytter seg av 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[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]