Template:Event
- About
This template is a Main page template that uses a #switch function to display planned community events.
- Use
This template is specifically intended for use on the Main Page. It can be used elsewhere, but is not intended to be. Community Events (which are typically announced in blog postings) must be added to this template in order for them to appear on the main page.
The template by default transcludes from {{Event/None}}. However, if the current server date matches a date on this template's list of dates, the default message is switched out, and the event listed is displayed instead.
- Syntax
All dates are (for convenience) sorted in chronological order. To add an event, copy over the following, substituting relevant information:
| <MONTH>-<DATE>=<IMAGE (optional)> <TEXT OF EVENT>.</div></div>
The MONTH and DATE parameters must be numerical; the months of January through September have leading zeroes (i.e. January = 01, February = 02, etc), whereas the first through tenth days in each month do not use leading zeroes (i.e. the first day of the month = 1, second day = 2, etc). Standard Event template messages should be used in place of the TEXT OF EVENT, and include images.
Although not necessary for the template to function, please sort date entries chronologically. Do not place any entries after the final entry - doing so will cause the default message to no longer display.
- Secondary Templates
See also: Category:Events templates
There are standardized messages that can be used on this template, to speed up the process of entering in events. These templates are listed below, for ease.
{{Event/IRC}} | |
---|---|
Used to display standard message advertising IRC days/weekends.
{{Event/IRC}}to display: There is an optional parameter: if any additional text is listed in the template, that text will display in place of the word 'day', such as follows: {{Event/IRC|weekend}} will display: |
{{Event/Birthday}} | |
---|---|
Used to display standard message marking a user birthday.
{{Event/Birthday|<USER NAME>|<GENDER>}} USER NAME is a required parameter for the template. Inserting a name will automatically create links to their userpage and talk page - be sure to the type the name exactly correctly. GENDER is optional - if the user makes their gender publicly available, it is preferable to use it. The syntax, when accounting for gender is 'm' for male and 'f' for female (lower-case letters). If no text is given, the template will default gender-neutral terms (they, their).
{{Event/Birthday|A morris|f}} Will produce: Today is A morris's birthday! Leave her a happy birthday message on her talk page!{{Event/Birthday|Dharden|m}} Will produce: Today is Dharden's birthday! Leave him a happy birthday message on his talk page! |
- Source credit
This template design was copied over from Lostpedia, specifically {{TodayinLost}}.