• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Wiki diff

  • Template
  • Talk
  • Language
  • Watch
  • Edit
Template documentation[view] [edit] [history] [purge]

This is a template for simulating diffs. It has a number of limitations, and can behave oddly at times.

It uses the old diff appearance. This is no longer the default, but can be set in the preferences panel: Gadgets > Appearance > Display diffs with the old yellow/green colors and design.

Full parameters

edit
{{wiki diff
|user_1=
|user_2=
|date_1=
|date_2=
|minor_1=
|summary_1=
|minor_2=
|summary_2=
<!-- changed -->
|line_mid=
|same_a=
|removed_a=
|added_a=
|same_b=
|removed_b=
|added_b=
|same_c=
|removed_c=
|added_c=
|same_d=
|removed_d=
|added_d=
|same_e=
|removed_e=
|added_e=
|same_f=
|removed_f=
|added_f=
|same_g=
|removed_g=
|added_g=
<!-- bottom -->
|line_bottom=
|bottom=
}}

Example

edit
Revision as of date_1 (edit)

user_1 (talk | contribs)
m (summary_1)
← Previous edit

Revision as of date_2 (edit) (undo)
user_2 (talk | contribs)    (rollback | undo)
(summary_2)
Line line_mid: Line line_mid:
- same_a removed_a same_b removed_b same_c removed_c same_d removed_d same_e removed_e same_f removed_f same_g removed_g + same_a added_a same_b added_b same_c added_c same_d added_d same_e added_e same_f added_f same_g added_g
Line line_bottom: Line line_bottom:
bottom bottom

See also

edit
  • Template:TextDiff – similar template implemented in Lua
The above documentation is transcluded from Template:Wiki diff/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Wiki_diff&oldid=694916957"
Last edited on 12 December 2015, at 14:27

Languages

    • සිංහල
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 12 December 2015, at 14:27 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop