Template:Infobox2012: Difference between revisions
From Hattrick
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<table class="infobox" id="toc" style="float:right | <table class="infobox" id="toc" border="2" style="float:right; width:321px; text-align:center; background:#AAooE9; border:1px #AAA solid; margin:0.5em auto; border-collapse:collapse;"><!-- | ||
MASTERS | MASTERS | ||
-->{{#if:{{{title|}}}|<tr><td colspan="3 | -->{{#if:{{{title|}}}|<tr><td colspan="3"> {{{title}}} </td></tr>}}<!-- | ||
-->{{#if:{{{bseasons|}}}|<td rowspan="1" width="30% | -->{{#if:{{{bseasons|}}}| <td rowspan="1" width="30%"><small>Preceded by</small> <br> {{#if: {{{before|}}} | '''{{{before|}}}''' <br> {{{bseasons|}}} | '''New title'''</td>}}}}<!-- | ||
-->{{#if:{{{wintitle|}}}|<td rowspan="1" width="40%"><br>{{{wintitle}}}</td>}}<!-- | |||
-->{{#if:{{{wintitle|}}}|<td rowspan="1" width="40%" | -->{{#if:{{{aseasons|}}}|<td rowspan="1" width="30%"><small>Succeeded by</small> <br> {{#if: {{{after|}}} | '''{{{after|}}}''' <br> {{{aseasons|}}} | '''Incumbent''' </td>}}}}<!-- | ||
-->{{#if:{{{aseasons|}}}|<td rowspan="1" width="30% | --></table> | ||
<table class="infobox" id="toc" style="float:right; background:#fff; text-align:left; font-size:88%; margin-left:1em; border-spacing:1;"><!-- | |||
HEADER | HEADER | ||
-->{{#if:{{{teamname|{{{clubname|}}}}}}|<caption>'''{{{teamname|{{{clubname}}}}}}'''<!-- | -->{{#if:{{{teamname|{{{clubname|}}}}}}|<caption>'''{{{teamname|{{{clubname}}}}}}'''<!-- | ||
-->{{#if:{{{teamid|}}}| ([http://www.hattrick.org/Club/?TeamID={{{teamid}}} {{{teamid}}}])|}}<!-- | -->{{#if:{{{teamid|}}}| ([http://www.hattrick.org/Club/?TeamID={{{teamid}}} {{{teamid}}}])|}}<!-- | ||
--></caption>|}}<!-- | --></caption>|}}<!-- | ||
-->{{#if:{{{logourl|}}}|<tr><td colspan=" | -->{{#if:{{{logourl|}}}|<tr><td colspan="2" align="center">{{{logourl}}}</td></tr>|}}<!-- | ||
-->{{#if:{{{manager|}}}|<!-- | -->{{#if:{{{manager|}}}|<!-- | ||
--><tr><td colspan="3" align="center" style="font-size:1.1em">Managed by '''{{{manager}}}'''</td></tr>|<!-- | --><tr><td colspan="3" align="center" style="font-size:1.1em">Managed by '''{{{manager}}}'''</td></tr>|<!-- | ||
| Line 17: | Line 18: | ||
-->}}<!-- | -->}}<!-- | ||
INFO | INFO | ||
--><tr><td style="background: #e3e3e3" align=center colspan=" | --><tr><td style="background: #e3e3e3" align=center colspan="2" >'''Club information'''</td></tr><!-- | ||
-->{{#if:{{{fullname|}}}|{{infobox/row|label=Full name|data={{{fullname}}}}}|}}<!-- | -->{{#if:{{{fullname|}}}|{{infobox/row|label=Full name|data={{{fullname}}}}}|}}<!-- | ||
-->{{#if:{{{shortname|}}}|{{infobox/row|label=Short name|data={{{shortname}}}}}|}}<!-- | -->{{#if:{{{shortname|}}}|{{infobox/row|label=Short name|data={{{shortname}}}}}|}}<!-- | ||
| Line 37: | Line 38: | ||
-->}}<!-- | -->}}<!-- | ||
COLOURS | COLOURS | ||
-->{{#if:{{{kit1||{{{kit2|}}}}}}|<tr><td align=center style="background: #e3e3e3" colspan=" | -->{{#if:{{{kit1||{{{kit2|}}}}}}|<tr><td align=center style="background: #e3e3e3" colspan="2" >'''Team colours'''</td></tr>}}<!-- | ||
-->{{#if:{{{kit1||{{{kit2|}}}}}}|<tr><td colspan=" | -->{{#if:{{{kit1||{{{kit2|}}}}}}|<tr><td colspan="2">{{{kit1}}} {{{kit2}}}</td></tr>}}<!-- | ||
PRIZES | PRIZES | ||
-->{{#if:{{{prizeshelf|}}}|<tr><td align=center style="background: #e3e3e3" colspan=" | -->{{#if:{{{prizeshelf|}}}|<tr><td align=center style="background: #e3e3e3" colspan="2" >'''Prize shelf'''</td></tr>}}<!-- | ||
-->{{#if:{{{prizeshelf|}}}|<tr><td align=center colspan=" | -->{{#if:{{{prizeshelf|}}}|<tr><td align=center colspan="2">{{{prizeshelf}}}</td></tr>}}<!-- | ||
YOUTH | YOUTH | ||
-->{{#if:{{{yteam|}}}|<tr><td align=center style="background: #e3e3e3" colspan="2" >'''Youth Team'''</td></tr>}}<!-- | -->{{#if:{{{yteam|}}}|<tr><td align=center style="background: #e3e3e3" colspan="2" >'''Youth Team'''</td></tr>}}<!-- | ||
| Line 47: | Line 48: | ||
-->{{#if:{{{yarena|}}}|{{infobox/row|label=Arena|data={{{yarena}}}}}|}}<!-- | -->{{#if:{{{yarena|}}}|{{infobox/row|label=Arena|data={{{yarena}}}}}|}}<!-- | ||
EDIT | EDIT | ||
-->{{#if:{{{lastedit|}}}|<tr><td colspan=" | -->{{#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 01:05, 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.