Template:Infobox2012: Difference between revisions

From Hattrick
Jump to navigationJump to search
Para Para (talk | contribs)
No edit summary
Para Para (talk | contribs)
mNo edit summary
 
(47 intermediate revisions by the same user not shown)
Line 1: Line 1:
<table class="infobox" border="2" style="float:right; width:321px; text-align:center; background:#e3e3e3; border:1px #aaa solid; margin:0.5em auto; border-collapse:collapse;"><!--
<table class="infobox" cellpadding="2" style="float:right; width:321px; background:#fff; text-align:left; font-size:88%; margin-left:1em; border-spacing:1px; font: small-caps 1em/1.3em verdana,sans-serif; border-radius: 15px"><!--
MASTERS
 
  -->{{#if:{{{title|}}}|<tr><td colspan="3" bgcolor=#55CC66 style="border:1px #aaa solid"> '''{{{title}}}''' </td></tr>}}<!--
  -->{{#if:{{{wintitle|}}}|<td rowspan=1 width=30% style="border:1px #aaa solid" > <small>Preceded by </small> <br> {{{{{before}}} | new title }} </td>}}<!--
  -->{{#if:{{{wintitle|}}}|<td rowspan=1 width=40% >'''{{{wintitle}}}'''</td>}}<!--
  -->{{#if:{{{wintitle|}}}|<td rowspan=1 width=30% style="border:1px #aaa solid" > <small>Succeeded by</small> <br> {{{{{after}}} | incumbent }} </td>}}<!--
--></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}}}}}}'''<!--
--><caption><small>'''{{{teamname|{{{clubname}}}}}}'''{{#if:{{{teamid|}}}|<span class="plainlinks">&nbsp;([http://www.hattrick.org/Club/?TeamID={{{teamid}}} {{{teamid}}}</span>])|}}</small></caption><!--
    -->{{#if:{{{teamid|}}}|&nbsp;([http://www.hattrick.org/Club/?TeamID={{{teamid}}} {{{teamid}}}])|}}<!--
 
--></caption>|}}<!--
MAIN
  -->{{#if:{{{logourl|}}}|<tr><td colspan="2" align="center">{{{logourl}}}</td></tr>|}}<!--
-->{{#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
--><tr><td style="background: #e3e3e3" align=center colspan="2" >'''Club information'''</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}}}&nbsp;{{#if:{{{seats|}}}|(|}}|}}{{#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>|}}}}<!--
-->{{#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>|}}<!--
        -->}}<!--
COLOURS
COLOURS
  -->{{#if:{{{kit1||{{{kit2|}}}}}}|<tr><td align=center style="background: #e3e3e3" colspan="2" >'''Team colours'''</td></tr>}}<!--
-->{{#if:{{{kit1|}}}|<tr><td align=center colspan=2 style="background: #e3e3e3; border:1px #aaa solid; border-radius: 15px">'''Team colours'''</td></tr>}}{{#if:{{{kit1||{{{kit2|}}}}}}|<tr><td colspan=2 align=center><small>{{{kit1}}} {{{kit2}}}</small></td></tr>}}<!--
    -->{{#if:{{{kit1||{{{kit2|}}}}}}|<tr><td colspan="2">{{{kit1}}} {{{kit2}}}</td></tr>}}<!--
 
STAFF
-->{{#if:{{{coach|}}}|<tr><td align=center colspan=2 style="background: #e3e3e3; border:1px #aaa solid; border-radius: 15px">'''Management'''</td></tr>|}}{{#if:{{{president|}}}|{{infobox/row|label=President|data=[[Image:{{{president}}}|thumb|left| [[User:{{{htuser}}}|{{{htuser}}}]] ]]}}|}}{{#if:{{{chairman|}}}|{{infobox/row|label=Chairman|data={{{chairman}}}}}|}}{{#if:{{{coach|}}}|{{infobox/row|label=Coach|data={{{coach}}}}}|}}<!--
 
PRIZES
PRIZES
  -->{{#if:{{{prizeshelf|}}}|<tr><td align=center style="background: #e3e3e3" colspan="2" >'''Prize shelf'''</td></tr>}}<!--
-->{{#if:{{{prizeshelf|}}}|<tr><td align=center colspan=2 style="background: #e3e3e3; border:1px #aaa solid; border-radius: 15px">'''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
  -->{{#if:{{{yteam|}}}|<tr><td align=center style="background: #e3e3e3" colspan="2" >'''Youth Team'''</td></tr>}}<!--
-->{{#if:{{{yteam|}}}|<tr><td align=center colspan=2 style="background: #e3e3e3; border:1px #aaa solid; border-radius: 15px">'''Youth Team'''</td></tr>}}{{#if:{{{yteam|}}}|{{infobox/row|label=Team name|data={{{yteam}}}}}|}}{{#if:{{{yarena|}}}|{{infobox/row|label=Arena|data={{{yarena}}}}}|}}<!--
    -->{{#if:{{{yteam|}}}|{{infobox/row|label=Team name|data={{{yteam}}}}}|}}<!--
 
    -->{{#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="border-bottom:3px solid lightsalmon;font-family:lucida handwriting;background-color:pink; border: 1px #aaa solid; margin: 0; width: 100%; text-align: center; clear:both; border-radius: 15px" cellpadding=2 cellspacing=5><small>'''Last update of this page was made {{{lastedit}}}'''</small></td></tr>}}<!--
--></table>
 
<noinclude>{{documentation}}</noinclude>
END
<noinclude>[[Category:Club templates]]</noinclude>
--></table><noinclude>{{documentation}}</noinclude>

Latest revision as of 11:56, 20 September 2012

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