Difference between revisions of "Template:Cross-wiki free diff"

From blackwiki
Jump to navigation Jump to search
imported>Heymid
 
imported>LikeLakers2
Line 48: Line 48:
  
 
| {{{1}}}
 
| {{{1}}}
}}.org/w/index.php?title=&diff={{{2}}}&oldid={{{3}}}{{#ifeq: {{{5|a}}} | {{{5|b}}} | &#35;{{anchorencode:{{{4|}}}}} }}<!-- (if five parameters are given, interpret the fourth one as the anchor)
+
}}.org/wiki/?diff={{{2}}}&oldid={{{3}}}{{#ifeq: {{{5|a}}} | {{{5|b}}} | &#35;{{anchorencode:{{{4|}}}}} }}<!-- (if five parameters are given, interpret the fourth one as the anchor)
 
--> {{#if: {{{5|{{{4|}}}}}} | {{{5|{{{4}}}}}} }}]</span><noinclude>
 
--> {{#if: {{{5|{{{4|}}}}}} | {{{5|{{{4}}}}}} }}]</span><noinclude>
  

Revision as of 19:45, 7 October 2011

[1]

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

This template compares any two revisions, the revision IDs being given in the second and third parameters.

Usage

Code Output
{{Cross-wiki free diff|wikinews|164|75}} [2]
{{Cross-wiki free diff|species|694733|638564|Magnoliopsida}} Magnoliopsida
{{Cross-wiki free diff|wikiverst|61647|61644|News|Edit to "School:Urban studies and planning"}} Edit to "School:Urban studies and planning"
{{Cross-wiki free diff|wikiqt|1184480|1184402|Big Time Audition|}} [3]

Note that {{{2}}} (the second parameter) specifies the diff number and {{{3}}} specifies the oldid number. Also, if {{{5}}} does have a variable, {{{4}}} specifies the section of the page, instead, and {{{5}}} specifies the link text. Also, this template only works for projects within the Wikimedia Foundation; see WMF:Our projects for all projects.

Abbreviations

  • cms = Commons
  • incubator = Wikimedia Incubator
    • incbtr = Wikimedia Incubator
    • WMI = Wikimedia Incubator
    • WI = Wikimedia Incubator
  • mw = MediaWiki
  • m = Meta
  • species = Species
    • spcs = Species
    • scs = Species
    • sps = Species
  • wikibks = Wikibooks
  • wikinws = Wikinews
  • wikisrc = Wikisource
  • wikiverst = Wikiversity
  • wikiqt = Wikiquote
  • wikt = Wiktionary
  • WMF = Wikimedia Foundation
    • WF = Wikimedia Foundation

See also