Difference between revisions of "Template:Diffwith"
Jump to navigation
Jump to search
m (Changed Category) |
m (Changed Category) |
||
Line 1: | Line 1: | ||
+ | <noinclude> | ||
+ | {{Modal Mark For Deletion}} | ||
+ | </noinclude> | ||
<includeonly><span id="diffwith" title="{{{1}}}" class="plainlinks">[{{fullurl:{{{1}}}|diff={{REVISIONID}}}} {{{2|Diff with {{{1}}}}}}]</span></includeonly><noinclude> | <includeonly><span id="diffwith" title="{{{1}}}" class="plainlinks">[{{fullurl:{{{1}}}|diff={{REVISIONID}}}} {{{2|Diff with {{{1}}}}}}]</span></includeonly><noinclude> | ||
<!-- old code: <span class="plainlinks">[{{fullurl:{{{1}}}|diff=current&oldid={{REVISIONID}}}} {{{2|Diff with {{{1}}}}}}]</span> --> | <!-- old code: <span class="plainlinks">[{{fullurl:{{{1}}}|diff=current&oldid={{REVISIONID}}}} {{{2|Diff with {{{1}}}}}}]</span> --> | ||
Line 21: | Line 24: | ||
[[Category:Templates|Diffwith]] | [[Category:Templates|Diffwith]] | ||
</noinclude> | </noinclude> | ||
− |
Revision as of 22:21, 28 May 2020
Template:Modal Mark For Deletion
Description
{{Diffwith|<pagename>|<description>}}
This template can be used to create a link that compares the current page with another. This is often useful for proposed changes in policy drafts. Note that the link does not work from previews.
Note: Due to a MediaWiki bug, this template requires JavaScript to work and can only be used once on a page.
Parameters
- unnamed parameter 1
- Pagename. The full name of the page where a diff with the current page is to be made with.
- unnamed parameter 2
- Optional. Description, the template will show as link text.
Example
{{Diffwith|Main Page|Diff with current Main Page}}