Module:Mapframe/doc

From imedwiki
Jump to navigation Jump to search

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.

Usage

Standard usage
Just use {{Maplink}}, which passes its parameters to this module's Page Template:Mono/styles.css has no content.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 Page Template:Mono/styles.css has no content._main function. See {{Maplink}} documentation for parameter names and descriptions. E.g. local mapframe = mf._main(parameters)
  3. Preprocess Page Template:Mono/styles.css has no content._main's output before returning it, e.g. return frame:preprocess(mapframe)

Set up on another wiki

  1. Create template and module:
    • Import this module and its template to that wiki (or copy the code over, giving attribution in the edit summary). Optionally, give them a name that makes sense in that wiki's language
    • On Wikidata, add them to the items Q52554979 and Q27882107
  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).


This module (and the documentation) are based (partially) on Module:Mapframe/doc from the free encyclopedia wikipedia and is licensed under GNU license for free documentation and the Creative Commons Attribution/Share Alike. On wikipedia there is a List of authors accessible. More about importing from wikipedia on page Imedwiki:Importing from wikipedia.