Module talk:Yesno: Difference between revisions
Appearance
Undid revision 541929442 by Ori.livneh (talk) Ooops |
No edit summary |
||
| Line 97: | Line 97: | ||
:Just needs to handle spaces in the params better. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 11:41, 2 March 2013 (UTC) | :Just needs to handle spaces in the params better. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 11:41, 2 March 2013 (UTC) | ||
::Thanks. Fixed. I moved your test case to the table above. --[[User:Ori.livneh|Ori.livneh]] ([[User talk:Ori.livneh|talk]]) 05:58, 3 March 2013 (UTC) | ::Thanks. Fixed. I moved your test case to the table above. --[[User:Ori.livneh|Ori.livneh]] ([[User talk:Ori.livneh|talk]]) 05:58, 3 March 2013 (UTC) | ||
==See also== | |||
* {{ml|module=Yesno}} | |||
Revision as of 22:29, 11 March 2013
| Module output | Template output | Expected |
|---|---|---|
| Script error: The module returned a function value. It is supposed to return an export table. | yes | yes |
| Script error: The module returned a function value. It is supposed to return an export table. | yes | yes |
| Script error: The module returned a function value. It is supposed to return an export table. | yes | yes |
| Script error: The module returned a function value. It is supposed to return an export table. | yes | yes |
| Script error: The module returned a function value. It is supposed to return an export table. | (blank) | |
| Script error: The module returned a function value. It is supposed to return an export table. | (blank) | |
| Script error: The module returned a function value. It is supposed to return an export table. | (blank) | |
| Script error: The module returned a function value. It is supposed to return an export table. | (blank) | |
| Script error: The module returned a function value. It is supposed to return an export table. | yes | yes |
| Script error: The module returned a function value. It is supposed to return an export table. | bacon | bacon |
| Script error: The module returned a function value. It is supposed to return an export table. | ham | ham |
| Script error: The module returned a function value. It is supposed to return an export table. | eggs | |
| Script error: The module returned a function value. It is supposed to return an export table. | ham | |
| Script error: The module returned a function value. It is supposed to return an export table. | eggs | |
| Script error: The module returned a function value. It is supposed to return an export table. | sausage | sausage |
| Script error: The module returned a function value. It is supposed to return an export table. | cup-of-tea | cup-of-tea |
| Script error: The module returned a function value. It is supposed to return an export table. | bacon | bacon |
| Script error: The module returned a function value. It is supposed to return an export table. | cup-of-tea | cup-of-tea |
| Script error: The module returned a function value. It is supposed to return an export table. | no | no |
| Script error: The module returned a function value. It is supposed to return an export table. | yes | yes |
| Script error: The module returned a function value. It is supposed to return an export table. | no | no |
As you can see, the template does not behave exactly as its documentation claims it does. I was not sure which to regard as authoritative: the ideal or actual implementation. I ultimately went with the former. Removing and not any from the Lua code will make the module behave like exactly like the template.
--Ori.livneh (talk) 10:46, 28 February 2013 (UTC)
- Just needs to handle spaces in the params better. -- WOSlinker (talk) 11:41, 2 March 2013 (UTC)
- Thanks. Fixed. I moved your test case to the table above. --Ori.livneh (talk) 05:58, 3 March 2013 (UTC)
See also
- {{[[Module:{{{1}}}|#invoke:{{{1}}}]]|function}}