Versionen
10. Juli 2014
turn Blurb.formatDate into Blurb:_formatDate so that it can access the config
−21
get the expiry date format from a config message
+39
output an error category if the protection object is not created properly
+63
allow default args to work in sandbox pages
+82
6. Juli 2014
allow reading wrapper templates and default arguments from the config page
+196
use pipes as separators instead of hyphens for the protection category keys and validate reasons when we create the protection object to make sure they don't contain pipes
+101
just pass the args through to the /config functions - that means the /config functions can use arbitrary parameters without them having to be specified in the main module
−53
5. Juli 2014
4. Juli 2014
3. Juli 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
K+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. Juli 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"
K−2
add a Documentation class for autogenerating the reason documentation
+1.784
30. Juni 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. Juni 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. Juni 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