Wikibase
MediaWiki Wikibase extension
|
Interface for generating views of DiffOp objects. More...
Public Member Functions | |
getHtml () | |
Builds and returns the HTML to represent the Diff. More... | |
Interface for generating views of DiffOp objects.
Wikibase\Repo\Diff\DiffView::getHtml | ( | ) |
Builds and returns the HTML to represent the Diff.
The HTML returned here is expected to be a set of
elements without any
<tbody>. Each
is expected to contain exactly four
cells. The first two cells represent marker (either a "+" or a "-") and content from the old revision, the last two cells represent marker and content from the new revision. Either pair of cells can be omitted and replaced with an empty
if there is no relevant content on this side.
cells are not expected.
Implemented in Wikibase\Repo\Diff\ItemDiffView, and Wikibase\Repo\Diff\BasicDiffView.