Jump to content

Template:URL to diff/doc

From Wikipedia, the free encyclopedia

This template converts a diff URL to use the {{diff}} template. Diff URLs must be from the host "wiki.riteme.site", and they must contain one of the query strings |title=, |diff= or |oldid=. In other words, they must be of the format wiki.riteme.site/w/index.php?query. URLs of the format wiki.riteme.site/wiki/Page name will not work.

Usage

[edit]
{{subst:URL to diff|url=url|label=label}}

Parameters

[edit]
  • url - the diff URL (required).
  • label - a label for the diff link (optional). If this is not specified, the {{diff}} template will produce a numbered link.

Examples

[edit]
Code Result
{{subst:URL to diff|url=https://wiki.riteme.site/w/index.php?title=Main_Page&diff=472180272&oldid=471996095}} {{diff|Main Page|472180272|471996095}}
{{subst:URL to diff|url=https://wiki.riteme.site/w/index.php?title=Main_Page&diff=472180272&oldid=471996095|label=a diff}} {{diff|Main Page|472180272|471996095|a diff}}
{{subst:URL to diff|url=https://wiki.riteme.site/w/index.php?title=Main_Page&diff=472180272&oldid=471996095|label=a diff with an equals sign (=)}} {{diff|page=Main Page|diff=472180272|oldid=471996095|label=a diff with an equals sign (=)}}

See also

[edit]