Template:Text diff
From Wikipedia, the free encyclopedia
ā | This | + | This was a test! |
This template uses Lua: |
This template can be used to show proposed changes, e.g. on talk pages.
Usage
{{TextDiff|Old text.|New text.}}
ā | + | New text. |
Limitations
This template is suitable only for comparing a single in-line string of text. Use of this template to compare multi-line content (i.e. HTML block content, text including line breaks) will result in syntax errors.
This template must be placed on a new line, i.e. with a line break before the template. Adding the template to a line that is indented with a colon or asterisk may result in syntax errors.
TemplateData
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Text diff in articles based on its TemplateData.
TemplateData for Text diff
More information Parameter, Description ...
Parameter | Description | Type | Status | |
---|---|---|---|---|
Old text | 1 | Specify the old wikitext here. | Content | required |
New text | 2 | Specify the new wikitext here. | Content | required |
Close
See also
- User:NguoiDungKhongDinhDanh/FormattedEditRequest, a script for automatically producing diffs similar to the ones produced by this template
- {{StringDiff}}, which produces character-level diffs
The above documentation is transcluded from Template:Text diff/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.