Template:GenInfo: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(Fixed it, I think)
m (Seems we need time workarounds for both, specializing the parameters.)
Line 59: Line 59:
! style="{{roundyleft|10px}} background: #{{{{{secondary|Green}}} color light}};" rowspan="2" {{!}} Current length
! style="{{roundyleft|10px}} background: #{{{{{secondary|Green}}} color light}};" rowspan="2" {{!}} Current length
! style="background: #{{{{{secondary|Green}}} color light}};" {{!}} En
! style="background: #{{{{{secondary|Green}}} color light}};" {{!}} En
{{!}} style="{{roundytr|10px}} background: #FFFFFF;" {{!}} {{#ifeq: {{{timeworkaround|}}}|en|Not yet released|{{#expr: ({{#time: U|{{#time: F j, Y}}}} - {{#time: U|{{{debuten|September 1, 1998}}}}}) div 86400}} days {{#if: {{{enden|}}}|<small>(ends on {{{enden|December 31, 2099}}})</small>}}}}
{{!}} style="{{roundytr|10px}} background: #FFFFFF;" {{!}} {{#ifeq: {{{timeworkarounden|}}}|yes|Not yet released|{{#expr: ({{#time: U|{{#time: F j, Y}}}} - {{#time: U|{{{debuten|September 1, 1998}}}}}) div 86400}} days {{#if: {{{enden|}}}|<small>(ends on {{{enden|December 31, 2099}}})</small>}}}}
{{!}}-
{{!}}-
! style="background: #{{{{{secondary|Green}}} color light}};" {{!}} Jp
! style="background: #{{{{{secondary|Green}}} color light}};" {{!}} Jp
{{!}} style="{{roundybr|10px}} background: #FFFFFF;" {{!}} {{#ifeq: {{{timeworkaround|}}}|jp|Not yet released|{{#expr: ({{#time: U|{{#ifexpr: {{#time: U|{{{endjp|{{#time: F j, Y}}}}}}} > {{#time: U|{{#time: F j, Y}}}}|{{#time: F j, Y}}|{{{endjp|{{#time: F j, Y}}}}}}}}} - {{#time: U|{{{debutjp|February 27, 1996}}}}}) div 86400}} days {{#if: {{{endjp|}}}|<small>(end{{#ifexpr: {{#time: U|{{{endjp}}}}} > {{#time: U}}|s|ed}} on {{{endjp|December 31, 2099}}})</small>}}}}|
{{!}} style="{{roundybr|10px}} background: #FFFFFF;" {{!}} {{#ifeq: {{{timeworkaroundjp|}}}|yes|Not yet released|{{#expr: ({{#time: U|{{#ifexpr: {{#time: U|{{{endjp|{{#time: F j, Y}}}}}}} > {{#time: U|{{#time: F j, Y}}}}|{{#time: F j, Y}}|{{{endjp|{{#time: F j, Y}}}}}}}}} - {{#time: U|{{{debutjp|February 27, 1996}}}}}) div 86400}} days {{#if: {{{endjp|}}}|<small>(end{{#ifexpr: {{#time: U|{{{endjp}}}}} > {{#time: U}}|s|ed}} on {{{endjp|December 31, 2099}}})</small>}}}}|
! style="{{roundyleft|10px}} background: #{{{{{secondary|Green}}} color light}};" rowspan="2" {{!}} End
! style="{{roundyleft|10px}} background: #{{{{{secondary|Green}}} color light}};" rowspan="2" {{!}} End
! style="background: #{{{{{secondary|Green}}} color light}};" {{!}} En
! style="background: #{{{{{secondary|Green}}} color light}};" {{!}} En

Revision as of 13:36, 8 January 2013

To prevent the template from displaying decimal lengths for a generation whose release date has not yet come, fill in the parameter {{{timeworkaround}}} with "en" or "ja", depending on if a release date has yet been revealed.

Generation I
Color Generation
Pokémon Red Version
Title screen of Pokémon Red Version
Debut En Unknown
Jp Unknown
Pokémon 151 (151 new)
Main games Red and Green
Region introduced Kanto
Current length En 9340 days
Jp 10257 days