Module:Protection banner/config: Difference between revisions
(further conversion) |
m (137 revisions imported from wikipedia:Module:Protection_banner/config: see Topic:Vtixlm0q28eo6jtf) |
||
| (111 intermediate revisions by 25 users not shown) | |||
| Line 1: | Line 1: | ||
-- This module provides configuration data for [[Module:Protection banner]]. | -- This module provides configuration data for [[Module:Protection banner]]. | ||
return { | |||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
-- | |||
-- BANNER DATA | -- BANNER DATA | ||
-- | |||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
--[[ | --[[ | ||
-- | -- Banner data consists of six fields: | ||
-- text | -- * text - the main protection text that appears at the top of protection | ||
- | -- banners. | ||
-- * explanation - the text that appears below the main protection text, used | |||
-- | -- to explain the details of the protection. | ||
-- | -- * tooltip - the tooltip text you see when you move the mouse over a small | ||
- | -- padlock icon. | ||
-- * link - the page that the small padlock icon links to. | |||
-- | -- * alt - the alt text for the small padlock icon. This is also used as tooltip | ||
-- | -- text for the large protection banners. | ||
- | -- * image - the padlock image used in both protection banners and small padlock | ||
-- icons. | |||
-- | |||
-- | |||
-- | |||
-- | |||
-- | |||
- | |||
-- | |||
-- | -- | ||
-- The module | -- The module checks in three separate tables to find a value for each field. | ||
-- | -- First it checks the banners table, which has values specific to the reason | ||
-- for the page being protected. Then the module checks the defaultBanners | |||
-- table, which has values specific to each protection level. Finally, the | |||
-- module checks the masterBanner table, which holds data for protection | |||
-- templates to use if no data has been found in the previous two tables. | |||