Module:Purge/doc

From Brighter Shores Wiki
Revision as of 20:44, 25 November 2024 by BlackHawk (talk | contribs) (Created page with "{{documentation}} Provides a purge link. Can be customised if used by lua, or lesser customisation via Template:Purge. {{Helper module |name=Purge |fname1=_purge( anchor, text, tag, noinplace ) |ftype1=string/table, string, string, boolean |fuse1=Generates a purge link All args are optional. * <code>anchor</code> - The ID of the tag, used for an anchor link; default <code>res</code> * <code>text</code> - Link text; default <code>(wrong?)</code> * <code>tag</code> -...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is the documentation page for Module:Purge

This is a documentation subpage for Module:Purge.
It contains usage information, categories, and other content that is not part of the original module page.
Module:Purge is required by Module:Products.

Provides a purge link. Can be customised if used by lua, or lesser customisation via Template:Purge.

This module is a helper module to be used by other modules; it may not designed to be invoked directly. See Brighter Shores:Lua/Helper modules for a full list and more information.

FunctionTypeUse
_purge( anchor, text, tag, noinplace )string/table, string, string, booleanGenerates a purge link

All args are optional.

  • anchor - The ID of the tag, used for an anchor link; default res
  • text - Link text; default (wrong?)
  • tag - HTML tag to use; default sup
  • noinplace - If defined, will suppress the addition of the jsPurgeLink class, which makes the link do an in-place purge rather than going to a purge confirmation

Example:

local purge = require( 'Module:Purge' )._purge

local refreshLink = purge( nil, 'refresh' )
-- Or
local refreshLink = purge{ text = 'refresh' }