Difference between revisions of "QOTD"

From Community Pnut.io Wiki
Jump to: navigation, search
m (Updated day 17)
m (Updated #TuesdayChallenge)
Line 29: Line 29:
 
  |19=Have you tried [[QuoteSunday]] yet?
 
  |19=Have you tried [[QuoteSunday]] yet?
 
  |20=Every Monday: [[MNDP_(Monday_Night_Dance_Party)|#MondayNightDanceParty!]]
 
  |20=Every Monday: [[MNDP_(Monday_Night_Dance_Party)|#MondayNightDanceParty!]]
  |21=Feeling artistic? Want to start up a [[TuesdayChallenge|#TuesdayChallenge]]?
+
  |21=Feeling artistic? Want to start up a [[TuesdayChallenge|#TuesdayChallenge]]? Weekly art! (It's been mentioned recently.)
 
  |22=Feeling creative? Try the [[WednesdayChallenge|#WednesdayChallenge/#WedC]] (coming soon!)
 
  |22=Feeling creative? Try the [[WednesdayChallenge|#WednesdayChallenge/#WedC]] (coming soon!)
 
  |23=New to pnut.io? don't wait to be invited to chat, just chat!
 
  |23=New to pnut.io? don't wait to be invited to chat, just chat!

Revision as of 13:05, 21 October 2017


?

Initial release. Current status: Random edits in progress!
Developed originally for the ADN Wiki, and intended to generate a pithy or useful quotation every day of the month. Useful, pnut-specific facts would be nice to show on the Main Page.

Quotation-Of-The-Day

For the pnut.io Wiki, of course.
A live example:


pnut of the day:
Feeling creative? Try the #WednesdayChallenge/#WedC (coming soon!)



It uses code like the following, the middle is removed for brevity:

{{#switch: {{CURRENTDAY}}
 |0=Something went wrong. Bend over.
 |1=What's happening? [[Events|This is.]]
 ...
 |31=The pnut.io Wiki has [[ToDo|pages that need work.]]
 |32=Something went wrong. Hands up!
}}

The 'switch' command uses a system variable 'CURRENTDAY' and looks through a list of entries starting with a "|" and a number which corresponds to the CURRENTDAY of the month. '0' and '32' are superfluous.