User:Renamed user awfwvowjvwrvnwio/How to implement version control in templates

This is a guide in how to implement version control in templates.

Method
First, add a named parameter "version" to your template for your next version.

Then, replace the template's code with the following:

,

where NEWCODE is the new version's code (without version checking) of the template, OLDCODE is the old code of the template and NEWVERSION is the new version's ID.

Example
This is the code for a template with two different versions.

The first displays "Hello World!".

The second displays "w00t".