Template:Event: Difference between revisions
Jump to navigation
Jump to search
>Illviljan (Created page with "{{infocard2 | class = race | header = {{#if: {{{name|}}} | Category:Seasons |}} | 1 =<div class="image">[[File:{{{name}}} logo.png|alt=|250px]]</div> | 1class = logo | 2 =...") |
>Illviljan (Made it more generic, not happy with the alignments though.) |
||
Line 1: | Line 1: | ||
{{infocard2 | {{infocard2 | ||
| class = | | class = event | ||
| header = {{# | | header = {{{name}}} | ||
| subheader = {{#switch: {{lc:{{{type|}}}}} | |||
| challenge = Challenge league [[Is event::Challenge league|:Challenge league]] | |||
| expansion = Expansion [[Is event::Expansion|:Expansion]] | |||
| race = Race season [[Is event::Race season|:Race season]] | |||
}} | |||
| 1 =<div class="image">[[File:{{{name}}} logo.png|alt=|250px]]</div> | | 1 =<div class="image">[[File:{{{name}}} logo.png|alt=|250px]]</div> | ||
| | | 2 = <div align="left"> | ||
| | {{#if: {{{release_version|}}} | '''Release version:''' [[Has release version::Version {{{release_version}}}| {{{release_version}}}]] <br>|}} | ||
| | {{#if: {{{start_date|}}} |'''Start Date:''' {{{start_date|}}} [[Has start date::{{{start_date|}}}|]] <br>|}} | ||
| | {{#if: {{{end_date|}}} |'''End Date:''' {{{end_date|}}} [[Has end date::{{{end_date|}}}| {{{end_date|}}}]] <br>|}} | ||
| | {{#if: {{{rewards|}}} |'''Rewards:''' <div align="right">{{{rewards|}}} </div>|}} | ||
| | {{#if: {{{prize|}}} |'''Prize:''' {{{prize|}}} <br>|}} | ||
| | {{#if: {{{links|}}} |'''Links:''' {{{links|}}} <br>|}} | ||
| | </div> | ||
| | |||
| | }}<includeonly>{{#ifeq: {{#titleparts:{{PAGENAME}}}} | ||
| | | {{#if: {{{pagename|}}} | {{{pagename}}} | {{{name}}} }} | ||
}}<noinclude> | | [[Category:{{#switch: {{lc:{{{type|}}}}} | ||
| challenge = Challenge league [[Is event::Challenge league|:Challenge league]] | |||
| expansion = Expansion [[Is event::Expansion|:Expansion]] | |||
| race = Race season [[Is event::Race season|:Race season]] | |||
| #default = Events with invalid types | |||
}}]] | |||
}}</includeonly><noinclude> | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 10:08, 8 July 2016
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:
|
![]() |
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}} |
The above documentation is transcluded from Template:Event/doc.
Editors can experiment in this template's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this template.