Template:Diff/doc

This template gives a link to the difference between two versions of a page. This link takes the following form:

Usage
&#123;&#123;Diff&#124;Page title&#124;diff&#124;oldid&#124;label&#125;&#125;

&#123;&#123;Diff&#124;Page=Page title&#124;diff=diff&#124;oldid=oldid&#124;label=label&#125;&#125;

The Page title can be any page. If the page is a Property, for example enter P1234 for. If the page is an Item, for example enter Q1234 for.

Parameters
{ 	"description": "This template gives a link to the difference between two versions of a page.", 	"params": { 		"1": { 			"label": "Page", 			"type": "string/wiki-page-name", 			"required": false, 			"suggested": true, 			"deprecated": false, 			"description": "Title of the Page", 			"default": "empty" 		}, 		"2": { 			"label": "Diff", 			"type": "line", 			"required": false, 			"suggested": true, 			"deprecated": false, 			"description": "ID of the recent version ", 			"default": " (actual version of the Page)", 			"aliases": [ 				"diff", 				"cur", 				"prev", 				"next" 			] 		}, 		"3": { 			"label": "Oldid", 			"type": "number", 			"required": false, 			"suggested": true, 			"deprecated": false, 			"description": "ID of the old version", 			"default": "prec (previous version of the page)", 			"aliases": [ 				"oldid" 			] 		}, 		"4": { 			"label": "Label", 			"type": "line", 			"required": false, 			"suggested": true, 			"deprecated": false, 			"description": "Text to display for the link", 			"default": "empty", 			"aliases": [ 				"label" 			] 		} 	} }

Examples

 * gives, the main page of WikiData.
 * gives, the version of September 3, 2014 at 20:44.
 * gives, also the version of September 3, 2014 at 20:44.
 * gives, the difference between the previous version of the current version.
 * gives, the difference between 2 versions.
 * gives, the difference between a version in time and the current version.
 * gives which only displays diff changes.
 * gives, the difference between a version and its successor.
 * gives.
 * gives.
 * gives.