Template talk:Avatar
(1st comment)
{{Avatar|artistname|recipientname}}
Place the text above in the image summary when you upload an image. Or you can later edit the image's description page to include the tag without reuploading the image. Replace artistname with the actual forum name of the artist. Replace recipientname with the actual forum name of the person using the avatar. Please note that this is not always the same as their pirate names.
The preferred naming format for avatar images uploaded to the YPPedia is Avatar-Artistname-filename, where artistname is the forum name of the artist and filename is the original filename given to the artwork. If the original filename is unknown, please use the name of the pirate the avatar was made for or the pirate depicted in the avatar.
bug with null data
Currently, this template will add whatever article that is using it into the Categories "Avatar artists" (for the 1st element) and "Avatar art" (for the 2nd).
Instead, we need to add in some If-Then-Else logic into the template, to make these Category inclusions dependent on having these variables in the template call. That is, if this template is called *without* data for variable #2, then that article should *not* be added into that 2nd category.
Unfortunately, I do not have the requisite grasp of wiki-code's if-then-else logic; otherwise, I'd happily dive into this problem myself... -- Franklincain (t/c) 14:52, 6 September 2012 (PDT)
(Edit): Here is a generic write-up of the proposed logic...
IF {1} exists THEN <includeonly>[[ Category:Avatar artists | {{{1}}} ]]</includeonly>
IF {2} exists THEN <includeonly>[[ Category:Avatar art | {{{2}}} ]]</includeonly>
Thanks. -- Franklincain (t/c) 15:11, 6 September 2012 (PDT)
- Any avatar uploaded should always be added to both categories, if one variable is missing then the information should be completed in the page that's generating the error. If you have an specific example of where it would be beneficial to have this option please note it here. Thank you! --Clotho 15:55, 6 September 2012 (PDT)
- Aye, here. It looks as if that user was making a list of templates to experiment with. -- Franklincain (t/c) 21:20, 6 September 2012 (PDT)
- That's a sandbox in a user page. There's no need to adjust templates to accommodate someone's experimenting. In this case, we do want the error to come back if a parameter is missing so we can fix it. --Clotho 08:25, 7 September 2012 (PDT)
- Fair 'nuff. ;-) Thanks, all. -- Franklincain (t/c) 08:53, 7 September 2012 (PDT)