Module:Article history/config: Difference between revisions

Content deleted Content added
split FFA/GA out into a new "doubleStatuses" table
turn this page into one big table, and add parameters and messages sections
Line 2:
-- Configuration data for [[Module:Article history]]
-------------------------------------------------------------------------------
 
return {
 
-------------------------------------------------------------------------------
Line 7 ⟶ 9:
-------------------------------------------------------------------------------
 
local actions = {
FAC = {
name = 'Featured article candidate',
Line 629 ⟶ 631:
validStatuses = false
}
},
 
-------------------------------------------------------------------------------
Line 635 ⟶ 637:
-------------------------------------------------------------------------------
 
local statuses = {
FA = {
image = 'Featured article star.svg'
Line 681 ⟶ 683:
image = 'Cscr-former.svg'
},
},
 
local doubleStatuses = {
['FFA/GA'] = {
statuses = {'FFA', 'GA'}
}
},
 
local invalidStatuses = {
FAC = {
},
Line 700 ⟶ 702:
aliases = {'PR', ''}
},
},
 
-------------------------------------------------------------------------------
-- Parameters
-------------------------------------------------------------------------------
 
-- The parameter values used to generate the page actions. These are used as
-- Lua patterns, so any of the magic characters *+-.^$%[] should be escaped
-- with a preceding % symbol.
actionParamPrefix = 'action',
actionParamSuffixes = {
[''] = 'id',
date = 'date',
link = 'link',
result = 'result',
oldid = 'oldid'
},
 
-------------------------------------------------------------------------------
-- Messages
-------------------------------------------------------------------------------
 
msg = {
}
 
-------------------------------------------------------------------------------
return {
-- End config
actions = actions,
-------------------------------------------------------------------------------
statuses = statuses
 
}