Vorlage:Lua: Unterschied zwischen den Versionen
(allow overriding the category) |
(allow automatic categorisation for String, Math, and BaseConvert modules) |
||
Zeile 7: | Zeile 7: | ||
| {{#switch: {{SUBPAGENAME}} | | {{#switch: {{SUBPAGENAME}} | ||
| doc | sandbox | sandbox2 | testcases = | | doc | sandbox | sandbox2 | testcases = | ||
| #default = [[Category:{{#if: {{{category|}}} | {{{category}}} | Lua-based templates }}|{{PAGENAME}}]] | | #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 | |||
| #default = Lua-based templates | |||
}} | |||
}}|{{PAGENAME}}]] | |||
}} | }} | ||
}} | }} |
Version vom 21. Juli 2013, 11:06 Uhr
![]() | This template uses the Lua programming language. Please see Wikipedia:Lua if you want to learn more about Lua or help convert other templates. |
![Template-info.png](https://upload.wikimedia.org/wikipedia/commons/thumb/e/e2/Template-info.png/50px-Template-info.png)
Dieser Artikel wurde aus einer englischen Sprachversion importiert und wurde noch nicht vollständig übersetzt. Bitte hilf mit, den Text auf deutsch verfügbar zu machen. |
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}}
![]() | This template uses the Lua programming language. Please see Wikipedia:Lua if you want to learn more about Lua or help convert other templates. |
{{lua|Modul:Quickbar2}}
![]() | This template uses Modul:Quickbar2, a script written in the Lua programming language. Please see Wikipedia:Lua if you want to learn more about Lua or help convert other templates. |
{{lua|Modul:Quickbar2|You can use this script as an example to help you get started.}}
![]() | This template uses Modul:Quickbar2, a script written in the Lua programming language. Please see Wikipedia:Lua if you want to learn more about Lua or help convert other templates. 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
- Die obige Dokumentation wurde aus der Seite Vorlage:Lua/Doku eingefügt. (bearbeiten | Versionsgeschichte) Die Kategorien für diese Vorlage sollten in der Dokumentation eingetragen werden. Die Interwiki-Links sollten auf Wikidata eingepflegt werden.
- Testseite anlegen -Editnotice anlegen -Wartungsseite anlegen
- Liste der Unterseiten