Modiwl:Purge/doc
Gwedd
This is the documentation page for Modiwl:Purge
![]() | This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
![]() | This template is used in system messages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid large-scale disruption, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. Please discuss any changes at the talk page before implementing them. |
This module produces a link to purge a page's cache. This is usually the current page, but can be another page.
Usage
[golygu cod]From wiktext
[golygu cod]From wikitext, this module should be accessed via Template:Purge. Please see the template page for documentation.
From Lua
[golygu cod]From Lua, first you need to load the module:
local mPurge = require('Module:Purge')
Then you can create purge links with the _main
function:
mPurge._main(args)
args is a table of arguments, identical to the ones accepted by Template:Purge. Please see the template documentation for more details.