Template talk:Cup: Difference between revisions

From Hattrick
Jump to navigationJump to search
No edit summary
Para Para (talk | contribs)
No edit summary
Line 8: Line 8:


:: I don't see the point of linking to the image itself either. The only place where it could be useful is the [[Prize shelf]] page, but I guess I'll just remove the templates there and put direct links to the images. [[User:ZF-Nightwish|ZF-Nightwish]] 09:00, 2 September 2012 (UTC)
:: I don't see the point of linking to the image itself either. The only place where it could be useful is the [[Prize shelf]] page, but I guess I'll just remove the templates there and put direct links to the images. [[User:ZF-Nightwish|ZF-Nightwish]] 09:00, 2 September 2012 (UTC)
My idea of change is template:
:: ''<nowiki>[[Image:National Cup.PNG{{#if:{{{1|}}}|{{!}}{{{1}}}px|}}{{#if:{{{size|}}}|{{!}}{{{size}}}px|}}{{#if:{{{style|}}}|{{!}}{{{style}}}|}}{{#if:{{{text|}}}|{{!}}{{{text}}}|}}]]</nowiki>''<br>
: usage:
:: - writing '''<nowiki>{{Cup|22|style=frame|text=Champion season 49}}</nowiki>'''<br>
:: it gives a cup of size 22 (smaller, useful in tables) with a frame style (maybe is useless, but is an option...) and when you go with mouse over picture it gives "Champion season 49".<br>
:: - writing: '''<nowiki>{{Cup}}</nowiki>'''
:: it gives the old normal version of cup. --[[Para Para]] 2012-09-02

Revision as of 11:49, 2 September 2012

After discussion with Lucaxvi I open this discussion to ask:

  • Do you think that "link" is a good option for this template?
  • Don't you think we should add an option "if:" to specify dimension and frame of the cup image?

If it can't be done on this template I will create a new copy version because I need this kind of option and I think it would be useful for everyone. --Para Para 2012-09-02

I agree about the option to specify dimension, but I don't agree about the link because I think that it appears better without hipertext link.
--Lucaxvi 23:41, 1 September 2012 (UTC)
I don't see the point of linking to the image itself either. The only place where it could be useful is the Prize shelf page, but I guess I'll just remove the templates there and put direct links to the images. ZF-Nightwish 09:00, 2 September 2012 (UTC)

My idea of change is template:

[[Image:National Cup.PNG{{#if:{{{1|}}}|{{!}}{{{1}}}px|}}{{#if:{{{size|}}}|{{!}}{{{size}}}px|}}{{#if:{{{style|}}}|{{!}}{{{style}}}|}}{{#if:{{{text|}}}|{{!}}{{{text}}}|}}]]
usage:
- writing {{Cup|22|style=frame|text=Champion season 49}}
it gives a cup of size 22 (smaller, useful in tables) with a frame style (maybe is useless, but is an option...) and when you go with mouse over picture it gives "Champion season 49".
- writing: {{Cup}}
it gives the old normal version of cup. --Para Para 2012-09-02