Jump to content
Wikimedia Meta-Wiki

Template:TextDiff/doc

From Meta, a Wikimedia project coordination wiki
This is a documentation subpage for Template:TextDiff.
It contains usage information, categories, and other content that is not part of the original template page.

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

Usage

[edit ]
{{Text diff|Old text.|New text.}}

produces a diff showing the changes:

(削除) Old (削除ここまで) text.
+
(追記) New (追記ここまで) text.

Limitations

[edit ]

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

[edit ]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools.

TemplateData for TextDiff

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

Template parameters

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

[edit ]

AltStyle によって変換されたページ (->オリジナル) /