Egocarib

Joined 3 August 2021
446 bytes added ,  20:37, 20 August 2019
m
no edit summary
mNo edit summary
mNo edit summary
Line 14: Line 14:
* [[Special:ExpandTemplates]]
* [[Special:ExpandTemplates]]
* [[Special:CargoTables]]
* [[Special:CargoTables]]
===Example of how to use the debug console when editing/creating a Module===
frame=mw.getCurrentFrame()<br>
frame.args={someArg='this is the argument'}<br>
val = frame.args.someArg<br>
mw.log(val)<br>
:&lt;outputs <code>this is the argument</code>&gt;
val2 = frame:preprocess(val)<br>
:&lt;expands any templates if they were passed into the argument&gt;
mw.logObject(frame.args)<br>
:&lt;shows the full structure of the frames.args object&gt;