Template talk:GoFastAttack

From Bulbapedia, the community-driven Pokémon encyclopedia.
Revision as of 16:46, 21 July 2016 by Chenzw (talk | contribs) (→‎Handling of non-existent images: new section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Handling of non-existent images

Currently, when no move image is present (|image != yes), there is an unnatural blank space in the right region of the template. How about replacing

| rowspan=3 | [[File:{{#ifeq:{{{image|yes}}}|yes|{{{move|Earthquake}}} GO|None}}.png|100px]]

with:

{{#ifeq:{{{image|yes}}}|yes|{{!}} rowspan=3 {{!}} [[File:{{{move|Earthquake}}} GO.png|100px]]}}

or:

| rowspan=3 {{#ifeq:{{{image|yes}}}|yes||style="display: none;"}} | [[File:{{#ifeq:{{{image|yes}}}|yes|{{{move|Earthquake}}} GO|None}}.png|100px]]

This is similar to how Template:Tl will render if there is no gameimage or gameimage2. Chenzw (talk) 16:46, 21 July 2016 (UTC)