Template:Holiday: Difference between revisions

From Greyhawk Wiki
Jump to navigation Jump to search
m 9 revisions imported: Imported from CF GH Wiki
Revamping Tempalte format for use of "If: | then:" function with "!" headers.
Line 1: Line 1:
{| class="toccolours" style="float:right; margin:0 0 0.5em 1em; width:21em; clear:right;"
{| class="floatright" style=" width:267px; border:1px solid MidnightBlue;"
|+'''Greyhawk Holiday'''
|
{| style=" width:265px; border:1px solid MidnightBlue; "
| 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; font-size: larger;" | ''Greyhawk'' Holiday
| colspan="2" style="text-align:center;" | {{{image}}}
|-
|-
!colspan=2 style="font-size: large; background-color: {{{bgcolor<noinclude>|#000</noinclude>}}}; color: {{{fgcolor<noinclude>|#FFF</noinclude>}}}; line-height: 300%;" | <font face="Garamond">{{{name}}}
| colspan="2" style="text-align:center;" | <span style="font-size:8pt">{{{caption}}}</font>
|-
|-
|colspan=2 style="text-align:center;" | {{{image}}}
| colspan="2" style="background:MidnightBlue; line-height: 1%" |
|-
|-
|colspan=2 style="text-align:center;" | {{{caption}}}
|- style=" vertical-align: top;"
 
!  {{#if:{{{alt name|}}} | Also Called:  }}
|  {{#if:{{{alt name|}}} | {{{alt name|}}}  
|-
|-
! Frequency
! {{#if:{{{frequency|}}} | Frequency:  }}
| {{{frequency}}}
|  {{#if:{{{frequency|}}} | {{{frequency|}}}
|-
|-
! Date(s)
! {{#if:{{{date|}}} | Date(s):  }}
| {{{date}}}
|  {{#if:{{{date|}}} | {{{date|}}}  
|-
|-
! Type
! {{#if:{{{type|}}} | Type:  }}
| {{{type}}}
|  {{#if:{{{type|}}} | {{{type|}}}  
|-
|-
! Observed by
! {{#if:{{{observed|}}} | Observed by:  }}
| {{{observed}}}
|  {{#if:{{{observed|}}} | {{{observed|}}}  
|-
|-
! Significance
! {{#if:{{{significance|}}} | Significance:  }}
| {{{significance}}}
|  {{#if:{{{significance|}}} | {{{significance|}}}
|}
|}
|}
<noinclude>
<noinclude>
Line 31: Line 39:
A brief explanation of the fields used follows:
A brief explanation of the fields used follows:


*'''Frequency:''' The frequency of the observance (annual, biannual, quarterly, ''etcetera'') should appear here.
*'''Alt Name:''' If the Holiday has more than one commonly used name, or has names used in other regions, list them here.
*'''Date(s):''' All dates should be reckoned via the [[Greyhawk calendar]]. Events that occur more than four times per year should avoid posting specific dates, in the interest of conserving space in the infobox.
*'''Frequency:''' If the Holiday is recurring, the frequency of the observance (annual, biannual, quarterly, ''et cetera'') should appear here.
*'''Type:''' This field should list the type of holiday (religious, civic, racial, regional, ''etcetera'').
*'''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. 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.
*'''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.
*'''Significance:''' A short (no more than a single sentence) explanation of the significance of the holiday should appear in this field.


==Usage==
==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 : <nowiki>[[File:FileName.png|250px]].</nowiki>
"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>.
Do ''NOT'' add wiki links to alignments.
{| style="border: none; background: none;"
{| style="border: none; background: none;"
|<pre>
|<pre>
{{Greyhawk Holiday|fgcolor=#fff|
{{Greyhawk Holiday
bgcolor=#000|
name         =
fgcolor=#fff|
image       =  
name=|
caption     =
image=|
alt name    =
caption=|
frequency   =
frequency=|
date         =
date=|
type         =
type=|
observed     =
observed=|
significance =
significance=|
}}
}}
</pre>
</pre>
|}
|}
Two additional optional parameters exist to enable changing of the background and foreground colors in the name part of the infobox, the default is white text on a black background.
<pre><nowiki>
|fgcolor=#fff
|bgcolor=#000
</nowiki></pre>
</noinclude>
</noinclude>


[[Category:Greyhawk holidays|*]]
[[Category:Greyhawk holidays|*]]

Revision as of 10:11, 5 April 2019

Greyhawk Holiday
Holiday
{{{image}}}
{{{caption}}}

Optional parameters marked "†".

This template should be added to articles on 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. 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 =
}}