Module:Attached KML/doc
Jump to navigation
Jump to search
| This is a documentation subpage for Module:Attached KML. It may contain usage information, categories and other content that is not part of the original module page. |
| This Lua module is used on approximately 14,000 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
| This module is rated as beta. It is considered ready for widespread use, but as it is still relatively new, it should be applied with some caution to ensure results are as expected. |
| File:Lua-Logo.svg | This module depends on the following other modules: |
Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.
Usage
[edit source]On English Wikipedia, this module is called by {{Attached KML}}. See that template's documentation for usage instructions
Set up on another wiki
[edit source]- Create template and module
- Import this module to that wiki (or copy the code over, giving attribution in the edit summary). Give the module a name that makes sense in that wiki's language (hereafter referred to as MODULENAME)
- Create a template (which should probably have the same name as the module, but referred to here as TEMPLATENAME) containing the code
<includeonly>{{#invoke:MODULENAME|main}}</includeonly><noinclude>{{TEMPLATENAME|demo=yes}}{{Documentation}}</noinclude> - On Wikidata, add the template to d:Q6690822 and the module to d:Q26689774
- 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 (as necessary) - Create the categories defined in the module localisation. These should be made hidden categories, either by including a Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (Q5879327) template, or by directly including the
__HIDDENCAT__magic word. - Add documentation to the template (e.g. by translating Template:Attached KML/doc, adjusting as necessary per any localisations made in the previous step) and 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).
Tracking categories
[edit source]- Category:Attached KML errors (6) – tracks errors: malformed_qid, bad_qid, no_item, bad_from, error_nokml
- Category:Articles using KML from Wikidata (9,438) – tracks mainspace articles using KML from Wikidata
- Category:Articles using KML not from Wikidata (4,404) – tracks mainspace articles not using KML from Wikidata