Template:Purge: Difference between revisions

From PZwiki
m (1 revision: Hidden key template)
 
(added doc & translatability)
Line 1: Line 1:
<span class="noprint plainlinks purgelink">[{{fullurl:{{{page|{{FULLPAGENAME}}}}}|action=purge}} <span title="Purge this page">{{{1|Purge}}}</span>]</span><noinclude>
<noinclude>
{{documentation}}
{{Documentation/sandbox|doc=
</noinclude>
This template is used to add a link to purge the current page, clearing the cached page version, and forcing it to display the most recent changes.
 
This is useful for updating a transcluded template, or resetting a parser function.
 
{{Translation guide|<syntaxhighlight lang="html">{{#switch: {{{1|}}}
| purge_desc = Purge this page
| purge = Purge
}}
</syntaxhighlight>}}
}}
{{ll|Category:Templates}}
</noinclude><includeonly><span class="noprint plainlinks purgelink">[{{fullurl:{{{page|{{FULLPAGENAME}}}}}|action=purge}} <span title="{{tt|name=Purge|default=Purge this page|arg1=purge_desc}}">{{{1|{{tt|name=Purge|default=Purge|arg1=purge}}}}}</span>]</span></includeonly>

Revision as of 15:43, 6 April 2024

Notebook.pngTemplate Documentation

This template is used to add a link to purge the current page, clearing the cached page version, and forcing it to display the most recent changes.

This is useful for updating a transcluded template, or resetting a parser function.

How to translate

This template is translatable.

Template code

Paste the following code into the <includeonly> tag of the translated template and translate the text after each = sign (except for #default =).

{{#switch: {{{1|}}}
| purge_desc = Purge this page
| purge = Purge
}}

Template documentation

Copy the code wrapped in the <noinclude> tag in this template and translate the text after doc = in the {{Documentation}} template.

{{Translation guide}} template should be removed from the translated documentation.
Editors can experiment in this template's sandbox.