Difference between revisions of "Template:Free diff"

From blackwiki
Jump to navigation Jump to search
imported>LikeLakers2
imported>Amalthea
(Undid revision 454438793 by LikeLakers2 (talk) Breaks links on secure server)
 
Line 1: Line 1:
 
<span class="plainlinks"><!--
 
<span class="plainlinks"><!--
−
-->[{{SERVER}}/wiki/?diff={{{1}}}&oldid={{{2}}}<!--
+
-->[{{SERVER}}{{SCRIPTPATH}}/index.php?title=&diff={{{1}}}&oldid={{{2}}}<!--
 
-->{{#ifeq: {{{4|a}}} | {{{4|b}}} | &#35;{{anchorencode:{{{3|}}}}} }}<!-- (if four parameters are given, interpret the third one as the anchor)
 
-->{{#ifeq: {{{4|a}}} | {{{4|b}}} | &#35;{{anchorencode:{{{3|}}}}} }}<!-- (if four parameters are given, interpret the third one as the anchor)
 
--> {{#if: {{{4|{{{3|}}}}}} | {{{4|{{{3}}}}}} }}]<!--
 
--> {{#if: {{{4|{{{3|}}}}}} | {{{4|{{{3}}}}}} }}]<!--

Latest revision as of 20:03, 7 October 2011

[1]

50px Template documentation[view] [edit] [history] [purge]

Usage

Code Output
{{free diff|123456789|123365758}} [2]
{{free diff|387642407|387641177|Ohnoitsjamie's edit to "Boston Latin School"}} Ohnoitsjamie's edit to "Boston Latin School"
{{free diff|123456789|123365758|External links|Pgp688's edit to "Boston Latin School"}} Pgp688's edit to "Boston Latin School"
{{free diff|123456789|123365758|External links|}} [3]

Note that if {{{4}}} does have a variable, {{{3}}} specifies the section of the page, instead, and {{{4}}} specifies the link text. Also, {{{1}}} specifies the diff number, and {{{2}}} specifies the oldid number.

See also