„Wikipedia:Lua/Modul/FileMedia/Test“ – Versionsunterschied
Erscheinungsbild
Inhalt gelöscht Inhalt hinzugefügt
update |
+ |
||
Zeile 177: | Zeile 177: | ||
|- |
|- |
||
| » test.svg« || » vector« || »1« || »{{#invoke:FileMedia|isType| test.svg| vector}}« |
| » test.svg« || » vector« || »1« || »{{#invoke:FileMedia|isType| test.svg| vector}}« |
||
|- |
|||
|- |
|||
| » test.svg« || » file « || »1« || »{{#invoke:FileMedia|isType| test.svg| file }}« |
| » test.svg« || » file « || »1« || »{{#invoke:FileMedia|isType| test.svg| file }}« |
||
|- |
|||
|- |
|||
| » test.svg« || »image« || »1« || »{{#invoke:FileMedia|isType| test.svg|image}}« |
| » test.svg« || »image« || »1« || »{{#invoke:FileMedia|isType| test.svg|image}}« |
||
|- |
|||
|- |
|||
| » test.doc« || »paged« || »1« || »{{#invoke:FileMedia|isType| test.doc|paged}}« |
| » test.doc« || »paged« || »1« || »{{#invoke:FileMedia|isType| test.doc|paged}}« |
||
|- |
|||
|- |
|||
| »Datei:test.svg« || »file« || »1« || »{{#invoke:FileMedia|isType|Datei:test.svg|file}}« |
| »Datei:test.svg« || »file« || »1« || »{{#invoke:FileMedia|isType|Datei:test.svg|file}}« |
||
|- |
|||
|- |
|||
| »WP:test.svg« || »file« || »« || »{{#invoke:FileMedia|isType|WP:test.svg|file}}« |
| »WP:test.svg« || »file« || »« || »{{#invoke:FileMedia|isType|WP:test.svg|file}}« |
||
|- |
|||
|- |
|||
| » test.doc« || »file« || »« || »{{#invoke:FileMedia|isType| test.doc|file}}« |
| » test.doc« || »file« || »« || »{{#invoke:FileMedia|isType| test.doc|file}}« |
||
|- |
|||
|- |
|||
| » « || »file« || »« || »{{#invoke:FileMedia|isType| |file}}« |
| » « || »file« || »« || »{{#invoke:FileMedia|isType| |file}}« |
||
|- |
|||
|- |
|||
| »test.svg« || » « || »« || »{{#invoke:FileMedia|isType| test.svg| }}« |
| »test.svg« || » « || »« || »{{#invoke:FileMedia|isType| test.svg| }}« |
||
|- |
|||
|- |
|||
| || || »« || »{{#invoke:FileMedia|isType}}« |
| || || »« || »{{#invoke:FileMedia|isType}}« |
||
|} |
|} |
||
Zeile 203: | Zeile 203: | ||
! Erwartet |
! Erwartet |
||
! Ergebnis |
! Ergebnis |
||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|- |
||
| |
| || »« || »{{#invoke:FileMedia|setParSize}}« |
||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
⚫ | |||
|- |
|||
| »12345px« || »« || »{{#invoke:FileMedia|setParSize|12345px}}« |
|||
|- |
|||
⚫ | |||
|- |
|||
| »50px|100px« || »50px« || »{{#invoke:FileMedia|setParSize|50px|100px}}« |
|||
|- |
|||
| »|100px« || »100px« || »{{#invoke:FileMedia|setParSize||100px}}« |
|||
|- |
|||
| »|100px« || »100px« || »{{#invoke:FileMedia|setParSize|2=100px}}« |
|||
|- |
|||
| »50|pipe=1« || »|50px« || »{{#tag:nowiki|{{#invoke:FileMedia|setParSize|50|pipe=1}}}}« |
|||
|- |
|||
| »|100px|pipe=1« || »|100px« || »{{#tag:nowiki|{{#invoke:FileMedia|setParSize|2=100px|pipe=1}}}}« |
|||
|- |
|||
| »xyz|100px|pipe=1« || »|100px« || »{{#tag:nowiki|{{#invoke:FileMedia|setParSize|xyz|100px|pipe=1}}}}« |
|||
|- |
|||
| »xyz|100px|pipe=0« || »100px« || »{{#invoke:FileMedia|setParSize|xyz|100px|pipe=0}}« |
|||
|- |
|||
| »||pipe=1« || »« || »{{#invoke:FileMedia|setParSize||pipe=1}}« |
|||
|- |
|- |
||
| » |
| »?|pipe=1« || »« || »{{#invoke:FileMedia|setParSize|?|pipe=1}}« |
||
|} |
|} |
||
Version vom 13. November 2017, 18:22 Uhr
Vorlagenprogrammierung | Diskussionen | Lua | Test | Unterseiten | |||
Modul | Deutsch | English
|
Modul: | Dokumentation |
Testfälle zum Modul:WLink (2023-01-01
):
getExtension
Aufruf 1 | Erwartet | Ergebnis |
---|---|---|
» test.svg« | »svg« | »svg« |
» File: test.gif « | »gif« | »gif« |
» Media: test.png « | »png« | »png« |
» 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« | »« | »« |
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« |
»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« | »« | »« |