Template talk:GoFastAttack: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(→Handling of non-existent images: new section) |
|||
Line 15: | Line 15: | ||
This is similar to how {{tl|MoveInfobox}} will render if there is no <code>gameimage</code> or <code>gameimage2</code>. [[User:Chenzw|Chenzw]] ([[User talk:Chenzw|talk]]) 16:46, 21 July 2016 (UTC) | This is similar to how {{tl|MoveInfobox}} will render if there is no <code>gameimage</code> or <code>gameimage2</code>. [[User:Chenzw|Chenzw]] ([[User talk:Chenzw|talk]]) 16:46, 21 July 2016 (UTC) | ||
:I had initially avoided it due to that option still leaving a gap, but I decided to just add a second #if for the colspan. Looks nicer than None.png, and it's only 1 additional parser function. --[[User:SnorlaxMonster|<span style="color:#A70000">'''Snorlax'''</span>]][[User talk:SnorlaxMonster|<span style="color:#0000A7">'''Monster'''</span>]] 17:20, 21 July 2016 (UTC) |
Revision as of 17:20, 21 July 2016
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)