Jump to content

Module:Mapframe/doc

ពីវិគីភីឌា
កំណែ​នៅ ម៉ោង០៣:៣៦ ថ្ងៃអង្គារ ទី២៥ ខែមករា ឆ្នាំ២០២២ ដោយ Tiamichaelnuksu1994 (ការពិភាក្សា | ការរួមចំណែក) (បានបង្កើតទំព័រដែលផ្ដើមដោយ {{Module rating |beta}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{Lua|Module:Transcluder}} 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}}...)
(ប្រៀបធៀប) ← កំណែ​ចាស់ជាង | កំណែថ្មីបំផុត (ប្រៀបធៀប) | កំណែថ្មីជាង → (ប្រៀបធៀប)

This is the documentation page for Module:Mapframe

On English Wikipedia, this module is called by {{Maplink}}, see that template's documentation for usage instructions.

Standard usage
Just use {{Maplink}}, which passes its parameters to this module's main function.
From another module
  1. Import this module, e.g. local mf = require('Module:Mapframe')
  2. 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)
  3. Preprocess _main's output before returning it, e.g. return frame:preprocess(mapframe)

Set up on another wiki

[កែប្រែ]
  1. Create template and module:
  2. 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)
  3. 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).