Difference between revisions of "Template:Diff"

From Team Fortress Wiki
Jump to: navigation, search
m
m (Added default outcome)
 
Line 1: Line 1:
<span class="plainlinks">[https://wiki.teamfortress.com/w/?diff={{{1}}} {{{2}}}]</span><noinclude>
+
<span class="plainlinks">[https://wiki.teamfortress.com/w/?diff={{{1}}} {{{2|diff {{{1}}}}}}]</span><noinclude>
 
{{Doc begin}}
 
{{Doc begin}}
 
== Usage ==
 
== Usage ==
Line 11: Line 11:
  
 
; 2
 
; 2
: Displayed text.
+
: Displayed text. Defaults to "diff [diff number]".
  
{{tlx|Diff|2803660|Look at this edit!}} produces: {{Diff|2803660|Look at this edit!}}
+
{{tlx|Diff|2803660|Look at this edit!}} produces: {{Diff|2803660|Look at this edit!}}<br>
 +
{{tlx|Diff|2803660}} produces: {{Diff|2803660}}
  
 
[[Category:Formatting templates|Diff]]
 
[[Category:Formatting templates|Diff]]
 
</noinclude>
 
</noinclude>

Latest revision as of 21:34, 27 January 2024

diff {{{1}}}

Documentation for Diff

Usage

{{Diff|1|2}}

This template turns the link of a diff into a link that appears as an interwiki link.

Parameters

1
Diff ID: In order to acquire the diff ID of an edit one must navigate to the revision either through RecentChanges or its page history.
  • Navigate to RecentChanges, find the edit you need and click "history" and compare the two revisions. Go to the URL and look for &diff=num, with "num" being the diff ID.
2
Displayed text. Defaults to "diff [diff number]".

{{Diff|2803660|Look at this edit!}} produces: Look at this edit!
{{Diff|2803660}} produces: diff 2803660