Template:Location map/doc/Converting map definition templates to modules

From blackwiki
< Template:Location map‎ | doc
Revision as of 02:35, 14 April 2014 by imported>Jackmcbarn (Created page with '== Converting definitions == This checklist lists the steps required to convert a location map definition from a template to a module. In this example, the defin...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Converting definitions

This checklist lists the steps required to convert a location map definition from a template to a module. In this example, the definition will be called "Foobar".

  1. Create Module:Location map/data/Foobar with the same values as Template:Location map Foobar. See Template:Location map/Creating a new map definition for more details on this step.
  2. If Template:Location map Foobar is protected, request that Module:Location map/data/Foobar be protected at the same level.
  3. If any pages redirect to Template:Location map Foobar, follow the steps under the #Converting redirects heading below for each of them.
  4. If Template:Location map Foobar/doc exists, move it to Module:Location map/data/Foobar/doc, remove {{Documentation subpage}} from the top, add {{#invoke:Location map/info|main}} to the top, and replace all occurrences of "{{{{BASEPAGENAME}}|" with "{{#invoke:Data|main|Location map/data/Foobar|".
  5. If Template talk:Location map Foobar exists, move it to Module talk:Location map/data/Foobar.
  6. Blank Template:Location map Foobar.
  7. Move Template:Location map Foobar to Module talk:Location map/data/Foobar/attribution, or request this move at WP:RM/TR if you're unable to perform it yourself.
  8. Request that Module talk:Location map/data/Foobar/attribution be indefinitely fully protected, since it's only being kept for its history.
  9. Add the following to the top of Module talk:Location map/data/Foobar, or create it with this content if it doesn't exist:
    {{tmbox
    |type=notice
    |text=Revision history for the template that was converted to [[Module:Location map/data/Foobar]] can be found at [[Module talk:Location map/data/Foobar/attribution]].
    }}
  10. Update any links that point to Template:Location map Foobar to point to Module:Location map/data/Foobar.
  11. Request that Template:Location map Foobar be deleted under CSD G6.
  12. Request that any subpages or talk pages of Template:Location map Foobar be deleted under CSD G8.

Converting redirects

This checklist lists the steps required to convert a redirect to a location map definition from a template to a module. In this example, the redirect will be called "Foo" and will point to "Foobar".

  1. Create Module:Location map/data/Foo with
    return require('Module:Location map/data/Foobar')
    
    as the content.
  2. If Template:Location map Foo is protected, request that Module:Location map/data/Foo be protected at the same level.
  3. Create Module:Location map/data/Foo/doc as a redirect to Module:Location map/data/Foobar/doc.
  4. Request that Template:Location map Foo be deleted under CSD G6.
  5. Request that any subpages or talk pages of Template:Location map Foo be deleted under CSD G8.