8,290
edits
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> | |||
:<outputs <code>this is the argument</code>> | |||
val2 = frame:preprocess(val)<br> | |||
:<expands any templates if they were passed into the argument> | |||
mw.logObject(frame.args)<br> | |||
:<shows the full structure of the frames.args object> | |||