Content deleted Content added
Test cases link |
This is now covered sufficiently by the redirect I hackily created at Module:Mapframe/testcases Tag: Undo |
||
Line 19: | Line 19: | ||
#* to the template (e.g. by translating [[Template:Maplink/doc]], adjusting as necessary per any localisations made in the previous step) |
#* to the template (e.g. by translating [[Template:Maplink/doc]], adjusting as necessary per any localisations made in the previous step) |
||
#* to the module (please transfer/translate these instructions so that wikimedians who read your wiki but not the English Wikipedia can also set up the module and template on another wiki). |
#* to the module (please transfer/translate these instructions so that wikimedians who read your wiki but not the English Wikipedia can also set up the module and template on another wiki). |
||
== Test cases == |
|||
Test cases are available at [[Template:Maplink/testcases]], comparing {{tlx|maplink}} (which uses the live module) and {{tlx|maplink/sandbox}} (which uses the sandbox module). |
|||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
Revision as of 19:19, 24 January 2020
On English Wikipedia, this module is called by {{Maplink}}
, see that template's documentation for usage instructions.
Usage
- Standard usage
- Just use {{Maplink}}, which passes its parameters to this module's main function.
- From another module
-
- Import this module, e.g.
local mf = require('Module:Mapframe')
- Pass a table of parameter names/values to the _main function. See {{Maplink}} documentation for parameter names and descriptions. E.g.
local mapframe = mf._main(parameters)
- Preprocess _main's output before returning it, e.g.
return frame:preprocess(mapframe)
- Import this module, e.g.
Set up on another wiki
- Create template and module:
- Localise the module
- Edit the top bits of the module, between the comments
-- ##### Localisation (L10n) settings #####
and-- #### End of L10n settings ####
, replacing values between"
"
symbols with local values (when necessary)
- Edit the top bits of the module, between the comments
- Add documentation
- to the template (e.g. by translating Template:Maplink/doc, adjusting as necessary per any localisations made in the previous step)
- to the module (please transfer/translate these instructions so that wikimedians who read your wiki but not the English Wikipedia can also set up the module and template on another wiki).