请输入您要查询的百科知识:

 

词条 Module:Mapframe/doc
释义

  1. Usage

  2. Set up on another wiki

{{Module rating |beta}}

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
  1. Import this module, e.g. local mf = require(&39;Module:Mapframe&39;)
  2. Pass a table of parameter names/values to the {{mono|_main}} function. See {{tl|Maplink}} documentation for parameter names and descriptions. E.g. local mapframe = mf._main(parameters)
  3. Preprocess {{mono|_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 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).

{{#ifeq:{{SUBPAGENAME}}|sandbox | |

}}

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/13 17:54:52