Jump to content

Module:Protection banner/config: Difference between revisions

undo for now - the code looks good, but we will need to change everything over at the same time to avoid it looking like a giant mess
(change the padlock positions table to a padlock indicator names table for the transition to page status indicators)
(undo for now - the code looks good, but we will need to change everything over at the same time to avoid it looking like a giant mess)
Line 600: Line 600:


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Padlock indicator names
-- Padlock positions
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


-- This table provides the "name" attribute for the <indicator> extension tag
-- This table provides the data for the "right" CSS property for small padlock
-- with which small padlock icons are generated. All indicator tags on a page
-- icons, which determines where the icon appears on the top bar among the other
-- are displayed in alphabetical order based on this attribute, and with
-- top icons. The data is stored by protection action. If no value is found for
-- indicator tags with duplicate names, the last tag on the page wins.
-- the action, the default field is used.
-- The attribute is chosen based on the protection action; table keys must be a
padlockPositions = {
-- protection action name or the string "default".
autoreview = '85px',
padlockIndicatorNames = {
default = '55px'
autoreview = 'pp-autoreview',
default = 'pp-default'
},
},


Cookies help us deliver our services. By using our services, you agree to our use of cookies.