User:FireBatVillain/NeedsHelpStubsMath

From Fanlore
Jump to navigation Jump to search

Stubs Needs Help Math

This is a test of Fanlore's MediaWiki functions for calculating numbers based on the date. Try editing this page (but please do not save it) to see what invocations were used.

Numerical values are generated via MediaWiki Magic words and the MediaWiki #expr function

7 <--- "what month was this page last edited on?"

5 <--- "what is the current month?"

10 <--- "what's the current day of the month?" <--- typical/legacy method used in the Template:Stubs Need Help switch

41 <--- "what is the current day of the month, plus 31?"

0 <--- "was this page edited this month? if so, value is 1"

41 <--- "give me the current day of the month. Give me the current day of the month, plus 31, if the last time this page was edited was not this month"

^--- proposed method for use in the Template:Stubs Need Help switch. This was set up in July of 2022, so when the month rolls over to August of 2022, we should see this go to 32+

Inverted values for testing

0 <--- "was this page edited this month? if not, value is 1" (inverted logic for testing)

10 <--- "give me the current day of the month + 30. If this page hasn't been edited this month, instead just give me the current day of the month" (inverted logic for testing)