Modul:Arguments/Doku: Unterschied zwischen den Versionen

K
Textersetzung - „Kategorie:Module“ durch „Kategorie:Vorlage:Modul
(Die Seite wurde neu angelegt: „{{DU}} This module provides easy processing of arguments passed from #invoke. It is a meta-module, meant for use by other modules, and should not be called fr…“)
 
K (Textersetzung - „Kategorie:Module“ durch „Kategorie:Vorlage:Modul“)
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 1: Zeile 1:
{{DU}}
{{DU}}
This module provides easy processing of arguments passed from #invoke. It is a meta-module, meant for use by other modules, and should not be called from #invoke directly. Its features include:
This module provides easy processing of arguments passed from #invoke. It is a meta-module, meant for use by other modules, and should not be called from #invoke directly. Its features include:
* Easy trimming of arguments and removal of blank arguments.
* Easy trimming of arguments and removal of blank arguments.
Zeile 344: Zeile 343:


The use of metatables also has its downsides. Most of the normal Lua table tools won't work properly on the args table, including the <code>#</code> operator, the <code>next()</code> function, and the functions in the table library. If using these is important for your module, you should use your own argument processing function instead of this module.<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
The use of metatables also has its downsides. Most of the normal Lua table tools won't work properly on the args table, including the <code>#</code> operator, the <code>next()</code> function, and the functions in the table library. If using these is important for your module, you should use your own argument processing function instead of this module.<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
[[Kategorie:Module]]
[[Kategorie:Vorlage:Modul]]
}}</includeonly>
}}</includeonly>