Difference between revisions of "QOTD"
m (Added : prior to Category:User to stop this page being categorised as a user. Tsk, use the Preview button!) |
m (Edited content) |
||
Line 9: | Line 9: | ||
|0=Something went wrong. Bend over. | |0=Something went wrong. Bend over. | ||
|1=What's happening? [[Events|See the Events Page!]] | |1=What's happening? [[Events|See the Events Page!]] | ||
− | |2= | + | |2=Is your avatar in need of a refresh? Check out [[ThemeMonday]]. |
|3=The pnut.io Wiki has [[ToDo|pages that need work.]] | |3=The pnut.io 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 | + | |5=Want to know about other pnut.io/Wiki users? Check out their [[:Category:User|pages.]] |
− | + | |6=If it's nearly the second Monday of the month it will soon be [[ThemeMonday]]! | |
|7=Did you know pnut.io also has [[File_Storage|file storage]]? | |7=Did you know pnut.io 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. |
Revision as of 20:53, 4 October 2017
? |
Initial release contains only broken links and history. 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. |
A sample Quotation-Of-The-Day snippet for transclusion into another page
For the pnut.io Wiki, of course.
An example:
New to pnut.io? don't wait to be invited to chat, just chat!
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.