Template talk:GoFastAttack: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(→PvP information: new section) |
m (→Handling of non-existent images: retiring Template:Tl) |
||
Line 14: | Line 14: | ||
</pre> | </pre> | ||
This is similar to how {{ | This is similar to how {{template|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) | :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) | ||
Latest revision as of 00:52, 6 March 2019
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 {{MoveInfobox}}
will render if there is no gameimage
or gameimage2
. 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. --SnorlaxMonster 17:20, 21 July 2016 (UTC)
PvP information
Just to throw it out there, the template needs to be updated to also accommodate information for PvP battles. TehPerson (talk) 01:26, 12 January 2019 (UTC)