Content deleted Content added
→Usage: in main template now, not just sandbox |
→Usage: instructions for other modules |
||
Line 1:
{{Module rating |beta}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
== Usage ==▼
On English Wikipedia, this module is called by {{tlx|Maplink}}, see that template's documentation for usage instructions.
▲== Usage ==
;Standard usage:
: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>
== Set up on another wiki ==
|