ទំព័រគំរូ:diffurl/doc
Usage
កែប្រែUsed by {{diff}}
, but can be used alone, too. Displays the URL for a diff. The first two numbered parameters are the ID numbers of the revisions (in either order). If only the first parameter is given, the diff is to the previous revision. If only the second is given, the diff is to the current revision. Thus:
{{diffurl|4055082|3025433}}
yields //km.wiktionary.org/wiki/?diff=4055082&oldid=3025433&diffonly=0{{diffurl|3025433|4055082}}
yields //km.wiktionary.org/wiki/?diff=4055082&oldid=3025433&diffonly=0{{diffurl|4055082}}
yields //km.wiktionary.org/wiki/?diff=4055082&diffonly=0{{diffurl|4055082|}}
yields //km.wiktionary.org/wiki/?diff=4055082&diffonly=0{{diffurl||4055082}}
yields //km.wiktionary.org/wiki/?diff=cur&oldid=4055082&diffonly=0{{diffurl}}
yields //km.wiktionary.org/wiki/?diff=&diffonly=0
Moreover, there's an optional named Boolean parameter, only
, or you can use diffonly
, which, if nonzero, makes the diff URL have diffonly set.
{{diffurl|4055082|3025433|only=1}}
yields //km.wiktionary.org/wiki/?diff=4055082&oldid=3025433&diffonly=1{{diffurl|4055082|3025433|diffonly=1}}
yields //km.wiktionary.org/wiki/?diff=4055082&oldid=3025433&diffonly=1{{diffurl|3025433|4055082|only=}}
yields //km.wiktionary.org/wiki/?diff=4055082&oldid=3025433&diffonly=