Diagnostics/Scribunto/LuaCommon
From XOWA: the free, open-source, offline wiki application
Lua Common
- Calls code in
- Tests compatibility for LuaCommon.php and mw.lua
name | code | actl | rslt |
---|---|---|---|
pass | getExpandedArgument | {{#invoke:Diagnostics/LuaCommon|getExpandedArgument_number_2 |val_1|val_2}} |
arg_1 is 'val_1'; arg_2 is 'val_2'
|
pass | getExpandedArgument_byOrdinal | {{#invoke:Diagnostics/LuaCommon|getExpandedArgument_by_ordinal |key_1=val_1|val_2}} |
[1] is 'val_2'
|
pass | getAllExpandedArguments | {{#invoke:Diagnostics/LuaCommon|getAllExpandedArguments |val_1|val_2|val_3}} |
1:val_1;2:val_2;3:val_3;
|
pass | getAllExpandedArgs;key_is_int | {{#invoke:Diagnostics/LuaCommon|getAllExpandedArguments_int_key|1=a}} |
a
|
pass | preprocess;redundant_keys | {{#invoke:Diagnostics/LuaCommon|preprocess_ifeq_as_yn |val_1|val_1|when_true_val=y1|when_false_val=n1|when_true_val=y2}} |
y2
|
pass | expandTemplate | {{#invoke:Diagnostics/LuaCommon|expandTemplate|val_1|val_2}} |
arg_1 is val_1; arg_2 is val_2
|
pass | expandTemplate; PHP bool; true -> 1 false -> "" | {{#invoke:Diagnostics/LuaCommon|expandTemplate_bool}} |
bool_true is "1"; bool_false is "";
|
pass | callParserFunction | {{#invoke:Diagnostics/LuaCommon|callParserFunction|urlencode|abc}} |
abc
|
pass | isSubsting;false | {{#invoke:Diagnostics/LuaCommon|isSubsting}} |
false
|
pass | isSubsting;true | {{safesubst:#invoke:Diagnostics/LuaCommon|isSubsting}} |
true
|
pass | getFrameTitle_current | {{#invoke:Diagnostics/LuaCommon|getFrameTitle_current}} |
Module:Diagnostics/LuaCommon
|
pass | getFrameTitle_parent | {{Diagnostics/LuaCommon/getFrameTitle_parent}} |
Template:Diagnostics/LuaCommon/getFrameTitle parent
|
pass | getFrameTitle_parent.upper | {{diagnostics/LuaCommon/getFrameTitle_parent}} |
Template:Diagnostics/LuaCommon/getFrameTitle parent
|
pass | newChildFrame.title | {{#invoke:Diagnostics/LuaCommon|newChildFrame_titled}} |
title:Title0; arg1:v1
|
pass | newChildFrame.title | {{#invoke:Diagnostics/LuaCommon|newChildFrame_untitled}} |
title:Module:Diagnostics/LuaCommon; arg1:v1
|
pass | preprocess_args;frame is current | {{#invoke:Diagnostics/LuaCommon|preprocess_args_current|match|y|n}} |
y
|
pass | preprocess_args;frame is parent | {{Diagnostics/LuaCommon/preprocess_args_parent|match|y|n}} |
y
|
pass | preprocess calling Module functions should not call them twice; fails if onceonce | {{#invoke:Diagnostics/LuaCommon|preprocess_nested_main}} |
once
|