Page history
28 June 2014
next expiry
−43
now reason
−12
now level
−48
try to merge the edit conflict, one variable at a time, starting with action
−821
(edit conflict) replace Protection getter functions with public attributes
+448
get rid of the config class while still allowing replacing it for testing
−1,059
27 June 2014
don't keep the whole export table around when we only need one thing from it
+20
fix method name
−2
use Protection:isProtected instead of checking using getLevel
−4
add an image link parameter, and get the link data from the banner config
+521
only make link text if the link message is available
+19
shorter names - use protectionObj instead of protectionStatusObj, and Protection instead of ProtectionStatus
−444
change BannerTemplate:setImageFilename to accept protection objects and title objects rather than individual parameters
−163
allow category suppression with category=no
+35
check against edit/move, rather than for create, and simplify logic
+18
add template protection tracking category
+962
output the categories, and don't display the banner if the page is not protected
+363
26 June 2014
add expiry category code
+550
add missing parameter methods, add a Blurb:_getExpandedMessage method, and (hopefully) finish updating the various functions to work with the new config structure
+2,454
sort parameter methods into alphabetical order, and remove the ones that are no longer needed
−1,272
start converting the blurb class to the new parameter system
−483
25 June 2014
24 June 2014
start changing the protection category function after a restructure of the config
−50
allow the first positional parameter to be used for the reason
+42
various category updates
+608
23 June 2014
Add render methods to the Padlock and Banner classes, and call them from the exportToLua function. Now we have something to look at, yay!
+2,156
allow specifying a data table to config objects for testing purposes
+6
use lang:formatDate instead of os.date as it is easier to localise
+14
format date output in the Blurb class
+282
validate expiry and protection dates
+837
allow specifying banner config by protection level as well as by action
+209
add a blurb parameter function for making the explanation text
+591
22 June 2014
lazily initialise modules we don't always need
+91
allow individual banner config items to fall back to the same value in the defaults table, and add functions for making the blurb values
+906
21 June 2014
use gsub instead of the mw.message library for substituting parameters, as mw.message:params doesn't work with metatables; also, a few bug fixes
+238
remove the Image class from _exportClasses
−17
20 June 2014
move image code to the BannerTemplate class, and simplify it
−241
move section, username and deletion discussion methods out of the ProtectionStatus class, as they don't really have anything to do with protection status
+222
19 June 2014
get rid of unnecessary wrapper functions
−542
finish making blurb parameter functions
+1,408
add some more blurb functions - up to no. 13 now
+1,392
add more blurb functions
+2,203
16 June 2014
add some more blurb parameter functions
+517
move the parameter functions to the top level of the blurb class and add a new one
+1,769
simplify the structure a bit and write some more parameter functions
−1,939
9 June 2014
use factory classes to get the banner and category classes, and add a PageData class so we don't expose all of mw.title to every class
+3,772
some more work on the Blurb class
+350
make some image tweaks and start a function for substituting blurb parameters
+581
finish converting p.getCategoryName
−660