Wikipedia:Lua/Modul/Data/en
Wikipedia:Lua Modul Data en
| Vorlagenprogrammierung | Diskussionen | Lua | Test | Unterseiten | |||
| Modul | Deutsch | English
|
Modul: | Dokumentation | |||
Data – module with central access to external table data or to its data providing submodules
Functions for templates
- importData
- yields data from Commons tables.
- Parameters:
1orobject– selects data from an object (for example: DE-081280131 for Wertheim).2orselection– selects numerically or nonnumerically data from a topical selection of the selected object.selectionName– selects nonnumerically data from a topical selection of the selected object.3orversion– selects numerically or nonnumerically data from a (temporal) version of the selected selection.versionDate– selects nonnumerically data from a (temporal) version of the selected selection.current– selects data from the present version of the selected selection.4orkey– selects data of the selected version on a key.tryOther– provides data from older versions on the key.5orfield– selects a statement from the selection made by the selecting arguments.objectError– provides a custom message for an incorrect selected object.selectionError– provides a custom message for an incorrect selected selection.versionError– provides a custom message for an incorrect selected (temporal) version.keyError– provides a custom message for an incorrect selected key.fieldError– provides a custom message for an incorrect selected field.keyAddition– provides a custom message for a key on summed data.arg1– provides a custom value.
- invokeData
- calls
getDatain the submodule or creates an error message respectively a link to create the submodule. - Parameters:
1orobject– selects the submodule (for example: CH-AG for Kanton Aargau).2orselection– transmits the argumentselectionto the submodule.3orversion– transmits the argumentversionto the submodule.4orkey– transmits the argumentkeyto the submodule.5orfield– transmits the argumentfieldto the submodule.- Additional parameters are transmitted like specified as arguments to the submodule.
- evaluate
- evaluates expressions.
- Parameters:
1– provides the nonnumerical result or the numerical value which can be inserted in parameter2.2– provides the expression in which all#are replaced by the numerical value from parameter1and which is evaluated for the result thereupon.
Examples (test page)
A test page illustrates practical use.
Funktions for Lua modules
There are no such functions.
Usage
It is used as general auxiliary in templates.
Dependences
The module is depending on the actual submodule.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.