Difference between revisions of "Template:Cross-wiki language diff"
Jump to navigation
Jump to search
imported>Heymid m (m) |
imported>Redrose64 (lowercase) |
||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| − | <span class="plainlinks">[http://{{{2}}}.{{#switch:{{{1}}}<!-- | + | <span class="plainlinks">[http://{{{2}}}.{{#switch:{{lc:{{{1}}}}}<!-- |
--> | --> | ||
| − | | | + | | wikipedia |
| − | | wp = | + | | wp = wikipedia |
| − | |||
| wikibooks = wikibooks | | wikibooks = wikibooks | ||
| Line 24: | Line 23: | ||
| {{{1}}} | | {{{1}}} | ||
| − | }}.org/w/index.php?title=&diff=prev&oldid={{{3}}}{{#ifeq:{{{5|a}}}|{{{5|b}}}|#{{anchorencode:{{{4|}}}}}}}<!-- (if five parameters are given, interpret the fourth one as the anchor) | + | }}.org/w/index.php?title=&diff=prev&oldid={{{3}}}{{#ifeq: {{{5|a}}} | {{{5|b}}} | #{{anchorencode:{{{4|}}}}} }}<!-- (if five parameters are given, interpret the fourth one as the anchor) |
| − | --> {{#if:{{{5|{{{4|}}}}}}|{{{5|{{{4}}}}}} }]</span> | + | --> {{#if: {{{5|{{{4|}}}}}} | {{{5|{{{4}}}}}} }}]</span><noinclude> |
| + | |||
| + | {{Documentation}} | ||
| + | |||
| + | </noinclude> | ||
Latest revision as of 14:16, 4 July 2014
This template compares two consecutive revisions, the revision ID of the later revision being given in the third parameter.
Usage
| Code | Output |
|---|---|
{{Cross-wiki language diff|Wikipedia|sv|164}}
|
[2] |
{{Cross-wiki language diff|wiktionary|es|471117|borda}}
|
borda |
{{Cross-wiki language diff|wikiverst|fi|5326|Tehtävät 2|Edit}}
|
Edit |
{{Cross-wiki language diff|wikiqt|de|423279|Der kleine Prinz / Le petit prince (1943)|}}
|
[3] |
Note that if {{{5}}} (the fifth parameter) does have a variable, {{{4}}} specifies the section of the page, instead, and {{{5}}} specifies the link text.
Abbreviations
- wikibks = Wikibooks
- wikinws = Wikinews
- wikisrc = Wikisource
- wikiverst = Wikiversity
- wikiqt = Wikiquote
- wikt = Wiktionary
See also
| The above documentation is transcluded from Template:Cross-wiki language 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. |