Difference between revisions of "QOTD"

From Community Pnut.io Wiki
Jump to: navigation, search
m
m
 
Line 34: Line 34:
 
  |24=Pnut has [[Apps|apps and services]]!
 
  |24=Pnut has [[Apps|apps and services]]!
 
  |25=Why not try making a page? Eventually the [[https://wiki.pnut.io/Help:StyleGuide|Style Guide]] may be useful.
 
  |25=Why not try making a page? Eventually the [[https://wiki.pnut.io/Help:StyleGuide|Style Guide]] may be useful.
  |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/api/implementation/overview the API docs].
 
  |27=[[Events|What's happening]] across Pnut?
 
  |27=[[Events|What's happening]] across Pnut?
 
  |28=Want chat rooms? Pnut has [[Messaging|public and private]].
 
  |28=Want chat rooms? Pnut has [[Messaging|public and private]].

Latest revision as of 15:45, 26 November 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:
Have you tried #QuoteSunday yet?



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.