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

From blackwiki
Jump to navigation Jump to search
imported>LikeLakers2
imported>Amalthea
(Undid revision 454438404 by LikeLakers2 (talk) Breaks links on secure server)
Line 48: Line 48:
  
 
| {{{1}}}
 
| {{{1}}}
}}.org/wiki/?diff=prev&oldid={{{2}}}{{#ifeq: {{{4|a}}} | {{{4|b}}} | &#35;{{anchorencode:{{{3|}}}}} }}<!-- (if four parameters are given, interpret the third one as the anchor)
+
}}.org/w/index.php?title=&diff=prev&oldid={{{2}}}{{#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}}}}}} }}]</span><noinclude>
 
--> {{#if: {{{4|{{{3|}}}}}} | {{{4|{{{3}}}}}} }}]</span><noinclude>
  

Revision as of 20:02, 7 October 2011

[1]

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

This template compares two consecutive revisions, the revision ID of the later revision being given in the second parameter.

Usage

Code Output
{{Cross-wiki diff|wikinews|164}} [2]
{{Cross-wiki diff|species|981|Magnoliopsida}} Magnoliopsida
{{Cross-wiki diff|wikiverst|61644|News|Edit to "School:Urban studies and planning"}} Edit to "School:Urban studies and planning"
{{Cross-wiki diff|wikiqt|1184402|Big Time Audition|}} [3]
{{Cross-wiki diff|wikt|3419089|Varsovio (esperanto)|lang=pl}} Varsovio (esperanto)

Note that if {{{4}}} (the fourth parameter) does have a variable, {{{3}}} specifies the section of the page, instead, and {{{4}}} 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