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 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;"><!--{{#if: {{{color}}}| {{{color}}}| #55CC66}}
<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;"><!--{{#if: {{{color}}}| {{{color}}}| #55CC66}}
MASTERS
TITLES
-->{{#if: {{{title|}}}|<tr><td colspan="3" bgcolor=#55CC66 style="border:1px #aaa solid"> '''{{{title}}}''' </td></tr>}}<!--
  -->{{#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> {{#if: {{{before}}} |{{{before}}} | ''new title'' }} </td>}}<!--
  -->{{#if: {{{wintitle|}}}|<td rowspan=1 width=30% style="border:1px #aaa solid" > ''<small>Preceded by </small>'' <br> {{#if: {{{before}}} |{{{before}}} | ''new title'' }} </td>}}<!--
-->{{#if: {{{wintitle|}}}|<td rowspan=1 width=40% >'''{{{wintitle}}}'''</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> {{#if: {{{after}}} |{{{after}}} | ''incumbent'' }} </td>}}<!--
  -->{{#if: {{{wintitle|}}}|<td rowspan=1 width=30% style="border:1px #aaa solid" > ''<small>Succeeded by</small>'' <br> {{#if: {{{after}}} |{{{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;"><!--
--></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}}}}}}'''<!--  
Line 26: Line 27:
         -->{{#if:{{{country|}}}|{{Flag|{{{country}}}}}|}}</td></tr>|}}<!--
         -->{{#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|{{{seats|}}}}}}|<tr><td>'''Stadium'''</td><td><!--

Revision as of 16:40, 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.