Difference between revisions of "Template:Cup"

From Hattrick
m (add a missing "noinclude")
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Image:National Cup.PNG{{#if:{{{1|}}}|{{!}}{{{1}}}px|}}{{#if:{{{style|}}}|{{!}}{{{style}}}|}}{{#if:{{{link|}}}|{{!}}{{{link}}}|}}]]<noinclude>
+
[[Image:National Cup.PNG{{#if:{{{1|}}}|{{!}}{{{1}}}px|}}{{#if:{{{size|}}}|{{!}}{{{size}}}px|}}{{#if:{{{style|}}}|{{!}}{{{style}}}|}}{{#if:{{{text|}}}|{{!}}<small>{{{text}}}</small>|{{!}}link=}}]]<noinclude>
 +
==== Usage ====
 +
<pre>
 +
{{Cup|
 +
|(blank)= specify a dimension
 +
| size  = specify a dimension
 +
| style = frame (frame, border, thumb) or position (left, right, center)
 +
              To add both use {{!}} (ex: {{Cup|style=frame{{!}}center)}}
 +
| text  = write caption about cup (readable when mouse is over icon)
 +
}}
 +
</pre>
 +
==== Examples ====
 +
{| class=prettytable style="text-align:center;"
 +
|- valign=bottom
 +
|<nowiki>{{cup}}</nowiki>
 +
|<nowiki>{{cup|size=22|text=Season 49}}</nowiki><br>''or simply''<br><nowiki>{{cup|22|text=Season 49}}</nowiki>
 +
|<nowiki>{{cup|style=frame|text=Season49}}</nowiki>'''
 +
|- bgcolor=white
 +
| {{cup}}|| {{cup|22|style=center|text=Season 49}}
 +
| {{cup|style=frame{{!}}center|text=<small>Season49</small>}}
 +
|-
 +
| basic || redimensioned || with a style
 +
|-
 +
|}
 +
(see more [http://wiki.hattrick.org/w/index.php?title=Special:WhatLinksHere&target=Template%3ACup examples])
 +
</noinclude><noinclude>
 
[[Category:Trophy templates]]
 
[[Category:Trophy templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 19:56, 5 September 2012

National Cup.PNG

Usage[edit]

{{Cup|
|(blank)= specify a dimension 
| size  = specify a dimension
| style = frame (frame, border, thumb) or position (left, right, center)
              To add both use {{!}} (ex: {{Cup|style=frame{{!}}center)}}
| text  = write caption about cup (readable when mouse is over icon)
}}

Examples[edit]

{{cup}} {{cup|size=22|text=Season 49}}
or simply
{{cup|22|text=Season 49}}
{{cup|style=frame|text=Season49}}
National Cup.PNG
Season 49
Season49
basic redimensioned with a style

(see more examples)