Jump to content

کينډۍ:Location map/doc/Converting map definition templates to modules

د ويکيپېډيا، وړیا پوهنغونډ له خوا

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. Note that if a map contains formulas for x and/or y, all occurrences of {{{2}}} or {{{2|}}} need to be changed to $1, and all occurrences of {{{3}}} or {{{3|}}} need to be changed to $2.
  2. If Template:Location map Foobar is protected, protect or request protection of Module:Location map/data/Foobar 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 (without leaving a redirect if possible) and convert it following the instructions under the #Converting documentation heading below.
  5. If Template talk:Location map Foobar exists, move it to Module talk:Location map/data/Foobar (without leaving a redirect if possible).
  6. Blank Template:Location map Foobar.
  7. Move Template:Location map Foobar to Module talk:Location map/data/Foobar/attribution (without leaving a redirect if possible), or request this move at WP:RM/TR if you're unable to perform it yourself.
  8. Fully protect or request full protection of Module talk:Location map/data/Foobar/attribution indefinitely, 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:{{PAGENAME}}]] can be found at [{{fullurl:{{FULLPAGENAME}}/attribution|action=history}} {{FULLPAGENAME}}/attribution: Revision history].
    }}
  10. Update any links that point to Template:Location map Foobar to point to Module:Location map/data/Foobar.
  11. Delete or request deletion of Template:Location map Foobar under CSD G6.
  12. Delete or request deletion of subpages or talk pages of Template:Location map Foobar under CSD G8.