Jump to content

Module:Diff/doc

From Meta, a Wikimedia project coordination wiki

This is the documentation page for Module:Diff

Provides functions for diffing text.

Usage

[edit]

Ciaran Hope (born 4 August 1974) is an Irish composer of orchestral, choral, and film music.

Difference in words

[edit]
{{TextDiff
| 1 = Ciaran Hope (born 4 August 1974) is an Irish composer of orchestral, choral, and film music.
| 2 = Ciaran Hope (was given birth to on 20 August last year) is an Irish composter of orchestral, oral, and film music dance moves.
}}

Result:

[[w:Ciaran Hope|Ciaran Hope]] (born 4 August 1974) is an Irish composer of orchestral, choral, and film music.
+
[[w:Ciaran Hope|Ciaran Hope]] (was given birth to on 20 August last year) is an Irish composter of orchestral, oral, and film music dance moves.

Difference in characters

[edit]
{{StringDiff
| 1 = Ciaran Hope (born 4 August 1974) is an Irish composer of orchestral, choral, and film music.
| 2 = Ciaran Hope (was given birth to on 20 August last year) is an Irish composter of orchestral, oral, and film music dance moves.
}}

Result:

[[w:Ciaran Hope|Ciaran Hope]] (born 4 August 1974) is an Irish composer of orchestral, choral, and film music.
+
[[w:Ciaran Hope|Ciaran Hope]] (was given birth to on 20 August last year) is an Irish composter of orchestral, oral, and film music dance moves.

Example with #invoke

[edit]
{{#invoke:Diff|main
| 1 = Ciaran Hope (born 4 August 1974) is an Irish composer of orchestral, choral, and film music.
| 2 = Ciaran Hope (was given birth to on 20 August last year) is an Irish composter of orchestral, oral, and film music dance moves.
}}

Result:

[[w:Ciaran Hope|Ciaran Hope]] (born 4 August 1974) is an Irish composer of orchestral, choral, and film music.
+
[[w:Ciaran Hope|Ciaran Hope]] (was given birth to on 20 August last year) is an Irish composter of orchestral, oral, and film music dance moves.