Template talk:Bag2: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
Line 2: Line 2:
<nowiki>[[{{#if:Bag {{{1}}} Sprite.png|File:Dream {{{1}}} Sprite.png{{!}}24px|File:Bag {{{1}}} Sprite.png}}|{{{1}}}]]&nbsp;[[{{{1}}}|{{{2|{{{1}}}}}}]]</nowiki><br><br>
<nowiki>[[{{#if:Bag {{{1}}} Sprite.png|File:Dream {{{1}}} Sprite.png{{!}}24px|File:Bag {{{1}}} Sprite.png}}|{{{1}}}]]&nbsp;[[{{{1}}}|{{{2|{{{1}}}}}}]]</nowiki><br><br>
Dream World sprites have better quality so why won't we scale down bigger images (if exist) instead of showing smaller ones?--'''[[User:Team Rocket Grunt|<span style="color:#CC0000">Rocket</span> <span style="color:#666666">Grunt</span>]] ([[User talk:Team Rocket Grunt|<span style="color:#CCCCCC">Report To Me</span>]])''' 16:08, 7 March 2020 (UTC)
Dream World sprites have better quality so why won't we scale down bigger images (if exist) instead of showing smaller ones?--'''[[User:Team Rocket Grunt|<span style="color:#CC0000">Rocket</span> <span style="color:#666666">Grunt</span>]] ([[User talk:Team Rocket Grunt|<span style="color:#CCCCCC">Report To Me</span>]])''' 16:08, 7 March 2020 (UTC)
:Just the name of the file after <code>#if:</code> is not sufficient. I recommend surrounding it with <code>{&zwj;{filepath:''xyz''|nowiki}&zwj;}</code>, where ''xyz'' is the file name (''nowiki'' makes sure the content will not be linked). Test: {{filepath:001Bulbasaur.png|nowiki}} is the path to the Sugimori artwork of {{p|Bulbasaur}}. I have created a template for checking for existence of files: [[User:TheICTLiker4/fileexist]]. You just specify three parameters:<ol><li>File name.<li>Value to show if that file exists.<li>Value to show if that file doesn't exist.</ol> Have a nice day, --<span lang="ja">[[User:TheICTLiker4|<span style="color:#333">'''TheI'''</span>]][[Special:Contributions/TheICTLiker4|<span style="color:#f30">'''CTLi'''</span>]][[User talk:TheICTLiker4|<span style="color:#bbb">'''ker4'''</span>]]</span> 20:13, 9 March 2020 (UTC)
:Just the name of the file after <code>#if:</code> is not sufficient. I recommend surrounding the file name with <code>{&zwj;{filepath:''xyz''|nowiki}&zwj;}</code>, where ''xyz'' is the file name (''nowiki'' makes sure the content will not be linked). Test: {{filepath:001Bulbasaur.png|nowiki}} is the path to the Sugimori artwork of {{p|Bulbasaur}}. I have created a template for checking for existence of files: [[User:TheICTLiker4/fileexist]]. You just specify three parameters:<ol><li>File name.<li>Value to show if that file exists.<li>Value to show if that file doesn't exist.</ol> Have a nice day, --<span lang="ja">[[User:TheICTLiker4|<span style="color:#333">'''TheI'''</span>]][[Special:Contributions/TheICTLiker4|<span style="color:#f30">'''CTLi'''</span>]][[User talk:TheICTLiker4|<span style="color:#bbb">'''ker4'''</span>]]</span> 20:13, 9 March 2020 (UTC)
1,443

edits