Caves of Qud Wiki
Advertisement

Template:Qud look Template:Qud quote



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>