Difference between revisions of "QOTD"

From Community Pnut.io Wiki
Jump to: navigation, search
m
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
{{Template:Banner|'''?'''|<strong>Initial release.</strong> Current status: Random edits in progress!<br>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.}}
+
{{Template:Banner|'''?'''|<strong>Initial release.</strong> Current status: Random edits in progress!<br>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 ==
 
== Quotation-Of-The-Day ==
 
For the Pnut Wiki, of course.<br>
 
For the Pnut Wiki, of course.<br>
Line 8: Line 8:
 
[[QOTD#top|'''Pnut of the day''']]:<br>
 
[[QOTD#top|'''Pnut of the day''']]:<br>
 
{{#switch: {{CURRENTDAY}}
 
{{#switch: {{CURRENTDAY}}
  |0=Something went wrong. Bend over.
+
  |0=[[@bazbt3]] is the best! Why don't you drop him a note?
 
  |1=What's happening? [[Events|See the Events Page!]]
 
  |1=What's happening? [[Events|See the Events Page!]]
  |2=Is your avatar in need of a refresh? Check out [[ThemeMonday]].
+
  |2=Pnut went live on September 10 2016.
 
  |3=The Pnut Wiki has [[ToDo|pages that need work]].
 
  |3=The Pnut Wiki has [[ToDo|pages that need work]].
 
  |4=Who makes this Wiki? [[:Category:User|WE do!]]
 
  |4=Who makes this Wiki? [[:Category:User|WE do!]]
 
  |5=Want to know about other Pnut/Wiki users? Check out their [[:Category:User|pages]].
 
  |5=Want to know about other Pnut/Wiki users? Check out their [[:Category:User|pages]].
  |6=If it's nearly the second Monday of the month it will soon be [[ThemeMonday]]!
+
  |6=If it's nearly the second Monday of the month it will soon be [[ThemeMonday|#ThemeMonday]]!
 
  |7=Did you know Pnut also has [[File_Storage|file storage]]?
 
  |7=Did you know Pnut also has [[File_Storage|file storage]]?
 
  |8=There are a number of improvement [[ToDo|initiatives]] in progress.
 
  |8=There are a number of improvement [[ToDo|initiatives]] in progress.
Line 20: Line 20:
 
  |10=Have you got a [[PCA|cookie]]?
 
  |10=Have you got a [[PCA|cookie]]?
 
  |11=Have you got any [[Apps|apps]] yet?
 
  |11=Have you got any [[Apps|apps]] yet?
  |12=Do you like music? Search for the [[MNDP_(Monday_Night_Dance_Party)|#MondayNightDanceParty!]] tag.
+
  |12=Is your avatar in need of a refresh? Check out [[ThemeMonday|#ThemeMonday]].
|13=Pnut went live on September 10 2016.
+
|13=Do you like music? Search for the [[MondayNightDanceParty|#MondayNightDanceParty!]] tag.
 
  |14=Are you a hacker? Try the [[Hackathon|#Hackathons!]]
 
  |14=Are you a hacker? Try the [[Hackathon|#Hackathons!]]
 
  |15=Would you like to write a themed short story every week? [[WednesdayChallenge]] could be for you.
 
  |15=Would you like to write a themed short story every week? [[WednesdayChallenge]] could be for you.
Line 27: Line 27:
 
  |17=Is everyone welcome here? [x] Do we behave like adults? [...]
 
  |17=Is everyone welcome here? [x] Do we behave like adults? [...]
 
  |18=Do you like bees? Peanuts? Android? Apple? You're welcome here.
 
  |18=Do you like bees? Peanuts? Android? Apple? You're welcome here.
  |19=Have you tried [[QuoteSunday]] yet?
+
  |19=Have you tried [[QuoteSunday|#QuoteSunday]] yet?
  |20=Every Monday: [[MNDP_(Monday_Night_Dance_Party)|#MondayNightDanceParty!]]
+
  |20=Every Monday: [[MondayNightDanceParty|#MondayNightDanceParty]]!
  |21=Feeling artistic? Want to start up a [[TuesdayChallenge|#TuesdayChallenge]]? Weekly art! (It's been mentioned recently.)
+
  |21=Feeling artistic? Want to start up a [[TuesdayChallenge|#TuesdayChallenge]]? Weekly art!
 
  |22=Feeling creative? Try the [[WednesdayChallenge|#WednesdayChallenge]]!
 
  |22=Feeling creative? Try the [[WednesdayChallenge|#WednesdayChallenge]]!
 
  |23=New to Pnut? Don't wait to be invited to chat, just chat!
 
  |23=New to Pnut? Don't wait to be invited to chat, just chat!
Line 36: Line 36:
 
  |26=Are you a developer? Take a look at [https://pnut.io/docs the API docs].
 
  |26=Are you a developer? Take a look at [https://pnut.io/docs the API docs].
 
  |27=[[Events|What's happening]] across Pnut?
 
  |27=[[Events|What's happening]] across Pnut?
  |28=Want chat rooms? Pnut has [[Patter_Rooms|public and private]].
+
  |28=Want chat rooms? Pnut has [[Messaging|public and private]].
  |29=Want Pnut storage? 10GiB? Buy a [[Pnut Badge]].
+
  |29=Want to support Pnut and get more storage? Buy a [[Pnut Badge]].
  |30=Have questions frequently? Check out the [[FAQ]]!
+
  |30=Have questions frequently? Check out the [[Questions|FAQ]]!
 
  |31=The Pnut Wiki has [[ToDo|pages that need work]].
 
  |31=The Pnut Wiki has [[ToDo|pages that need work]].
 
  |32=Something went wrong. Hands up!
 
  |32=Something went wrong. Hands up!

Revision as of 08:16, 18 October 2018


?

Initial release. Current status: Random edits in progress!
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 Wiki, of course.
A live example:


Pnut of the day:
Feeling creative? Try the #WednesdayChallenge!



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.