Difference between revisions of "Template:Event infobox"

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
m (trying something)
 
(32 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#switch:{{lc:{{{expansion|}}}}}|heavensward = {{Heavensward expansion content}}|stormblood = {{Stormblood expansion content}}|shadowbringers = {{Shadowbringers expansion content}}|endwalker = {{Endwalker expansion content}}|dawntrail = {{Dawntrail expansion content}}}}
{{#set:Has context=event}}
  <div class="infobox-n">
{{#switch:{{lc:{{{release|}}}}}|heavensward = {{Heavensward expansion content}}|stormblood = {{Stormblood expansion content}}|shadowbringers = {{Shadowbringers expansion content}}|endwalker = {{Endwalker expansion content}}|#default=}}
    <div class="heading" style="background-color:#333333; font-family: EasonPro, Times New Roman, serif !important; color: #fff !important; text-shadow: rgba(0,0,0,0.75) 0 0 .25em; padding: 10px 0px 10px 0px !important;">
<div class="infobox-n">
      <div style="font-size: 1.0em;>{{{name}}}</div>
<p class="heading">[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]</p>
    </div> <!--End of heading-->
<p class="image_wrapper">{{#if:{{{image|}}}
    <div style="text-align: center; clear: both;">{{#if:{{{image|}}}|[[File:{{{image}}}|frameless|center]]}}
  | {{#ifeq:{{{image}}}|no|{{clear}}<!-- Not visible or necessary-->| [[Has appearance::File:{{{image}}}|200x260px]] }}
</div><div class="wrapper">
  | {{#vardefine:default|File:{{#replace:{{#titleparts:{{PAGENAME}}}}|:|-}}.jpg}} {{#ifexist:{{#var:default}} <!-- Default file name to display -->
;    Event Start
        | [[Has appearance::{{#var:default}}|200x260px]]
:    {{{eventstart}}}
        | [[{{#var:default}}|Upload an image of this event.]]<!-- Red link to file upload page -->
;    Event Finish
    }}
:     {{{eventfinish}}}
}}</p>
;    Event Chain
<div class="wrapper">
:    {{#arraymap:{{{eventchain}}}|,|@@@|[[@@@]]|<br>}}
;    Event Timeline
;    Event Page
:    {{{eventtimeline}}}
:     [{{{eventpage}}} Link]
;Event Chain
    </div>
;External Source
    <center><table style="width: 75%;">
</div></div><!--
      <tr><th>Previous</th><th>Next</th></tr>
-->{{#if:{{{description|}}}|
      <tr><td><center>{{#if:{{{prevevent|}}}|{{#arraymap:{{{prevevent}}}|,|@@@|[[@@@]]|<br>}}}}</center></td><td><center>{{#if:{{{nextevent|}}}|{{#arraymap:{{{nextevent}}}|,|@@@|[[@@@]]|<br>}}}}</center></td></tr>
    </table></center>
  </div>
'''{{{name|{{#titleparts:{{PAGENAME}}}}}}}''' is a [[Seasonal Event|seasonal event]] that took place from {{{eventstart}}} to {{{eventfinish}}}.
{{#if:{{{description|}}}|
{{Quotation|Event description|{{{description}}}}} }}
{{Quotation|Event description|{{{description}}}}} }}
<!-- AUTOCATEGORIZATION -->
<!-- AUTOCATEGORIZATION -->
[[Category:Events]]
[[Category:Events]]
</includeonly> <!-- this trailing space is a whitespace fix --><noinclude>
{{#if: {{NAMESPACE}}<!-- no categories if outside of article namespace -->
== Usage ==
| <!-- Do not categorize --> |
Use this infobox for defining [[events]] within the game.
{{#if: {{{eventchain|}}} |
  {{#arraymap:{{{eventchain|}}}|,|@@@|[[Category:{{ucfirst:@@@}} Events]]|}}
  | }}
}}</includeonly><noinclude>__NOTOC__
==Description==
<pre>
<pre>
{{Event infobox
{{Event infobox
| name =
| name =  
| image =  
| image =  
| description =
| description =  
| timeline =  
| eventstart =
| event-chain =  
| eventfinish =
| external-source =  
| eventchain =  
| patch =  
| eventpage =  
| release =  
| prevevent =
| nextevent =  
}}
}}
</pre>
</pre>


==Parameters==
==Example==
; name: Name of the event
<pre>
; image: the event banner
; description: description of the event
; timeline: date the event took place
; event-chain: the main page for the group of events
; external-source: link to the lodestone page
; patch: the patch the event was released on/nearest too
; release: the release the event was released on/nearest too
 
 
==Examples==
<pre>{{Event infobox
| name = The Make it Rain Campaign 2021
| image = The Make it Rain Campaign NA Banner 2021.png
| description = The Make It Rain Campaign is back again, giving thrill-seekers the chance to earn 50% more MGP! <br>The campaign attendant offers discounts on a range of incredible prizes, such as furnishings that allow you to play Gold Saucer mini-games in the comfort of your estate hall. Join the festivities and rake in the rewards!
| timeline = July 19, 2021 to August 11, 2021
| event-chain = The Make it Rain Campaign
| external-source = https://na.finalfantasyxiv.com/lodestone/special/2021/the_make_it_rain_campaign/b1nyoh167i
| patch =
| release =
}}</pre>
 
{{Event infobox
{{Event infobox
| name = The Make it Rain Campaign 2021
| name = The Make It Rain Campaign 2021
| image = The Make it Rain Campaign NA Banner 2021.png
| image = The Make it Rain Campaign NA Banner 2021.png
| description = The Make It Rain Campaign is back again, giving thrill-seekers the chance to earn 50% more MGP! <br>The campaign attendant offers discounts on a range of incredible prizes, such as furnishings that allow you to play Gold Saucer mini-games in the comfort of your estate hall. Join the festivities and rake in the rewards!
| description = The Make It Rain Campaign is back again, giving thrill-seekers the chance to earn 50% more MGP! <br> The campaign attendant offers discounts on a range of incredible prizes, such as furnishings that allow you to play Gold Saucer mini-games in the comfort of your estate hall. Join the festivities and rake in the rewards!
| timeline = July 19, 2021 to August 11, 2021
| eventstart = July 19, 2021
| event-chain = The Make it Rain Campaign
| eventfinish = August 11, 2021
| external-source = https://na.finalfantasyxiv.com/lodestone/special/2021/the_make_it_rain_campaign/b1nyoh167i
| eventchain = The Make It Rain Campaign
| patch =  
| eventpage = https://na.finalfantasyxiv.com/lodestone/special/2021/the_make_it_rain_campaign/b1nyoh167i
| release =  
| prevevent = The Make It Rain Campaign 2020
| nextevent = The Make It Rain Campaign 2022
}}
}}
{{clear}}
[[Category:Infobox templates|Mount infobox]]


</pre>
{{Event infobox
| name = The Make It Rain Campaign 2021
| image = The Make it Rain Campaign NA Banner 2021.png ‎
| description = The Make It Rain Campaign is back again, giving thrill-seekers the chance to earn 50% more MGP! <br> The campaign attendant offers discounts on a range of incredible prizes, such as furnishings that allow you to play Gold Saucer mini-games in the comfort of your estate hall. Join the festivities and rake in the rewards!
| eventstart = July 19, 2021
| eventfinish = August 11, 2021
| eventchain = The Make It Rain Campaign
| eventpage = https://na.finalfantasyxiv.com/lodestone/special/2021/the_make_it_rain_campaign/b1nyoh167i
| prevevent = The Make It Rain Campaign 2020
| nextevent = The Make It Rain Campaign 2022
}}[[Category:Infobox templates]]
</noinclude>
</noinclude>

Latest revision as of 01:10, 3 October 2023

Description

{{Event infobox
| name = 
| image = 
| description = 
| eventstart =
| eventfinish =  
| eventchain = 
| eventpage = 
| prevevent = 
| nextevent = 
}}

Example

{{Event infobox
| name = The Make It Rain Campaign 2021
| image = The Make it Rain Campaign NA Banner 2021.png ‎
| description = The Make It Rain Campaign is back again, giving thrill-seekers the chance to earn 50% more MGP! <br> The campaign attendant offers discounts on a range of incredible prizes, such as furnishings that allow you to play Gold Saucer mini-games in the comfort of your estate hall. Join the festivities and rake in the rewards!
| eventstart = July 19, 2021
| eventfinish = August 11, 2021
| eventchain = The Make It Rain Campaign
| eventpage = https://na.finalfantasyxiv.com/lodestone/special/2021/the_make_it_rain_campaign/b1nyoh167i
| prevevent = The Make It Rain Campaign 2020
| nextevent = The Make It Rain Campaign 2022
}}

The Make It Rain Campaign 2021
The Make it Rain Campaign NA Banner 2021.png
Event Start
July 19, 2021
Event Finish
August 11, 2021
Event Chain
The Make It Rain Campaign
Event Page
Link
PreviousNext
The Make It Rain Campaign 2020
The Make It Rain Campaign 2022

The Make It Rain Campaign 2021 is a seasonal event that took place from July 19, 2021 to August 11, 2021.

The Make It Rain Campaign is back again, giving thrill-seekers the chance to earn 50% more MGP!
The campaign attendant offers discounts on a range of incredible prizes, such as furnishings that allow you to play Gold Saucer mini-games in the comfort of your estate hall. Join the festivities and rake in the rewards!

— Event description