Wikipedia:Changing templates

This page describes problems that are faced when changing templates that have a significant number of calls.

Two classes of changes:

Assume you have a heavy use template like template:cite book and you want to change something on that template (assuming there is consensus for that change).

Template changes can be categorized into two classes:

Class A changes are no problem. You can simply change the template and you are done. If the change was bad, you can simply revert that and everything is fine.

Class B changes are problematic. These kind of changes require changing all calls to the template to be compatible with the new version of the template.

Examples for Class A changes:

Examples for Class B changes:

Class B changes

The brute force method

The brute force method is to just boldly change the template, ignoring for a moment that the change breaks the calls and then rushing around on the wiki, quickly fixing the calls to get them in line with the new version of the template.

Drawbacks:

In short: especially for high use template this can result in a minor-wiki drama, especially if very prominent pages are affected (example of a sensitive template: template:Infobox President, which is transcluded in George W. Bush).

Migrating to a new template

The safest method to avoid the problems of the brute force method, is to create the new version of the template under a different name and migrate all calls to the new name. This has the following benefits:

During the migration phase, both the old and the new template "version" are available for transclusion.

Drawbacks: