Difference between revisions of "Template:Diffsandbox"
Jump to navigation
Jump to search
imported>DePiep |
imported>Dinoguy1000 ({{fullurl}} instead of the odd {{SERVER}}/wiki/... construct; rm always-empty query parameters; conditionally add rev# query parameters only if the parameters are defined; allow sandbox link to be specified, in the event a template's/module's sandbox is not at the /sandbox subpage) |
||
| Line 1: | Line 1: | ||
| − | [{{ | + | [{{fullurl:Special:ComparePages|page1={{urlencode:{{{1|x}}}}}{{#if:{{{rev1|}}}|&rev1={{{rev1}}}}}&page2={{urlencode:{{#if:{{{2|}}}|{{{2}}}|{{{1|x}}}/sandbox}}}}{{#if:{{{rev2|}}}|&rev2={{{rev2}}}}}}} {{#if:{{{label|}}}|{{{label|}}}|diff}}]<!-- |
--><noinclude>{{documentation}}</noinclude> | --><noinclude>{{documentation}}</noinclude> | ||
Latest revision as of 20:44, 14 April 2019
This template gives a link to compare a template page and its /sandbox page.
Usage
{{Diffsandbox|Template:Infobox building}}→ diff
|rev1=page id|rev2=page id|label=any textwill overwrite the "diff" text.
See also
| The above documentation is transcluded from Template:Diffsandbox/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |