This template is protected from editing.

Difference between revisions of "Template:Main Page event"

From Team Fortress Wiki
Jump to: navigation, search
m (+ru)
m (1 week left)
 
(91 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{| style="margin-left:auto;margin-right:auto;border-spacing:0px;padding:5px;min-width:512px;"
+
{{Main Page event/core
| rowspan="2" | [[File:Heavy taunt laugh.png|x128px|right|link=Team Fortress Wiki:April Fools' Day/2012{{lang
+
| event = Smissmas
  | en =
+
| event-duration = yes
  | es = /es
+
   | end = Jan 7
  | pt-br = /pt-br
+
| image = Smissmas Snowville.jpg
  | ru = /ru}}]]
+
| video = yes
| style="text-align:center; vertical-align: bottom;" | '''{{lang
+
   | video-url = Smissmas Snowville loop.webm
  | en = April Fools' Day 2012 is over!
+
}}<noinclude>
   | ru = День смеха 2012 прошел!
+
{{Main Page event/doc}}
  | ko = 2012 만우절 행사가 끝났습니다!
 
  | es = ¡Se ha acabado el Día de las Bromas de Abril 2012!
 
   | pt-br = O Primeiro de Abril de 2012 acabou!
 
}}'''
 
|-
 
| style="text-align:center;" | {{TF button|internal=true|link=Team Fortress Wiki:April Fools' Day/2012{{lang
 
  | en =
 
  | es = /es
 
  | pt-br = /pt-br}}|content={{lang
 
  | en = What happened?
 
  | ru = Что случилось?
 
  | ko = 무슨 일이 일어났나요?
 
  | es = ¿Qué ha pasado?
 
  | pt-br = O que aconteceu?
 
}}}}
 
|}<noinclude>
 
{{doc begin}}
 
=== Localization ===
 
* Post on the [[Template talk:Main Page event|talk page]] for text localization.
 
  
 
[[Category:Main Page]]
 
[[Category:Main Page]]
 
</noinclude>
 
</noinclude>

Latest revision as of 22:54, 31 December 2024

Documentation for Main Page event

Important: files should NOT include Main Page event when linking. The prefix is automatically added.

Parameters

event
Required. Case-sensitive. Event inputs: Summer, Scream Fortress, Smissmas.
Inputting any of these will switch the theme based on the event. Leave blank to disable the banner.
event-duration
Optional. Adds the event duration.
Use start and end to specify the time gap.
suffix
Optional. Adds a custom suffix instead of the current year. This is currently used for exceptions like Scream Fortress with its roman numerals.
image
Required. Sets the image file path. The File: prefix should not be added.
image-title
Optional. Adds a custom alt text for the image.
overlay
Optional. Adds a dark overlay to the banner.
link-override
Optional. Overrides the page link.
festive
Optional. Adds festive lights on top of the banner at the top. Should only be used for Smissmas.

(Experimental)

video
Optional. Dynamically embeds a video and replaces the image. Must have an image as fallback.
Best practice: Upload a screenshot of the first frame and use that as the fallback image, which creates a smoother transition.
Files are to be uploaded under the naming convention: Main Page event <event> <desc>, e.g. Main Page event Scream Fortress castle loop.
The description doesn't have to be too specific, but keep it consistent.
video-url
Required if video is set. For internal video files, simply enter the file name like you normally would. The File: prefix should not be added.
video-external
Optional. Use this to serve externally linked video files by including the full URL in the video-url parameter once set.