Template:Purge: Difference between revisions

(Created page with "<{{{tag|small}}} class="plainlinks {{#if:{{{noinplace|}}}||jsPurgeLink}}" id="res" title="{{{hover|If this information seems incorrect, click here to force an update.}}}">[{{fullurl:{{FULLPAGENAME}}#res|action=purge}} {{{1|(update)}}}]</{{{tag|small}}}><noinclude>{{/doc}}</noinclude>")
 
(Encode _ to prevent #ask breaking links)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<{{{tag|small}}} class="plainlinks {{#if:{{{noinplace|}}}||jsPurgeLink}}" id="res" title="{{{hover|If this information seems incorrect, click here to force an update.}}}">[{{fullurl:{{FULLPAGENAME}}#res|action=purge}} {{{1|(update)}}}]</{{{tag|small}}}><noinclude>{{/doc}}</noinclude>
<{{{tag|small}}} class="plainlinks {{#if:{{{noinplace|}}}||jsPurgeLink}}" id="res" title="{{{hover|If this information seems incorrect, click here to force an update.}}}">[{{#replace:{{fullurl:{{FULLPAGENAME}}#res|action=purge}}|_|%5F}} {{{1|(update)}}}]</{{{tag|small}}}><noinclude>{{/doc}}</noinclude>

Latest revision as of 02:16, 21 November 2024

(update)

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

Place this template on a page that uses any sort of time based parser to display information to allow readers to see up to date information. It includes its own anchor (#res) so that clicking the link will take the reader right back to where they clicked it. By default, the tag used will be a small tag (but can be changed), and the link will be an in-place style purge (uses javascript to purge via the API and reload the page) (but can be suppressed to purge via ?action=purge instead, which requires a confirmation).

Usage

{{Purge|optional text|tag=(optional) <small> by default|noinplace=(optional) suppress in-place purging|hover=(optional) input custom mouse-over text}}

Examples

This is the list of active discussions.<sup>{{Purge}}</sup>

This is the list of active discussions.(update)

This is the list of active discussions. Click {{Purge|here|tag=span}} to purge the page.

This is the list of active discussions. Click here to purge the page.

This is the list of active discussions. Click {{Purge|here|tag=span|noinplace=true}} to purge the page via ?action=purge.