Category talk:Templates/Material icons

Ish, I'm worried that the template is misleading. looks like its trying to show 20 cloth. See how the templates for gold and plat look. Can we make it so that you have to add px so it is less confusing? It will also make it easier if we wanted to modify it to show certain amounts of a material. Also I wrote this this morning but gwiki was being lame so I could only post it now. &mdash;♥ Jedi ♥ Rogue ♥ 02:00, 24 August 2008 (UTC)
 * How about we change them from " [[Image: .png|xpx| ]] " to " [[Image: .png|| ]] "? That way, you can put in "50px" if you want a 50 pixel picture, but if people just input 50 for "50 of x material", nothing happens.[[Image:Entrea Sumatae.png|Entrea Sumatae]] Entrea   [Talk]  02:05, 24 August 2008 (UTC)
 * Suggestion: Make the Material icons call Template:MatIcon as {{MatIcon|icon=Iron.png|title=Iron Ingots|}}. Put logic in there with {{#if: {{#pos:|px}}||&amp;nbsp;}}[[Image:|{{#if: {{#pos:|px}}||25px}}|]]. That makes it possible to change the formatting logic in a central place. I think it might be a good idea to have amount templates, like {{1|iron}}. --◄mendel► 03:10, 24 August 2008 (UTC)
 * Wouldn't that logic (I think I'm reading it right...) only allow either a quantity or an image size? If you're trying to make this work like the built-in Image pseudo-template, I again say that it's too much work for too little benefit.  There's no need for these templates to parse quantities (see my argument below).
 * On the other hand, consolidating the format to a central sub-template would indeed make these easier to maintain. I'll make that change now.  &mdash;Dr Ishmael [[Image:Diablo_the_chicken.gif]] 03:46, 24 August 2008 (UTC)


 * (edit conflict) My original intent was only for these to be used on crafter tables at the default size of x25px, so I wasn't thinking too much on parameterizing them, but since others had suggested variable size icons I included that. As for the comparison to, the only real use of that template is for showing both  and  together, otherwise it's easier to use the individual template.  If you want to show material quantities, you'd want to create a master template that would call the individual icon templates, like  .  They tried this at GWW with GWW:Template:Mat, but that template never got used.
 * For these individual templates, I don't see the utility of including quantity as a parameter. It's the difference between   or   - the first is extra work for the template code, the second is easy for anyone to understand.  &mdash;Dr Ishmael [[Image:Diablo_the_chicken.gif]] 03:27, 24 August 2008 (UTC)


 * OK, so we simply say that we don't want to put amounts in at all, since it's not needed, and that people who use preview will see that it doesn't work that way (especially when they try iron|100 ;-). --◄mendel► 04:27, 24 August 2008 (UTC)

part of it is that the looks like it says 50 iron in code even if its not nessecary to display it. its not really nessecary that one put the amount in the template but it reads like it is how its done&mdash;♥ Jedi ♥ Rogue ♥ 06:33, 24 August 2008 (UTC) (Reset indent) Well, just put x50px and it doesn't look like an amount. Something is not working right as it is. Neither image nor icon are scaled by height today. Only the fourth picture looks resized to me in preview. Maybe it's because our job queue exceeds 1000 again? --◄mendel► 10:35, 24 August 2008 (UTC)


 * They all look fine to me now. &mdash;Dr Ishmael [[Image:Diablo_the_chicken.gif]] 15:29, 24 August 2008 (UTC)
 * I modified the Item icon template to ignore the size if it doesn't say "px", so the example is now correctly displayed at x25px.  &mdash;Dr Ishmael [[Image:Diablo_the_chicken.gif]] 15:49, 24 August 2008 (UTC)


 * [[Image:Mendel-Woodsize.png|right|thumb]] It looks like this to me now, and the "medium" size is unresized. --◄mendel► 17:38, 24 August 2008 (UTC)


 * That's exactly what I see, too... oh, and now I see what you mean. After testing, it seems that MediaWiki doesn't support upsizing by height, only downsizing.

(49x58px)
 * [[Image:Wood Plank.png]]
 * [[Image:Wood Plank.png|x10px]]
 * [[Image:Wood Plank.png|x40px]]
 * [[Image:Wood Plank.png|x100px]]
 * [[Image:Wood Plank.png|100px]]
 * Original
 * Original
 * x10px
 * x40px
 * x100px
 * 100px
 * }
 * So if you want a larger-than-normal icon, you'll have to do it by width. &mdash;Dr Ishmael [[Image:Diablo_the_chicken.gif]] 18:22, 24 August 2008 (UTC)

amount in template
The justifications for making amount templates are It'd be done with templates that are used or, and they call. We need one of these for all amounts on the wiki, that'd be 1, 2,3,...,9,10,15,20,25,...,50,60,70,75,80,90,100,120,150,200,250,1000,1500,2000,5000,15000. The latter amounts are needed for gold. In places where odd gold amounts are required, should be used. --◄mendel► 12:16, 24 August 2008 (UTC)
 * automatically use &amp;nbsp; between amount and icon; avoids linebreaks between amount and icon
 * resize number along with icon if icon height exceeds threshold


 * Actually, the &amp;nbsp; doesn't even work; it takes  to avoid separating amount and icon across line breaks. --◄mendel► 12:33, 24 August 2008 (UTC)


 * o_O I seriously hope you're not serious about creating all of those pointless templates. &mdash;Dr Ishmael [[Image:Diablo_the_chicken.gif]] 15:29, 24 August 2008 (UTC)


 * Depends on how often I still have to see br tags to force a layout that looks ugly at half the window sizes I try. --◄mendel► 17:38, 24 August 2008 (UTC)