Difference between revisions of "Template:Cross-wiki diff"
Jump to navigation
Jump to search
imported>Amalthea (Undid revision 454438404 by LikeLakers2 (talk) Breaks links on secure server) |
imported>Technical 13 (Shorten/speed up code and add |lang= for other language projects. {{Cross-wiki|wikt|2346|lang=zh}} for Chinese Wikitionary edit 2346 for example.) |
||
Line 1: | Line 1: | ||
− | <span class="plainlinks">[http://{{#switch:{{{1}}}<!-- | + | <span class="plainlinks">[http://{{#switch:{{lc:{{{1}}}}}<!-- |
--> | --> | ||
− | | meta | + | |meta|m = meta.wikimedia |
− | | m | + | |mediawiki|mw = mediawiki |
− | + | |commons|cms = commons.wikimedia | |
− | | mediawiki | + | |wikimedia incubator|wmi|wi|incubator|incbtr = incubator.wikimedia |
− | | mw | + | |wikimedia foundation|wmf|wf = wikimediafoundation |
− | + | |wikibooks|wikibks = {{lc:{{{lang|en}}}}}.wikibooks | |
− | | commons | + | |wikinews|wikinws = {{lc:{{{lang|en}}}}}.wikinews |
− | | cms | + | |wikiquote|wikiqt = {{lc:{{{lang|en}}}}}.wikiquote |
− | + | |wikisource|wikisrc = {{lc:{{{lang|en}}}}}.wikisource | |
− | | | + | |wikispecies|wikispcs|wikiscs|wikisps|species|scs|sps|spcs = species.wikimedia |
− | | | + | |wikiversity|wikiverst = {{lc:{{{lang|en}}}}}.wikiversity |
− | | | + | |wiktionary|wikt = {{lc:{{{lang|en}}}}}.wiktionary |
− | | incubator | + | |#default = {{{1}}} |
− | | incbtr | ||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | | wikibooks | ||
− | | wikibks | ||
− | |||
− | | wikinews | ||
− | | wikinws | ||
− | |||
− | | wikiquote | ||
− | | wikiqt | ||
− | |||
− | | wikisource | ||
− | | wikisrc | ||
− | |||
− | | wikispecies | ||
− | | wikispcs | ||
− | | wikiscs | ||
− | | wikisps | ||
− | | species | ||
− | | scs | ||
− | | sps | ||
− | | spcs | ||
− | |||
− | | wikiversity | ||
− | | wikiverst | ||
− | |||
− | | wiktionary | ||
− | | wikt | ||
− | |||
− | | {{{1}}} | ||
}}.org/w/index.php?title=&diff=prev&oldid={{{2}}}{{#ifeq: {{{4|a}}} | {{{4|b}}} | #{{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}}} | #{{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> | ||
− | |||
{{Documentation}} | {{Documentation}} | ||
− | |||
</noinclude> | </noinclude> |
Latest revision as of 12:58, 19 September 2013
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
- Template:Cross-wiki free diff
- Template:Cross-wiki language diff
- Template:Diff2
- Template:Cross-wiki user
The above documentation is transcluded from Template:Cross-wiki diff/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. |