Template:Diff4
Usage
{{Diff4|diff|old: oldid|label|section=section name}}
diff– The ID or keyword that is used against the base ID (required). Possible keywords are:cur– Compare with the current version of a page.prev– Compare with the previous version of a page.next– Compare with the next version of a page.- id – This should be larger than
oldid(whenoldidis specified).
|old=oldidoldid– The base ID onto which the diff is generated (optional). Parameter name|old=must be specified.
label– Text to display as link (optional). No label will generate a numbered link as the label.|section=section namesection name– The name of the section or anchor (optional) within the page intended to be the target of the link. Parameter name|section=must be specified.
Examples
| Code | Output |
|---|---|
{{Diff4|123456789}}
|
[2] |
{{Diff4|123456789|An edit by User:Pgp688}}
|
An edit by User:Pgp688 |
{{Diff4|123456789|Same edit as above but links to "External links" section|section=External links}}
|
Same edit as above but links to "External links" section |
{{Diff4|4611964|old=123456789|All changes at article leading up to Pgp688's edit}}
|
All changes at article leading up to Pgp688's edit |
diff and oldid are both specified. Be sure to use correct numbers. If the IDs belong to different pages, the link will not work.See below:
| Code | Output |
|---|---|
{{diff4|123456788|old=123456789|Changes between revisions 123456788 and 123456789}}
|
Changes between revisions 123456788 and 123456789 |
See also
- {{Diff}} – includes optional "page title" and "comparison only" parameters, does not feature section links
- {{Diff2}} – simple version of {{Diff}} that adds section linking; only supports
diff, or the base ID, showing changes from one revision immediately before. - {{Diff3}} – identical to {{Diff2}} without support for section links
- {{Oldid}} – simplifies the case for linking to a known old version
- {{DiffPages}} – accepts two pagenames (no id's needed)
- {{Diffsandbox}} – compares a given page with the sandbox version
- {{URL to diff}} – takes a diff URL and makes a {{Diff}} template
- {{Cross-wiki diff}}
- {{Cross-wiki language diff}}
- {{Querylink}} – generic template to construct query strings
- diff – syntax highlight on wiki pages with mw:Extension:SyntaxHighlight GeSHi
- Special:Diff – serves a similar purpose; see Help:Wiki markup#Linking to old revisions of pages, diffs, and specific history pages.
- {{Text diff}}
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.