User:Egocarib: Difference between revisions
Jump to navigation
Jump to search
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> | |||
Revision as of 20:37, 20 August 2019
egocarib
A peculiar contraption.
Also known as exanguination microtubules in some parasangs.
My Pages
Other Useful Pages
Example of how to use the debug console when editing/creating a Module
frame=mw.getCurrentFrame()
frame.args={someArg='this is the argument'}
val = frame.args.someArg
mw.log(val)
- <outputs
this is the argument
>
val2 = frame:preprocess(val)
- <expands any templates if they were passed into the argument>
mw.logObject(frame.args)
- <shows the full structure of the frames.args object>
Etcetera