Template:Permadiff

This is the current revision of this page, as edited by Alex (talk | contribs) at 00:40, 17 October 2024 (Created page with "{{#if:{{{plain|}}}|<span class="plainlinks>}}{{^| }}{{#if:{{{raw|}}} |{{fullurl:{{{page|/}}}|diff=prev&oldid={{{1}}}}} |[{{fullurl:{{{page|/}}}|diff=prev&oldid={{{1}}}}} {{{text|Permadiff}}}] }}{{^| }}{{#if:{{{plain|}}}|</span>}}<noinclude>{{/doc}}</noinclude>"). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Permadiff

Template documentation
This documentation is transcluded from Template:Permadiff/doc. [edit] [history] [purge]

This template generates a permanent link to a specified diff. To link to a specific revision, use Template:Permalink.

Usage

This template can be used by inserting the following onto a page: {{Permadiff|revision ID}}

Examples

{{Permadiff|11943220}} produces
Permadiff

{{Permadiff|9309639|text=Page}} produces
Page

{{Permadiff|42069|raw=y|plain=y}} produces
https://wiki.runerealm.org/index.php?title=/&diff=prev&oldid=42069

Parameters

1

The first unnamed parameter is the revision ID to link to.

text

The text to display on the link. Defaults to "Permadiff".

plain

If plain is set, the generated link will be wrapped in <span class="plainlink"></span>, which prevents the external link icon from appearing.

raw

If raw is set, the generated link will appear as a URL; text is ignored.

page

The page to link to. Not necessary, as simply providing a revision ID is sufficient for MediaWiki. Purely affects what the generated URL is.