Template:Infobox2012: Difference between revisions

From Hattrick
Jump to navigationJump to search
Para Para (talk | contribs)
Created page with '<table class="infobox" style="float:right; width:321px; background: #fff; font-size:88%; margin-left:1em; border-spacing: 1"><!-- -->{{#if:{{{teamname|{{{clubname|}}}}}}|<caption…'
 
Para Para (talk | contribs)
No edit summary
Line 3: Line 3:
     -->{{#if:{{{teamid|}}}|&nbsp;([http://www.hattrick.org/Club/?TeamID={{{teamid}}} {{{teamid}}}])|}}<!--
     -->{{#if:{{{teamid|}}}|&nbsp;([http://www.hattrick.org/Club/?TeamID={{{teamid}}} {{{teamid}}}])|}}<!--
--></caption>|}}<!--
--></caption>|}}<!--
-->{{#if:{{{logourl|}}}|<tr><td colspan="2" align="center">{{{logourl}}}</td></tr>|}}<!--
-->{{#if:{{{logourl|}}}|<tr><td colspan="2" align="center">image: {{{logourl}}}</td></tr>|}}<!--
-->{{#if:{{{manager|}}}|<!--
-->{{#if:{{{manager|}}}|<!--
     --><tr><td colspan="2" align="center" style="font-size:1.1em">Managed by '''{{{manager}}}'''</td></tr>|<!--
     --><tr><td colspan="2" align="center" style="font-size:1.1em">Managed by '''{{{manager}}}'''</td></tr>|<!--
     -->{{#if:{{{htuser|}}}|<tr><td colspan="2" align="center" style="font-size:1.1em">Managed by '''[[User:{{{htuser}}}|{{{htuser}}}]]'''</td></tr>|}}|}}<!--
     -->{{#if:{{{htuser|}}}|<tr><td colspan="2" align="center" style="font-size:1.1em">Managed by '''[[User:{{{htuser}}}|{{{htuser}}}]]'''</td></tr>|}}<!--
-->|}}<!--
--><tr><td style="background: #e3e3e3" align=center colspan="2" >'''Club information'''</tr><!--
--><tr><td style="background: #e3e3e3" align=center colspan="2" >'''Club information'''</tr><!--
-->{{#if:{{{fullname|}}}|{{infobox/row|label=Full name|data={{{fullname}}}}}|}}<!--
-->{{#if:{{{fullname|}}}|{{infobox/row|label=Full name|data={{{fullname}}}}}|}}<!--
Line 15: Line 16:
           -->{{#if:{{{country|}}}|,&nbsp;|}}|}}<!--
           -->{{#if:{{{country|}}}|,&nbsp;|}}|}}<!--
     -->{{#if:{{{country|}}}|{{Flag|{{{country}}}}}|}}</td></tr>|}}<!--
     -->{{#if:{{{country|}}}|{{Flag|{{{country}}}}}|}}</td></tr>|}}<!--
-->|}}<!--
-->{{#if:{{{continent|}}}|<tr><td>'''Geographical area'''</td><td>{{{continent}}}</td></tr>|<!--
-->{{#if:{{{continent|}}}|<tr><td>'''Geographical area'''</td><td>{{{continent}}}</td></tr>|<!--
-->{{#if:{{{founded|}}}|<tr><td>'''Founded'''</td><td>{{{founded}}}</td></tr>|}}<!--
-->{{#if:{{{founded|}}}|<tr><td>'''Founded'''</td><td>{{{founded}}}</td></tr>|}}<!--
-->{{#if:{{{arena|}}}|<tr><td>'''Stadium'''</td><td>{{{arena}}}</td></tr><!--
-->{{#if:{{{arena|}}}|<tr><td>'''Stadium'''</td><td>{{{arena}}}</td></tr><!--
           -->{{#if:{{{capacity|}}}|<td> &nbsp;({{{capacity}}} &nbsp; seats)</td></tr>|}}|}}<!--
           -->{{#if:{{{seats|}}}|<td> &nbsp;({{{seats}}} &nbsp; seats)</td></tr>|}}<!--
-->|}}<!--
-->{{#if:{{{fanclub|}}}|<tr><td>'''Fan Club'''</td><td>{{{fanclub}}}</td></tr>|}}<!--
-->{{#if:{{{fanclub|}}}|<tr><td>'''Fan Club'''</td><td>{{{fanclub}}}</td></tr>|}}<!--
     -->{{#if:{{{fanclub-size|}}}|<tr><td>'''Size'''</td><td>{{{fanclub-size}}}</td></tr>|}}|}}<!--
     -->{{#if:{{{fanclub-size|}}}|<tr><td>'''Size'''</td><td>{{{fanclub-size}}}</td></tr>|}}<!--
-->|}}<!--
-->{{#if:{{{kit1|}}}|<tr><td align=center style="background: #e3e3e3" colspan="2" >'''Team colours'''</tr><!--
-->{{#if:{{{kit1|}}}|<tr><td align=center style="background: #e3e3e3" colspan="2" >'''Team colours'''</tr><!--
--><tr><td colspan="2" >{{{kit1}}}<!--
--><tr><td colspan="2" >{{{kit1}}}<!--
           -->{{#if:{{{kit2|}}}|&nbsp;|}}<!--
           -->{{#if:{{{kit2|}}}|&nbsp;|}}<!--
     -->{{#if:{{{kit2|}}}|{{kit2}}|}}<!--
     -->{{#if:{{{kit2|}}}|{{kit2}}|}}<!--
-->{{#if:{{{kit1|}}}|</td>|}}|}}<!--
-->{{#if:{{{kit1|}}}|</td>|}}<!--
-->|}}<!--
-->{{#if:{{{prizeshelf|}}}|<tr><td align=center style="background: #e3e3e3" colspan="2" >'''Prize shelf'''</tr><!--
-->{{#if:{{{prizeshelf|}}}|<tr><td align=center style="background: #e3e3e3" colspan="2" >'''Prize shelf'''</tr><!--
--><tr><td colspan="2" >{{{prizeshelf}}}</tr>|}}<!--
--><tr><td align=center colspan="2" >{{{prizeshelf}}}</tr>|}}<!--
--></table><noinclude>
--></table><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 16:17, 7 August 2012

|}}
Club information

[edit] Template documentation

Usage

{{Infobox2012
| lastedit = 
| teamid   = 
| clubname = <!--required-->
| logourl  = <!--[[image: |200px]]-->
| htuser   = <!--active link-->
| nickname = <!--short name on match page-->
| shortname= 
| region   = 
| country  = 
| continent= 
| founded  = 
| arena    = 
| seats    = 
| fanclub  = 
| president= <!--shows link and picture with formula [[Image:{{{president}}}.jpg|thumb|left| [[User:{{{htuser}}}|{{{htuser}}}]] ]]-->
| chairman = 
| coach    = <!-- {{Flagicon|}}-->
| kit1     =  
| kit2     = <!--<br><td align=center><span style="background-color:#f49; border:1px solid #000">    </span> <small> PINK </td> -->
| yteam    = 
| yarena   = 
| prizeshelf = 
}}

Help

Copy parameters at the very beginning of team page and compile to show the club box on the right.

The only required sectors is club name, other parameters are optional and will show in the template only when given a non-empty value.