TimelyGreetingPlugin (or '~TimelyGreeting' in use) is a NeWikiPlugin that returns a timely greeting based on either server time or a provided timezone.
Generates a "Good morning!", "Good afternoon!", "Good evening!", or "Good night!" depending on the current time at the timezone of the server or a provided timezone. If the provided timezone cannot be understood, returns a string based on GMT.
While subjective, the time boundaries used by this plugin are:
This plugin is still relatively untested across time zones. Any bugs, please report to Murray Altheim.
This is distributed here as code only. There is a dependency on org.ceryle.wiki.plugin.util.ParamUtil, which is included. Please note that the distribution attached to this page may not be the most current: see the CeryleWiki for the most recent distribution of the code.
[{TimelyGreeting}]Good morning!
[{TimelyGreeting verbose='yes' timezone='PDT'}]Good morning!
...and with some additional styling, such as might be at the top of a page:
%%(font-size:xx-large;color:#008000) [{TimelyGreeting morning='おはようございます。' afternoon='こんにちは!' night='こんばんは。'}] %%