Wikipedia:Lua/Modul/FileMedia/Test

Vorlagenprogrammierung Diskussionen Lua Test Unterseiten
Modul Deutsch English

Modul: Dokumentation

Testfälle zum Modul:FileMedia (2025-07-16 Wikidata: 2025-07-16):

getBasePage

Aufruf 1 Erwartet Ergebnis
»Wikipedia:Hauptseite/styles.css« »Wikipedia:Hauptseite/styles« »Wikipedia:Hauptseite/styles«
»MediaWiki:Common.css« »« »«
»Wikipedia:Hauptseite« »« »«
»« »« »«

getExtension

Aufruf 1 Erwartet Ergebnis
» test.svg« »svg« »svg«
» File: test.gif « »gif« »gif«
» Media: test.png « »png« »png«
» File: test.jpeg« »jpeg« »jpeg«
» File: test.JPEG« »jpeg« »jpeg«
» Media: flop« »« »«
»WP:test.svg« »« »«
» « »« »«
»« »«

getHeight

Aufruf 1 Erwartet Ergebnis
»Wikipedia-logo-v2-de.png« »155« »155«
» File: not existing.gif « »« »«
» « »« »«
»« »«

getHeightWidth

Aufruf 1 Erwartet Ergebnis
»Wikipedia-logo-v2-de.png« »155x135px« »155x135px«
» File: not existing.gif « »« »«
» « »« »«
»« »«

getMimeType

Aufruf 1 Erwartet Ergebnis
»Wikipedia-logo-v2-de.png« »image/png« »image/png«
» File: not existing.gif « »« »«
» « »« »«
»« »«

getPageCount

Aufruf 1 Erwartet Ergebnis
»Wikipedia-einmaleins_web.pdf« »20« »20«
»Wikipedia-logo-v2-de.png« »0« »0«
» File: not existing.gif « »« »«
» « »« »«
»« »«

getSize

Aufruf 1 Erwartet Ergebnis
»Wikipedia-logo-v2-de.png« »10239« »10239«
» File: not existing.gif « »« »«
» « »« »«
»« »«

getTitle

Aufruf 1 Erwartet Ergebnis
» test.svg« »test.svg« »test.svg«
» File: test.gif « »test.gif« »test.gif«
» Media: test.png « »test.png« »test.png«
» Media: flop« »« »«
»WP:test.svg« »« »«
» « »« »«
»« »«

getType

Aufruf 1 Erwartet Ergebnis
» test.svg« »vector« »vector«
» test.png« »pixel« »pixel«
» test.PNG« »pixel« »pixel«
» test.mp3« »audio« »audio«
»test« »« »«

getWidth

Aufruf 1 Erwartet Ergebnis
»Wikipedia-logo-v2-de.png« »135« »135«
» File: not existing.gif « »« »«
» « »« »«
»« »«

isFile

Aufruf 1 Erwartet Ergebnis
» Datei:Icon-gears2.svg « »1« »1«
»Icon-gears2.svg« »1« »1«
»Datei.svg« »« »1«
»Wikipedia:Hauptseite« »« »«
» « »« »«

isType

Aufruf Erwartet Ergebnis
1 2
» test.svg« » vector« »1« »1«
» test.svg« » file « »1« »1«
» test.svg« »image« »1« »1«
» test.doc« »paged« »1« »1«
» test.DOC« »paged« »1« »1«
»Datei:test.svg« »file« »1« »1«
»WP:test.svg« »file« »« »«
» test.doc« »file« »« »«
» « »file« »« »«
»test.svg« » « »« »«
»« »«

setParSize

Aufruf Erwartet Ergebnis
»« »«
» « »« »«
»50px« »50px« »50px«
»234« »234px« »234px«
»x100px« »x100px« »x100px«
»x100« »x100px« »x100px«
»20x30px« »20x30px« »20x30px«
»100x200« »100x200px« »100x200px«
»70PX« »70px« »70px«
» 50px « »50px« »50px«
»mini« »« »«
»0« »« »«
»12345px« »« »«
»-89px« »« »«
»50px|100px« »50px« »50px«
»|100px« »100px« »100px«
»|100px« »100px« »100px«
»50|pipe=1« »|50px« »|50px«
»|100px|pipe=1« »|100px« »|100px«
»xyz|100px|pipe=1« »|100px« »|100px«
»xyz|100px|pipe=0« »100px« »100px«
»||pipe=1« »« »«
»?|pipe=1« »« »«

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.

  1. 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:
  2. 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.
  3. 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.
  4. 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.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.