Template:Infobox2012: Difference between revisions

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


INFO
INFO
--><tr><td align=center colspan=2 style="background: #e3e3e3; border:1px #aaa solid; border-radius: 15px">'''Club information'''</td></tr>{{#if:{{{fullname|}}}| {{infobox/row|label=Full name|data={{{fullname}}}}}|}}{{#if:{{{shortname|}}}|{{infobox/row|label=Short name|data={{{shortname}}}}}|}}{{#if:{{{nickname|}}}| {{infobox/row|label=Nickname|data={{{nickname}}}}}|}}{{#if:{{{region|{{{country|}}}}}}|<tr><td>'''Location'''</td><td> {{#if:{{{region|}}}| [[{{{region}}}]]{{#if:{{{country|}}}|,&nbsp;|}}|}}{{#if:{{{country|}}}|{{Flag|{{{country}}}}}|}}</td></tr>|}}}}{{#if:{{{continent|}}}|{{infobox/row|label=Geographical area|data={{{continent}}}|}}{{#if:{{{founded|}}}|{{infobox/row|label=Founded|data={{{founded}}}|}}{{#if:{{{arena|{{{seats|}}}}}}|<tr><td>'''Stadium'''</td><td>{{#if:{{{arena|}}}|{{{arena}}}{{#if:{{{seats|}}}|&nbsp;(|}}|}}{{#if:{{{seats|}}}|{{{seats|}}} seats)}}</td></tr>|}}}}{{#if:{{{fanclub|{{{fansize|}}}}}}|<tr><td>'''Fan Club'''</td><td>{{#if:{{{fanclub|}}}|{{{fanclub}}}{{#if:{{{fansize|}}}|&nbsp;(|}}|}}{{#if:{{{fansize|}}}|{{{fansize}}} members)}}</td></tr>|}}}}<!--
--><tr><td align=center colspan=2 style="background: #e3e3e3; border:1px #aaa solid; border-radius: 15px">'''Club information'''</td></tr>{{#if:{{{fullname|}}}| {{infobox/row|label=Full name|data={{{fullname}}}}}|}}{{#if:{{{shortname|}}}|{{infobox/row|label=Short name|data={{{shortname}}}}}|}}{{#if:{{{nickname|}}}| {{infobox/row|label=Nickname|data={{{nickname}}}}}|}}{{#if:{{{region|{{{country|}}}}}}|<tr><td>'''Location'''</td><td> {{#if:{{{region|}}}| [[{{{region}}}]]{{#if:{{{country|}}}|,&nbsp;|}}|}}{{#if:{{{country|}}}|{{Flag|{{{country}}}}}|}}</td></tr>|}}}}{{#if:{{{continent|}}}|{{infobox/row|label=Continent|data={{{continent}}}|}}{{#if:{{{founded|}}}|{{infobox/row|label=Founded|data={{{founded}}}|}}{{#if:{{{arena|{{{seats|}}}}}}|<tr><td>'''Stadium'''</td><td>{{#if:{{{arena|}}}|{{{arena}}}{{#if:{{{seats|}}}|&nbsp;(|}}|}}{{#if:{{{seats|}}}|{{{seats|}}} seats)}}</td></tr>|}}}}{{#if:{{{fanclub|{{{fansize|}}}}}}|<tr><td>'''Fan Club'''</td><td>{{#if:{{{fanclub|}}}|{{{fanclub}}}{{#if:{{{fansize|}}}|&nbsp;(|}}|}}{{#if:{{{fansize|}}}|{{{fansize}}} members)}}</td></tr>|}}}}<!--


COLOURS
COLOURS
Line 15: Line 15:
STAFF
STAFF
-->{{#if:{{{president|{{{coach|}}}}}}|<tr><td align=center colspan=2 style="background: #e3e3e3; border:1px #aaa solid; border-radius: 15px">'''Management'''</td></tr>|}}
-->{{#if:{{{president|{{{coach|}}}}}}|<tr><td align=center colspan=2 style="background: #e3e3e3; border:1px #aaa solid; border-radius: 15px">'''Management'''</td></tr>|}}
{{#if:{{{president|}}}|{{{president}}}|}}
{{#if:{{{president|[[Image:{{{president}}}|thumb|left| [[User:{{{htuser}}}|{{{htuser}}}]] ]] |}}
{{#if:{{{chairman|}}}|{{infobox/row|label=Chairman|data={{{chairman}}}}}|}}
{{#if:{{{chairman|}}}|{{infobox/row|label=Chairman|data={{{chairman}}}}}|}}
{{#if:{{{coach|}}}|{{infobox/row|label=Coach|data={{{coach}}}}}|}}<!--
{{#if:{{{coach|}}}|{{infobox/row|label=Coach|data={{{coach}}}}}|}}<!--
Line 26: Line 26:


EDIT
EDIT
-->{{#if:{{{lastedit|}}}|<tr><td colspan=2 style="background-color:#FB607F; border: 1px #aaa solid; margin: 0; width: 100%; text-align: center; clear:both;" cellpadding=2 cellspacing=5> '''Last update of this page was made {{{lastedit}}}'''</td></tr>}}
-->{{#if:{{{lastedit|}}}|<tr><td colspan=2 style="background-color:#B67; border: 1px #aaa solid; margin: 0; width: 100%; text-align: center; clear:both;" cellpadding=2 cellspacing=5><small>'''Last update of this page was made {{{lastedit}}}'''</small></td></tr>}}
</table>
</table>
<noinclude>{{documentation}}</noinclude>
<noinclude>{{documentation}}</noinclude>

Revision as of 09:37, 14 August 2012

{{#if:{Template:President


{{{clubname}}}
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.