Template:Event: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
>Illviljan
mNo edit summary
No edit summary
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{infocard2
<includeonly>{{#invoke:data tables|event}}{{Event/cargo/events/attach}}</includeonly><noinclude>
| class = event
{{Documentation}}
| header = [[Has name::{{{name}}}]]
| subheader = {{#switch: {{lc:{{{type|}}}}}
| challenge = [[Is event::Challenge league]] [[Has short name::{{ucfirst:{{#replace:{{lc:{{{name}}}}}|league|}}}}| ]] [[Has ordinal number::{{#ask: [[Is event::Challenge league]] [[Has release date::<{{{release_date|?}}}]] |format=count}}|]]
| expansion = [[Is event::Expansion]] [[Has short name::{{{name}}}| ]] [[Has ordinal number::{{#ask: [[Is event::Expansion]] [[Has release date::<{{{release_date|?}}}]] |format=count}}| ]]
| pvp      = [[Is event::PvP season]] [[Has short name::{{ucfirst:{{#replace:{{lc:{{{name}}}}}|pvp season|}}}}| ]] [[Has ordinal number::{{#ask: [[Is event::PvP season]] [[Has release date::<{{{release_date|?}}}]] |format=count}}| ]]
| race      = [[Is event::Race season]] [[Has short name::{{ucfirst:{{#replace:{{lc:{{{name}}}}}|race season|}}}}| ]] [[Has ordinal number::{{#ask: [[Is event::Race season]] [[Has release date::<{{{release_date|?}}}]] |format=count}}| ]]
}}
| 1 = <div class="image"> [[File:{{#if: {{{image|}}} | {{{image}}} | {{{name}}} logo.png}}|alt=|250px]]</div>
| 2 = <div style="text-align: left;"> <!--
--> {{#if: {{{release_version|}}} |'''Release version:''' [[Version {{{release_version}}}| {{{release_version}}}]] [[Has release version::{{{release_version|}}}|]] <br>|}} <!--
--> {{#if: {{{release_date|}}}    |'''Release date:''' ''{{#show: {{{name}}}|?Has release date}} {{#switch: {{pos|{{{release_date|}}}|-1}}| Z = UTC}}'' [[Has release date::{{{release_date|}}}|]] <br>|}} <!--
--> {{#if: {{{end_date|}}}        |'''End date:''' ''{{#show: {{{name}}}|?Has end date}} {{#switch: {{pos|{{{end_date|}}}|-1}}| Z = UTC}}'' [[Has end date::{{{end_date|}}}|]]  <br>|}} <!--
--> {{#if: {{{amount|}}}          |'''Amount of events:''' [[Has amount of events::{{{amount}}}]] <br>|}} <!--
--> {{#if: {{{rewards|}}}        |'''Rewards:''' <div style="text-align: right;">{{{rewards|}}} </div>|}} <!--
--> {{#if: {{{prize|}}}          |'''Prize:''' {{{prize|}}} <br>|}} <!--
--> {{#if: {{{links|}}}          |'''Links:''' {{{links|}}} <br>|}}
</div>
{{#switch: {{#ifeq:{{{standard|False}}} |True |True |False}} {{#ifeq:{{{hardcore|False}}} |True |True |False}}
| True False = [[Is standard event::True| ]]
| True True  = [[Is standard and hardcore event::True| ]]
| False True = [[Is hardcore event::True| ]]
}}
}}<includeonly>{{#ifeq: {{#titleparts:{{PAGENAME}}}}
| {{#if: {{{pagename|}}} | {{{pagename}}} | {{{name}}} }}
        | [[Category:{{#switch: {{lc:{{{type|}}}}}
        | challenge = Challenge leagues
        | expansion = Expansions
        | race      = Race seasons
        | pvp      = PvP seasons
| #default = Events with invalid types
        }}]]
}}</includeonly><noinclude>
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 19:43, 20 June 2022

Template documentation[view] [edit] [history] [purge]


Lua logo

This template uses the following modules:

The Event template is used to create a infocard for events such as expansions, races, leagues.

Overview

The template will do the following:

  • Create an infocard.
  • Add relevant categories to the page.
  • Add cargo fields to the page.

Parameters

All parameters should be filled in if possible to ensure it's working correctly.

Parameter Description Optional
name The name of the event.
type The type of the event. Available types:
  • challenge
  • expansion
  • pvp
  • race
release_version The version the event was released.
release_date The date when the event started. Can find dates for events here.
end_date The date when the event ended. Can find dates for events here.
standard Is it a standard event? Use 1 or 0.
hardcore Is it a hardcore event? Use 1 or 0.
id Id(s) of the event. Can find the id for events here
number_of_events The rewards when reaching a certain point threshold during the event.
rewards The rewards when reaching a certain point threshold during the event.
prize The prize.
image Custom image for the event. Defaults to {{{name}}} logo.png if the parameter isn't specified.
links External website of the event, preferably official web page

Cargo

Table Declared by Attached by
events {{Event/cargo/events/declare}} {{Event/cargo/events/attach}}