Template:CurrentEventBox: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
mNo edit summary
No edit summary
Line 1: Line 1:
<div style="background: #{{bulba color light}}; padding: 5px; border-radius: 10px; margin: 2px; display: grid; grid-template-columns: 90px 1fr;">
<div style="background: #{{bulba color light}}; padding: 5px; border-radius: 10px; margin: 2px; display: grid; grid-template-columns: 90px 1fr;">
<div style="padding: 5px;{{#if: {{{image2|}}} | line-height: 50% | }}">[[File:{{{image|None.png}}}|{{{imgsize|{{#if: {{{image2|}}} | x45px | x90px}}}}}|center|link={{{imglink|}}}]]{{#if: {{{image2|}}} | <br />[[File:{{{image2}}}|{{{img2size|x45px}}}|center|link={{{img2link|}}}]] | }}</div>
<div style="padding: 5px;{{#if: {{{image2|}}} | line-height: 50% | }}">[[File:{{{image|None.png}}}|{{{imgsize|{{#if: {{{image2|}}} | x45px | x90px}}}}}|center|link={{{imglink|}}}]]{{#if: {{{image2|}}} | <br />[[File:{{{image2}}}|{{{img2size|x45px}}}|center|link={{{img2link|}}}]] | }}{{#if: {{{image3|}}} | &nbsp;[[File:{{{image3}}}|{{{img3size|x45px}}}|center|link={{{img3link|}}}]] | }}</div>
<div style="padding-left: 10px;">'''{{#if: {{{link|}}} | [[{{{link}}}|{{{name}}}]] | {{{name}}} }}'''
<div style="padding-left: 10px;">'''{{#if: {{{link|}}} | [[{{{link}}}|{{{name}}}]] | {{{name}}} }}'''



Revision as of 03:57, 31 August 2024

None.png
{{{name}}}

{{{method}}}

{{{dates}}}
{{{location}}}



Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)

This template is used on Browse:Current Event Distributions to display quick summaries of the currently available Event distributions.

Examples

Input Output
{{CurrentEventBox
| name = Team Star's Revavroom
| link = List of event Pokémon distributions in Pokémon Scarlet and Violet#Team Star's Revavroom
| image = 0966Revavroom.png
| imglink = Revavroom (Pokémon)
| password = TEAMSTAR
| dates = Nov 22, 2023 - Oct 31, 2024
| location = Worldwide
| game = {{gameabbrev9|SV}}
}}
0966Revavroom.png
Team Star's Revavroom

Password: TEAMSTAR

Nov 22, 2023 - Oct 31, 2024
Worldwide
{{CurrentEventBox
| name = Pokémon Center Birthday Pawmi or Charcadet
| link = List of event Pokémon distributions in Pokémon Scarlet and Violet#Pokémon Center Birthday Pawmi & Charcadet
| image = 0921Pawmi.png
| imglink = Pawmi (Pokémon)
| image2 = 0935Charcadet.png
| img2link = Charcadet (Pokémon)
| method = Serial Code
| expires = Jan 31, 2025 
| dates = Nov 1, 2023 - Oct 31, 2024
| ended = yes
| location = {{flag|Japan|Japan|20}} {{flag|Singapore|Singapore|20}} {{flag|Taiwan|Taiwan|20}}
}}
0921Pawmi.png

0935Charcadet.png
Pokémon Center Birthday Pawmi or Charcadet

Serial Code

Nov 1, 2023 - Oct 31, 2024
Japan Singapore Taiwan
{{CurrentEventBox
| name = Pecharunt ex (Shrouded Fable 93)
| link = List of Pokémon Trading Card Game Live distributions
| image = PecharuntexShroudedFable93.jpg
| imglink = Pecharunt ex (Shrouded Fable 93)
| password = OutburstWorlds24
| dates = Aug 16 - 25, 2024
| location = Worldwide
}}
PecharuntexShroudedFable93.jpg
Pecharunt ex (Shrouded Fable 93)

Password: OutburstWorlds24

Aug 16 - 25, 2024
Worldwide

TemplateData

This template is used on Browse:Current Event Distributions to display quick summaries of the currently available Event distributions.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Event namename

The name of the Event

Example
"Dot's Quaxly" or "30 Quick Balls"
Stringrequired
Linklink

Link to the full listing on the relevant list article (including anchor)

Example
List of other event distributions in Generation IX#Neo-Kitakami Case
Stringsuggested
Imageimage

Image of the Pokémon, card, or item obtained in the event (Don't include "File:")

Default
None.png
Example
0923Pawmot.png
Filerequired
Image sizeimgsize

The size of the image (include "px")

Default
x90px (x45px if "Image 2" is used)
Stringoptional
Image linkimglink

What the image links to when clicked (normally the Pokémon, card, or item page). Leave blank for no link.

Page namesuggested
Image 2image2

If the Event has a second Pokémon, card, or item, this is the image for that. (Don't include "File:")

Example
Dream Quick Ball Sprite.png
Fileoptional
Image 2 Sizeimg2size

The size of the second image

Default
x45px
Stringoptional
Image 2 linkimg2link

What the second image links to when clicked (normally the Pokémon, card, or item page). Leave blank for no link.

Page nameoptional
Image 3image3

If the Event has a third Pokémon, card, or item, this is the image for that. (Don't include "File:")

Fileoptional
Image 3 sizeimg3size

The size of the third image

Example
x20px
Stringoptional
Image 3 linkimg3link

What the third image links to when clicked (normally the Pokémon, card, or item page). Leave blank for no link.

Page nameoptional
Distribution methodmethod

The method through which the Event is distributed. For Events distributed via Password, don't use this parameter. Instead, just use the "Password" parameter instead.

Suggested values
Serial Code Internet
Stringsuggested
Expiresexpires

For Serial Codes, this is the date the code expires. For other distribution methods, leave this blank.

Example
Jan 31, 2025
Stringsuggested
Passwordpassword

The Password used to obtain the Event item or Pokémon (if there is one; leave blank if not)

Stringsuggested
Datesdates

The dates the Event is obtainable (for Passwords, this is the dates the Password is valid. For Serial Codes, this is the dates you can receive a Serial Code). Shorten months to three letters.

Example
May 19 - Nov 30, 2024
Stringrequired
Ended?ended

For Serial Codes, if new codes are no longer available, but codes can still be redeemed, type "yes". Otherwise, don't use this parameter.

Suggested values
yes
Stringoptional
Locationlocation

Where the Event is obtainable. Use {{flag}} templates, unless "Worldwide".

Suggested values
Worldwide {{flag|Japan|Japan|20}} {{flag|Singapore|Singapore|20}} {{flag|Taiwan|Taiwan|20}} {{flag|United States|United States|20}} {{flag|United Kingdom|United Kingdom|20}}
Example
{{flag|Japan|Japan|20}} {{flag|Singapore|Singapore|20}} {{flag|Taiwan|Taiwan|20}}
Stringrequired
Game(s)game

Use this to denote if the Event is only available in certain games. Use {{gameabbrev}} templates where possible.

Example
{{gameabbrev8|BDSP}}
Stringoptional