释义 |
- Usage
- Set up on another wiki
- Tracking categories
{{Module rating | beta }} Usage On English Wikipedia, this module is called by {{tlx|Attached KML}}, see that template's documentation for usage instructions Set up on another wiki - 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
&60;includeonly&62;&123;&123;invoke:MODULENAME|main&125;&125;&60;/includeonly&62;&60;noinclude&62;&123;&123;TEMPLATENAME|demo=yes&125;&125;&123;&123;Documentation&125;&125;&60;/noinclude&62;
- On Wikidata, add the template to Q6690822 and the module to 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 {{Q|Q5879327}} template, or by directly including the
__HIDDENCAT__ magic word. - Add documentation to the template (e.g. by translating 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 - {{clc|Attached KML errors}} – tracks errors: malformed_qid, bad_qid, no_item, bad_from, error_nokml
- {{clc|Articles using KML from Wikidata}} – tracks mainspace articles using KML from Wikidata
- {{clc|Articles using KML not from Wikidata}} – tracks mainspace articles not using KML from Wikidata
{{#ifeq:{{SUBPAGENAME}}|sandbox | | }} 1 : Modules that add a tracking category |