Vorlage:Lua: Unterschied zwischen den Versionen

Keine Bearbeitungszusammenfassung
K (37 Versionen von wpen:Template:Lua importiert)
 
(23 dazwischenliegende Versionen von 16 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
{{Infobox
{{ombox
| bodyclass = vcard
| type  = content
 
| image = [[File:Lua-Logo.svg|40px]]
| titleclass = fn
| text  = Diese Vorlage benutzt {{#if: {{{1|}}} | '''[[{{{1}}}]]''', }} {{#if: {{{2|}}} | '''[[{{{2}}}]]''', }} {{#if: {{{3|}}} | '''[[{{{3}}}]]''', }} Skripte geschrieben in der [[w:Lua|Programmiersprache Lua]]. Bitte informiere dich [[w:Lua|dort]], wenn du mehr über die Sprache und ihren Einsatz erfahren willst. {{{text|}}} Diese Vorlagen sollte im Regelfall {{Strong|nicht}} [[Hilfe:Vorlagen#Verwendung von Vorlagen|ersetzt]] werden.
| titlestyle = padding-bottom:0.2em;{{{titlestyle|}}}
}}<includeonly>{{#ifeq: {{{nocat|}}} | true
| title = {{{name|<includeonly>{{PAGENAME}}</includeonly>}}}
  |
 
  | {{template other
| image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image_size|{{{imagesize|}}}}}} |sizedefault=frameless |alt={{{alt|}}} }}
    | {{#switch: {{SUBPAGENAME}}  
| caption = {{{caption|}}}
      | Doku | Sandkasten | Testszenario =  
 
      | #default = [[Kategorie:{{#if: {{{category|}}}  
| headerstyle = {{{headerstyle|background:#eee;}}}
          | {{{category}}}  
| labelstyle = padding-top:0.2em;line-height:1.2em; padding-right:1.0em<!--(to ensure some gap between (long/unwrapped) labels and subsequent data on same line)-->;
          | {{#switch: {{{1|}}}
| datastyle = line-height:1.3em;
            | Module:String                        = Lua-basierte Vorlagen
 
            | Module:Math                          = Lua-basierte Vorlagen
| label1  = Highest [[Sports governing body|governing&nbsp;body]]
            | Module:BaseConvert                    = Lua-basierte Vorlagen
|  data1  = {{{union|}}}
            | Module:Citation | Module:Citation/CS1 = Lua-basierte Vorlagen
| label2  = Nicknames
            | #default                              = Lua-basierte Vorlagen
|  data2  = {{{nicknames|{{{nickname|}}}}}}
            }}
| label3  = {{#if:{{{firstlabel|}}} |{{{firstlabel}}} |First played}}
        }}|{{PAGENAME}}]]  
| data3  = {{{first|}}}
      }}  
| label4  = Registered players
  }}
| data4  = {{{registered|}}}
}}</includeonly><noinclude>
| label5  = Clubs
{{Dokumentation}}
|  data5  = {{{clubs|}}}
<!-- Kategorien bitte auf die Unterseite /Doku, Interwiki-Links bitte nach Wikidata. Danke! -->
 
</noinclude>
| header6  = {{#if:{{{contact|}}}{{{team|}}}{{{mgender|}}}{{{category|}}}{{{equipment|}}}{{{ball|}}}{{{venue|}}} |Characteristics}}
| label7  = Contact
| data7  = {{{contact|}}}
| label8  = Team members
| data8  = {{{team|}}}
| label9  = Mixed gender
|  data9  = {{{mgender|}}}
| label10  = Type
|  data10  = {{{type|{{{category|}}}}}}
| label11  = Equipment
|  data11  = {{#if:{{{equipment|}}} |{{{equipment|}}} |{{{ball|}}} }}
| label12  = Venue
| data12  = {{{venue|}}}
 
| header13 = {{#if:{{{olympic|}}}{{{obsolete|}}}{{{region|{{{country/region|}}}}}}{{{paralympic|}}} |Presence}}
| label14  = Country or&nbsp;region
|  data14  = {{{region|{{{country/region|}}}}}}  
| label15  = [[Olympic Games|Olympic]]
|  data15  = {{{olympic|}}}
| label16  = [[Paralympic Games|Paralympic]]
|  data16  = {{{paralympic|}}}
| label17  = Obsolete
|  data17  = {{#if:{{{obsolete|}}} |Yes}}
 
}}<noinclude>{{Documentation}}</noinclude>

Aktuelle Version vom 8. Februar 2023, 17:27 Uhr

Template-info.png Dokumentation für die Vorlage {{Lua}}[Ansicht] [Bearbeiten] [Versionsgeschichte] [Aktualisieren]


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 Kategorie:Lua-basierte Vorlagen.

Usage

Basic usage

{{lua|module name}}

All parameters

{{lua|module name|note|category=custom category|nocat=true}}

Examples

  • {{lua|Modul:Quickbar2}}
  • {{lua|Modul:Quickbar2|You can use this script as an example to help you get started.}}

Categorisation

This template adds pages to Kategorie:Lua-basierte Vorlagen 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 |category= parameter, e.g. |category=Lua String-based templates. To suppress categorisation, use |nocat=true.

Siehe auch

Hinweise