Template:Holiday: Difference between revisions
Abra Saghast (talk | contribs) Revamping Tempalte format for use of "If: | then:" function with "!" headers. |
Abra Saghast (talk | contribs) new Template format (removing code errors); updating to "Pagename" parameter; clarifying usage |
||
| Line 1: | Line 1: | ||
{| class="floatright" style=" width:267px; border: | {| class="floatright" style=" width:267px; border:2px solid midnightblue;" | ||
|+'''Greyhawk Holiday''' | |+'''Greyhawk Holiday''' | ||
| | | | ||
{| style=" width:265px; border:1px solid | {| style=" width:265px; border:1px solid midnightblue; " | ||
| colspan="2" style="background: | | colspan="2" style="background:midnightblue; line-height: 300%; text-align:center; " | <span style="font-family: Arial Black; font-size: 14pt; color:white">{{#if:{{{name|}}} | {{{name|}}} | {{PAGENAME}} }}</span> | ||
|- | |- | ||
| colspan="2" style="text-align:center;" | {{{image}}} | | colspan="2" style="text-align:center;" | {{{image}}} | ||
| Line 9: | Line 9: | ||
| colspan="2" style="text-align:center;" | <span style="font-size:8pt">{{{caption}}}</font> | | colspan="2" style="text-align:center;" | <span style="font-size:8pt">{{{caption}}}</font> | ||
|- | |- | ||
| colspan="2" style="background: | | colspan="2" style="background:midnightblue; line-height: 1%" | | ||
|- | |- | ||
|- style=" vertical-align: top;" | |- style=" vertical-align: top;" | ||
| {{#if:{{{alt name|}}} | '''Also Called:''' }} || {{#if:{{{alt name|}}} | {{{alt name|}}} }} | |||
|- | |||
| | | {{#if:{{{frequency|}}} | '''Frequency:''' }} || {{#if:{{{frequency|}}} | {{{frequency|}}} }} | ||
|- | |- | ||
| {{#if:{{{date|}}} | '''Date(s):''' }} || {{#if:{{{date|}}} | {{{date|}}} }} | |||
| {{#if:{{{ | |||
|- | |- | ||
| {{#if:{{{type|}}} | '''Type:''' }} || {{#if:{{{type|}}} | {{{type|}}} }} | |||
| {{#if:{{{ | |||
|- | |- | ||
| {{#if:{{{observed|}}} | '''Observed by:''' }} || {{#if:{{{observed|}}} | {{{observed|}}} }} | |||
| {{#if:{{{ | |||
|- | |- | ||
| {{#if:{{{significance|}}} | '''Significance:''' }} || {{#if:{{{significance|}}} | {{{significance|}}} }} | |||
| {{#if:{{{ | |||
|- | |- | ||
|} | |} | ||
|} | |} | ||
<noinclude> | <noinclude> | ||
This template should be added to articles | This template should be added to articles about specific holidays or similar observances. | ||
A brief explanation of the fields used follows: | A brief explanation of the fields used follows: | ||
| Line 41: | Line 34: | ||
*'''Alt Name:''' If the Holiday has more than one commonly used name, or has names used in other regions, list them here. | *'''Alt Name:''' If the Holiday has more than one commonly used name, or has names used in other regions, list them here. | ||
*'''Frequency:''' If the Holiday is recurring, the frequency of the observance (annual, biannual, quarterly, ''et cetera'') should appear here. | *'''Frequency:''' If the Holiday is recurring, the frequency of the observance (annual, biannual, quarterly, ''et cetera'') should appear here. | ||
*'''Date(s):''' All dates should be reckoned via the [[Greyhawk Calendar|Common Year]]. Events that occur more than four times per year should avoid posting specific dates, in the interest of conserving space in the infobox. | *'''Date(s):''' All dates should be reckoned via the [[Greyhawk Calendar|Common Year]]. Events that occur more than four times per year should avoid posting specific dates, in the interest of conserving space in the infobox. | ||
:If the date is annual, put the month and day inside double brackets, e.g. - <nowiki>[[Richfest 4]]</nowiki>. | |||
:If the date is only a year, then only the numeric value of a year is necessary. "CY" will be appended automatically and a link created to the article for that year. | |||
*'''Type:''' This field should list the type of Holiday (religious, civic, racial, regional, etc). | *'''Type:''' This field should list the type of Holiday (religious, civic, racial, regional, etc). | ||
*'''Observed by:''' Participants should be identified in this field. | *'''Observed by:''' Participants should be identified in this field. | ||
| Line 49: | Line 44: | ||
Copy and paste the section below to the top of the article, and fill in the information areas. The image and caption parameters are optional, but are preferred. | Copy and paste the section below to the top of the article, and fill in the information areas. The image and caption parameters are optional, but are preferred. | ||
If any fields are left undefined they will not appear. The recommended image size is a width of 250px so that it will completely fill the infobox without increasing its size. | If any fields are left undefined they will not appear. The recommended image size is a width of 250px so that it will completely fill the infobox without increasing its size.<br /> | ||
'''"Image"''' should only use files which have been already uploaded, in this format : <nowiki>[[File:FileName.png|250px]].</nowiki> | |||
"Name" is only necessary if it differs substantially from the Page Name. | '''"Name"''' is only necessary if it differs substantially from the Page Name. | ||
Add wiki links in "observed" to articles on listed races or people by putting the name of the group inside double brackets, <nowiki>[[like this]]</nowiki>. | Add wiki links in "observed" to articles on listed races or people by putting the name of the group inside double brackets, <nowiki>[[like this]]</nowiki>. | ||
Revision as of 01:12, 30 January 2020
| ||||||||||||||||||||
This template should be added to articles about specific holidays or similar observances.
A brief explanation of the fields used follows:
- Alt Name: If the Holiday has more than one commonly used name, or has names used in other regions, list them here.
- Frequency: If the Holiday is recurring, the frequency of the observance (annual, biannual, quarterly, et cetera) should appear here.
- Date(s): All dates should be reckoned via the Common Year. Events that occur more than four times per year should avoid posting specific dates, in the interest of conserving space in the infobox.
- If the date is annual, put the month and day inside double brackets, e.g. - [[Richfest 4]].
- If the date is only a year, then only the numeric value of a year is necessary. "CY" will be appended automatically and a link created to the article for that year.
- Type: This field should list the type of Holiday (religious, civic, racial, regional, etc).
- Observed by: Participants should be identified in this field.
- Significance: A short (no more than a single sentence) explanation of the significance of the holiday should appear in this field.
Usage
Copy and paste the section below to the top of the article, and fill in the information areas. The image and caption parameters are optional, but are preferred.
If any fields are left undefined they will not appear. The recommended image size is a width of 250px so that it will completely fill the infobox without increasing its size.
"Image" should only use files which have been already uploaded, in this format : [[File:FileName.png|250px]].
"Name" is only necessary if it differs substantially from the Page Name.
Add wiki links in "observed" to articles on listed races or people by putting the name of the group inside double brackets, [[like this]].
Do NOT add wiki links to alignments.
{{Greyhawk Holiday
name =
image =
caption =
alt name =
frequency =
date =
type =
observed =
significance =
}}
|