Page history
18 July 2014
17 July 2014
wikipedia>Mr. Stradivarius
log keys in Protection:makeProtectionCategory for now, to help with writing the test cases
+14
wikipedia>Mr. Stradivarius
Protection:makeProtectionCategory - return a blank string on no match
+11
wikipedia>Mr. Stradivarius
don't set protectionDate to the current time if args.date wasn't specified
+25
10 July 2014
9 July 2014
wikipedia>Mr. Stradivarius
add explanation blurb for semi-protection
+143
wikipedia>Mr. Stradivarius
turn Blurb.formatDate into Blurb:_formatDate so that it can access the config
−21
wikipedia>Mr. Stradivarius
get the expiry date format from a config message
+39
wikipedia>Mr. Stradivarius
output an error category if the protection object is not created properly
+63
wikipedia>Mr. Stradivarius
allow default args to work in sandbox pages
+82
6 July 2014
wikipedia>Mr. Stradivarius
allow reading wrapper templates and default arguments from the config page
+196
wikipedia>Mr. Stradivarius
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
wikipedia>Mr. Stradivarius
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
4 July 2014
wikipedia>Mr. Stradivarius
don't use the wrapper option with Module:Arguments, as it prevents us from passing through parameters from the parent frame
−28
wikipedia>Mr. Stradivarius
Fix Protection:makeProtectionCategory for office-protected pages. For these, the reason needs to be the no. 1 priority, not just higher priority than the namespace.
+613
3 July 2014
wikipedia>Mr. Stradivarius
remove parameter methods specific to individual reasons - the logic has been moved to Moudle:Protection banner/config
−1,119
wikipedia>Mr. Stradivarius
remove unnecessary whitespace and copy edit one of the error messages
m+5
wikipedia>Mr. Stradivarius
allow bannerConfig table fields to be functions
+190
wikipedia>Mr. Stradivarius
use a comment instead of a variable assignment to make it clear that protectionObj is the error message
+10
wikipedia>Mr. Stradivarius
make the variable names a little more descriptive
−23
wikipedia>Mr. Stradivarius
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
wikipedia>Mr. Stradivarius
make the args table optional from p._main
+19
wikipedia>Mr. Stradivarius
simplify reason-setting code
−35
30 June 2014
wikipedia>Jackmcbarn
no need for args.reason
−15
wikipedia>Mr. Stradivarius
move documentation class and export function to Module:Protection banner/documentation
−1,782
wikipedia>Mr. Stradivarius
call it "reasonTable" throughout, rather than switching between "reasonTable" and "reasonsTable"
m−2
wikipedia>Mr. Stradivarius
add a Documentation class for autogenerating the reason documentation
+1,784
wikipedia>Mr. Stradivarius
produce wikitext errors rather than script errors for errors caused by invalid user input
+593
29 June 2014
wikipedia>Mr. Stradivarius
use mw.ustring.lower to convert the reason to lower case, for the benefit of other-language wikis
+10
wikipedia>Jackmcbarn
rm stuff only useful for pp-create and other things deprecated in favor of salting
−551
wikipedia>Jackmcbarn
no need to special case indef expiry. if it's indef, the messages that get used don't use it anyway
−90
wikipedia>Jackmcbarn
simplify _substituteParameters
−30
wikipedia>Jackmcbarn
make makeFullUrl a local helper function
−20
wikipedia>Mr. Stradivarius
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
wikipedia>Mr. Stradivarius
comment tweaks
+77
wikipedia>Mr. Stradivarius
get rid of a few more unnecessary local variables
−406
wikipedia>Mr. Stradivarius
make the protection object responsible for accessing the title object and the config inside the Blurb class
+126
wikipedia>Mr. Stradivarius
remove another unnecessary local
−18
wikipedia>Mr. Stradivarius
fix variable name
+14
wikipedia>Mr. Stradivarius
use the config to set the padlock "right" propery, and remove the Padlock:setRight method
+27
28 June 2014
wikipedia>Mr. Stradivarius
simplify Protection:makeProtectionCategory and update the comments
−630
wikipedia>Jackmcbarn
rm unnecessary do/end blocks
−35
wikipedia>Jackmcbarn
make the banner in charge of setting its own fields
−547
wikipedia>Jackmcbarn
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
wikipedia>Jackmcbarn
put Protection in charge of generating its own category links
+71
wikipedia>Jackmcbarn
make Blurb be responsible for setting its own fields
−226
wikipedia>Jackmcbarn
condense _main and switch Blurb arg order
−94
wikipedia>Jackmcbarn
rm some locals that only get used once
−232
wikipedia>Jackmcbarn
make the Protection class be in charge of the title, and some other tweaks
−137
wikipedia>Jackmcbarn
config isn't an object anymore
−306