Template:Permadiff/doc

From RuneRealm Wiki

This is the current revision of this page, as edited by Alex (talk | contribs) at 00:40, 17 October 2024 (Created page with "{{Documentation}} 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: {{T|{{PAGENAME}}|revision ID}} ==Examples== {{Demo|Permadiff|11943220}} {{Demo|Permadiff|9309639|text=Page}} {{Demo|Permadiff|42069|raw=y|plain=y}} ==Parameters== ===1=== The first unnamed parameter is the revision ID to link to. ===text=== The text to..."). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This is a documentation subpage for Template:Permadiff.
It contains usage information, categories, and other content that is not part of the original template page.

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/doc|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.