Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Limitations  





3 TemplateData  





4 See also  














Template:Text diff






ak:Nhwɛsode:Td
العربية
Azərbaycanca

Bosanski
فارسی
Bahasa Indonesia
Jawa
مصرى
مازِرونی
Nederlands

Simple English
Srpskohrvatski / српскохрватски

Türkçe
Tiếng Vit

 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikimedia Commons
Meta-Wiki
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 

(Redirected from Template:Textdiff)

This is a test

+

This was a test!

This template can be used to show proposed changes, e.g. on talk pages.

Usage

{{TextDiff|Old text.|New text.}}
produces a diff showing the changes:

Old 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

This template compares two texts. The comparison is formatted similarly to a "diff" (see Help:Diff).

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Old text1

Specify the old wikitext here.

Linerequired
New text2

Specify the new wikitext here.

Linerequired

See also


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Text_diff&oldid=1188938119"

Categories: 
Lua-based templates
Diff templates
Hidden categories: 
Wikipedia semi-protected templates
Templates using TemplateData
 



This page was last edited on 8 December 2023, at 17:11 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki