Module:Mapframe/doc: Difference between revisions

Content deleted Content added
Usage: instructions for other modules
Usage: fix
Line 6:
:Just use {{tl|Maplink}}, which passes its parameters to this module's {{mono|main}} function.
;From another module:
:# Import this module, e.g. <code><nowiki>local mf = require('Module:Mapframe/sandbox')</nowiki></code>
:# Pass a table of parameter names/values to the {{mono|_main}} function. See {{tl|Maplink}} documentation for parameter names and descriptions. E.g. <code><nowiki>local mapframe = mf._main(parameters)</nowiki></code>
:# Preprocess {{mono|_main}}'s output before returning it, e.g. <code><nowiki>return frame:preprocess(mapframe)</nowiki></code>