Page history
6 July 2014
5 July 2014
4 July 2014
3 July 2014
remove parameter methods specific to individual reasons - the logic has been moved to Moudle:Protection banner/config
-1,119
remove unnecessary whitespace and copy edit one of the error messages
m+5
allow bannerConfig table fields to be functions
+190
use a comment instead of a variable assignment to make it clear that protectionObj is the error message
+10
make the variable names a little more descriptive
-23
localise the error message by moving the makeWikitextError function code inside p._main; that way we don't have to worry about making cfg global
-87
1 July 2014
make the args table optional from p._main
+19
simplify reason-setting code
-35
no need for args.reason
-15
move documentation class and export function to Module:Protection banner/documentation
-1,782
call it "reasonTable" throughout, rather than switching between "reasonTable" and "reasonsTable"
m-2
add a Documentation class for autogenerating the reason documentation
+1,784
30 June 2014
produce wikitext errors rather than script errors for errors caused by invalid user input
+593
use mw.ustring.lower to convert the reason to lower case, for the benefit of other-language wikis
+10
29 June 2014
rm stuff only useful for pp-create and other things deprecated in favor of salting
-551
no need to special case indef expiry. if it's indef, the messages that get used don't use it anyway
-90
simplify _substituteParameters
-30
make makeFullUrl a local helper function
-20
specify Template:Pp as a wrapper for the module, and make args a local variable as otherwise it's a bit of a bracket overload
+47
comment tweaks
+77
get rid of a few more unnecessary local variables
-406
make the protection object responsible for accessing the title object and the config inside the Blurb class
+126
remove another unnecessary local
-18
fix variable name
+14
use the config to set the padlock "right" propery, and remove the Padlock:setRight method
+27
simplify Protection:makeProtectionCategory and update the comments
-630
28 June 2014
rm unnecessary do/end blocks
-35
make the banner in charge of setting its own fields
-547
the only reason to ever use a title other than the current one is for testing, so don't bother exposing it to wikitext
-125
put Protection in charge of generating its own category links
+71
make Blurb be responsible for setting its own fields
-226
condense _main and switch Blurb arg order
-94
rm some locals that only get used once
-232
make the Protection class be in charge of the title, and some other tweaks
-137
config isn't an object anymore
-306
simplify further
+4
use new cfg format
-48
some cleanup
+129
use a __tostring metamethod to render the banner objects
+66
move the category methods to the Protection class, and get rid of all the category objects
-2,254
allow passing the config object into the exportToLua and exportToWiki functions
-21
get a few other changes from the ec
-79
and finally protectionDate
-16
next expiry
-43
now reason
-12
now level
-48
try to merge the edit conflict, one variable at a time, starting with action
-821