This user page employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
This template is not visible until it is properly used with parameters as described below. See testcases for more information on how this looks. (Coming soon)
This template allows you to set an automatic holiday greeting for up to 10 custom holidays and Thanksgiving. It uses MediaWiki time variables to instantly add the header for the holidays you set.
Please read all parameter usage carefully. Failure to set all parameters correctly could result in a non-functional template or some ugly side effects.
{{User:Hersfold/Holiday Header |date1 = |msg1 = |date2 = |msg2 = . . . |date10 = |msg10 = |thxgiv = |thxgivmsg = |border = |bgcolor = |font = }}
Due to the limitations of the software and template code, only those holidays with fixed dates can be used (with the exception of Thanksgiving - for the special coding used for that, see "Thanksgiving" below. If you wish to add a holiday that is not fixed to a certain date in the Gregorian calendar, such as Easter or Hanukkah, you will have to manually update the dates each year ahead of time to ensure the header appears on time.
Each date must be set in MMDD format, with leading zeros. For example:
The associated message will appear on the date you set. The code:
<nowiki>{{User:Hersfold/Holiday Header |date1 = 0214 |msg1 = [[File:Herz1.gif]] Happy [[Valentine's Day]]! }}</nowiki>
will cause this message to appear every February 14th:
You may set up to 10 custom dates and messages with this format. Dates need not be in chronological order, however this will make reading them easier.
Due to the relative nature of the date of Thanksgiving, and the variance of that date between the United States and Canada, this holiday has a special coding that allows users to select if they wish to use the United States version, the Canadian version, or none at all.
You may set a custom message for Thanksgiving by using the thxgivmsg parameter. The default message is below:
The template currently does not support additional relatively-dated holidays. It is unlikely that any other such holidays will be incorporated into the template, as many are based upon celestial events (such as Easter) or are based on other calendar systems (virtually any religious holiday except for those in Christianity). If you do not believe a holiday fits within either of those unavoidable limitations, contact Hersfold to work on adding the holiday to the template. If you are really sure you know what you're doing, you are of course welcome to try it yourself, but be aware that this code is very complex already and you are responsible for repairing any damage.
default = allows you to set a message that will appear on all non-holiday days.