Template:Event: Difference between revisions

From Path of Exile 2 Wiki
Jump to navigation Jump to search
>Illviljan
mNo edit summary
mNo edit summary
Line 9: Line 9:
}}
}}
| 1 = <div class="image"> [[File:{{#if: {{{image|}}} | {{{image}}} | {{{name}}} logo.png}}|alt=|250px]]</div>
| 1 = <div class="image"> [[File:{{#if: {{{image|}}} | {{{image}}} | {{{name}}} logo.png}}|alt=|250px]]</div>
| 2 = <div 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: {{{rewards|}}} |'''Rewards:''' <div align="right">{{{rewards|}}} </div>|}} {{#if: {{{prize|}}} |'''Prize:''' {{{prize|}}} <br>|}} {{#if: {{{links|}}} |'''Links:''' {{{links|}}} <br>|}}
| 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: {{{rewards|}}} |'''Rewards:''' <div style="text-align: right;">{{{rewards|}}} </div>|}} {{#if: {{{prize|}}} |'''Prize:''' {{{prize|}}} <br>|}} {{#if: {{{links|}}} |'''Links:''' {{{links|}}} <br>|}}
</div>
</div>
{{#switch: {{#ifeq:{{{standard|False}}} |True |True |False}} {{#ifeq:{{{hardcore|False}}} |True |True |False}}
{{#switch: {{#ifeq:{{{standard|False}}} |True |True |False}} {{#ifeq:{{{hardcore|False}}} |True |True |False}}

Revision as of 21:18, 14 July 2016

Template:Infocard2

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

Cargo

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