Documentation for සැකිල්ල:diff. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

Displays the link for a diff. This is an enhanced version of Special:diff

Usage සංස්කරණය

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. If neither is given, the diff is to the current revision of the main page. Thus:

  • Lua දෝෂය in Module:table at line 557: attempt to call upvalue 'string_sort' (a nil value). yields diff
  • Lua දෝෂය in Module:table at line 557: attempt to call upvalue 'string_sort' (a nil value). yields diff (the same as above)
  • Lua දෝෂය in Module:table at line 557: attempt to call upvalue 'string_sort' (a nil value). yields diff
  • Lua දෝෂය in Module:table at line 557: attempt to call upvalue 'string_sort' (a nil value). yields diff
  • Lua දෝෂය in Module:table at line 557: attempt to call upvalue 'string_sort' (a nil value). yields diff
  • {{diff}} yields diff

Moreover, there's an optional named Boolean parameter, only, or you can use diffonly, which, if nonzero, makes the diff URL have diffonly set.

  • Lua දෝෂය in Module:table at line 557: attempt to call upvalue 'string_sort' (a nil value). yields diff
  • Lua දෝෂය in Module:table at line 557: attempt to call upvalue 'string_sort' (a nil value). yields diff
  • Lua දෝෂය in Module:table at line 557: attempt to call upvalue 'string_sort' (a nil value). yields diff

The third, or text, parameter, yields the text to be displayed:

  • Lua දෝෂය in Module:table at line 557: attempt to call upvalue 'string_sort' (a nil value). yields this diff
  • Lua දෝෂය in Module:table at line 557: attempt to call upvalue 'string_sort' (a nil value). yields some text

dir (direction) changes default 'current revision' to:

  • {{diff||dir=next|52361660}} yields diff
  • {{diff||dir=prev|52361660}} yields diff

See also සංස්කරණය

"https://si.wiktionary.org/w/index.php?title=සැකිල්ල:diff/documentation&oldid=31132" වෙතින් සම්ප්‍රවේශනය කෙරිණි