Template:Infobox2012: Difference between revisions
From Hattrick
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 15: | Line 15: | ||
MAIN | MAIN | ||
--><table class="infobox" style="float:right; width:321px; background:#fff; text-align:left; font-size:88%; margin-left:1em; border-spacing:1;">{{#if:{{{logourl|}}}|<tr><td colspan=2 align=center>{{{logourl}}}</td></tr>|}} | --><table class="infobox" style="float:right; width:321px; background:#fff; text-align:left; font-size:88%; margin-left:1em; border-spacing:1;">{{#if:{{{logourl|}}}|<tr><td colspan=2 align=center>{{{logourl}}}</td></tr>|}}{{#if:{{{manager|}}}|<tr><td colspan=3 align=center style="font-size:1.1em">Managed by '''{{{manager}}}'''</td></tr>|{{#if:{{{htuser|}}}| <tr><td colspan=3 align=center style="font-size:1.1em">Managed by '''[[User:{{{htuser}}}|{{{htuser}}}]]'''</td></tr>|}}<!-- | ||
{{#if:{{{manager|}}}|<tr><td colspan=3 align=center style="font-size:1.1em">Managed by '''{{{manager}}}'''</td></tr>| | |||
{{#if:{{{htuser|}}}| <tr><td colspan=3 align=center style="font-size:1.1em">Managed by '''[[User:{{{htuser}}}|{{{htuser}}}]]'''</td></tr>|}}<!-- | |||
INFO | INFO | ||
| Line 25: | Line 23: | ||
{{#if:{{{shortname|}}}|{{infobox/row|label=Short name|data={{{shortname}}}}}|}} | {{#if:{{{shortname|}}}|{{infobox/row|label=Short name|data={{{shortname}}}}}|}} | ||
{{#if:{{{nickname|}}}| {{infobox/row|label=Nickname|data={{{nickname}}}}}|}} | {{#if:{{{nickname|}}}| {{infobox/row|label=Nickname|data={{{nickname}}}}}|}} | ||
{{#if:{{{region|{{{country|}}}}}}|<tr><td>'''Location'''</td><td> | {{#if:{{{region|{{{country|}}}}}}|<tr><td>'''Location'''</td><td> {{#if:{{{region|}}}| [[{{{region}}}]]{{#if:{{{country|}}}|, |}}|}}{{#if:{{{country|}}}|{{Flag|{{{country}}}}}|}}</td></tr>|}}}} | ||
}} | |||
{{#if:{{{continent|}}}|{{infobox/row|label=Geographical area|data={{{continent}}}|}} | {{#if:{{{continent|}}}|{{infobox/row|label=Geographical area|data={{{continent}}}|}} | ||
{{#if:{{{founded|}}}|{{infobox/row|label=Founded|data={{{founded}}}|}} | {{#if:{{{founded|}}}|{{infobox/row|label=Founded|data={{{founded}}}|}} | ||
{{#if:{{{arena|{{{seats|}}}}}}|<tr><td>'''Stadium'''</td><td>{{#if:{{{arena|}}}|{{{arena}}}{{#if:{{{seats|}}}| (|}}|}}{{#if:{{{seats|}}}|{{{seats|}}} seats)}}</td></tr>|}} | {{#if:{{{arena|{{{seats|}}}}}}|<tr><td>'''Stadium'''</td><td>{{#if:{{{arena|}}}|{{{arena}}}{{#if:{{{seats|}}}| (|}}|}}{{#if:{{{seats|}}}|{{{seats|}}} seats)}}</td></tr>|}}}} | ||
}} | {{#if:{{{fanclub|{{{fansize|}}}}}}|<tr><td>'''Fan Club'''</td><td>{{#if:{{{fanclub|}}}|{{{fanclub}}}{{#if:{{{fansize|}}}| (|}}|}}{{#if:{{{fansize|}}}|{{{fansize}}} members)}}</td></tr>|}}}}<!-- | ||
{{#if:{{{fanclub|{{{fansize|}}}}}}|<tr><td>'''Fan Club'''</td><td>{{#if:{{{fanclub|}}}|{{{fanclub}}}{{#if:{{{fansize|}}}| (|}}|}}{{#if:{{{fansize|}}}|{{{fansize}}} members)}}</td></tr>|}} | |||
}}<!-- | |||
COLOURS | COLOURS | ||
| Line 42: | Line 36: | ||
-->{{#if:{{{prizeshelf|}}}|<tr><td align=center colspan=2 style="background: #e3e3e3; border:1px #aaa solid">'''Prize shelf'''</td></tr>}} | -->{{#if:{{{prizeshelf|}}}|<tr><td align=center colspan=2 style="background: #e3e3e3; border:1px #aaa solid">'''Prize shelf'''</td></tr>}} | ||
{{#if:{{{prizeshelf|}}}|<tr><td align=center colspan=2>{{{prizeshelf}}}</td></tr> | {{#if:{{{prizeshelf|}}}|<tr><td align=center colspan=2>{{{prizeshelf}}}</td></tr>}}<!-- | ||
}}<!-- | |||
YOUTH | YOUTH | ||
| Line 49: | Line 42: | ||
-->{{#if:{{{yteam|}}}|<tr><td align=center colspan=2 style="background: #e3e3e3; border:1px #aaa solid">'''Youth Team'''</td></tr>}} | -->{{#if:{{{yteam|}}}|<tr><td align=center colspan=2 style="background: #e3e3e3; border:1px #aaa solid">'''Youth Team'''</td></tr>}} | ||
{{#if:{{{yteam|}}}|{{infobox/row|label=Team name|data={{{yteam}}}}}|}} | {{#if:{{{yteam|}}}|{{infobox/row|label=Team name|data={{{yteam}}}}}|}} | ||
{{#if:{{{yarena|}}}|{{infobox/row|label=Arena|data={{{yarena}}}}}| | {{#if:{{{yarena|}}}|{{infobox/row|label=Arena|data={{{yarena}}}}}|}}<!-- | ||
}}<!-- | |||
EDIT | EDIT | ||
-->{{#if:{{{lastedit|}}}|<tr><td colspan=2 style="font-size:100%" >{{Template:Last Update|{{{lastedit}}}}}</td></tr>}} | -->{{#if:{{{lastedit|}}}|<tr><td colspan=2 style="font-size:100%" >{{Template:Last Update|{{{lastedit}}}}}</td></tr>}}</table> | ||
</table> | |||
<noinclude>{{documentation}}</noinclude> | <noinclude>{{documentation}}</noinclude> | ||
<noinclude>[[Category:Club templates]]</noinclude> | <noinclude>[[Category:Club templates]]</noinclude> | ||
Revision as of 17:44, 13 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.