Runes of Magic Wiki
No edit summary
No edit summary
Line 7: Line 7:
 
Skeleton to create a festival template:
 
Skeleton to create a festival template:
 
<pre>
 
<pre>
{{Festival tag|festival_name|festival_icon|festival_months|{{{1|}}}|border=|background=|text=|link=|px=|noclear={{{noclear|}}}|float={{{float|right}}}}}
+
{{Festival tag|festival_name|festival_icon|festival_months|{{{1|}}}|border=|background=|text=|link=|px=|noclear={{{noclear|}}}|float={{{float|right}}}|year=}}
 
{{#if:{{{nolink|}}}||[[Category:festival_name]]}}&lt;noinclude>{{clear|left}}
 
{{#if:{{{nolink|}}}||[[Category:festival_name]]}}&lt;noinclude>{{clear|left}}
   
Line 40: Line 40:
 
:left, none, or right. Overrides default of float=right. If not blank, and not left or right, all other values are treated as "none"
 
:left, none, or right. Overrides default of float=right. If not blank, and not left or right, all other values are treated as "none"
 
;year
 
;year
:(optional) State the year this page is relevant to. Could also state the range of years, such as '''2019-2020''', or '''2019 to 2020'''.
+
:(optional) State the year this page is relevant to. Could also state the range of years, such as '''2019-2020''', or '''2019 to 2020'''. This field was not in use when the Festval-specific tegs were created, so <nowiki>|year={{{year|}}}</nowiki> needs to be added if you want to use this field.
   
   

Revision as of 14:59, 25 October 2020

This is the generic festival tag template and should be called only by the other festival templates.

Skeleton to create a festival template:

{{Festival tag|festival_name|festival_icon|festival_months|{{{1|}}}|border=|background=|text=|link=|px=|noclear={{{noclear|}}}|float={{{float|right}}}|year=}}
{{#if:{{{nolink|}}}||[[Category:festival_name]]}}<noinclude>{{clear|left}}

Usage: <nowiki>{{</nowiki>'''template_name'''|''subheading''|'''noclear='''|'''float='''|'''year='''}}

;subheading
:Causes the link to the festival category page to link directly to the named subheading within that page. Spelling and capitalization are important!

All content displaying this tag will be added to [[:Category:festival_name]] (unless '''nolink=''' is not blank).
 
{{BWS|t}}[[Category:World Event Templates]]
</noinclude>

Usage for every Festival tag template should be: {{template_name|subheading|nolink=}}

1 festival_name
should exactly match the festival name as it appears in the table at Category:Festivals
2 festival_icon
the complete name of the icon, including extender.
3 festival_months
(optional) general time period of this festival
4 subheading
(optional) Causes the link to the festival's category page to link directly to the named subheading. Spelling and capitalization are important!
border, background, text, link
colors. link is optional
px
size of the icon to display. If blank, the icon will be shown full size. If you need to control height and width, use the format hhhxwww where the x between the height and width is the letter x.
noclear
(switch) Normally, this template performs an HTML formatting clear at the very top of th template. This switch suppresses that clear. It should not be used very often but is occasionally useful.
float
left, none, or right. Overrides default of float=right. If not blank, and not left or right, all other values are treated as "none"
year
(optional) State the year this page is relevant to. Could also state the range of years, such as 2019-2020, or 2019 to 2020. This field was not in use when the Festval-specific tegs were created, so |year={{{year|}}} needs to be added if you want to use this field.


nolink has to be handled by the unique festival template to avoid problems with transclusion.


Bludwyng
This template was created, or is maintained, by Bludwyng (contribs).

In-game, you can find me on Ayvenas. I regularly play: Mithrandyr, Bludwyng, Grymjack, and Kerfuffle.


Bludwyng's: PagesTemplatesWants/HavesSandbox