Difference between revisions of "Template:Infobox PBA conference finals"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Frietjes
Line 1: Line 1:
 
{{infobox
 
{{infobox
| bodystyle = width:400px; font-size:90%;
 
 
| titlestyle = margin-left: inherit; font-size: medium;
 
| titlestyle = margin-left: inherit; font-size: medium;
| title = {{{year}}} PBA {{{conference}}} Finals
+
| title = {{#if:{{{year|}}}|{{{year|}}} PBA {{{conference}}} Finals}}
 
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|alt={{{image_alt|}}}}}
 
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|alt={{{image_alt|}}}}}
 
| caption = {{{caption|}}}
 
| caption = {{{caption|}}}
 
| headerstyle = background: #DDDDDD
 
| headerstyle = background: #DDDDDD
| data1 =
+
| data1 ={{#if:{{{team1_team|{{{champion|}}}}}}{{{team2_team|{{{runnerup|}}}}}}
<table style="width:100%; background:transparent; text-align: center;">
+
|<table style="width:100%; background:transparent; text-align: center;">
 
<tr><th>Team</th><th>Coach</th><th>Wins</th></tr>
 
<tr><th>Team</th><th>Coach</th><th>Wins</th></tr>
 
<tr class="vcard" style="{{#ifexpr:{{#if:{{{champion|}}}|1|{{ifempty|{{{team1_games|}}}|0}} > {{ifempty|{{{team2_games|}}}|0}} }}|font-weight:bold;}}">
 
<tr class="vcard" style="{{#ifexpr:{{#if:{{{champion|}}}|1|{{ifempty|{{{team1_games|}}}|0}} > {{ifempty|{{{team2_games|}}}|0}} }}|font-weight:bold;}}">
<td class="fn org" style="text-align:left;">{{{team1_team|{{{champion}}}}}}</td>
+
<td class="fn org" style="text-align:left;">{{{team1_team|{{{champion|}}}}}}</td>
<td class="agent">{{{team1_coach|{{{champion_coach}}}}}}</td>
+
<td class="agent">{{{team1_coach|{{{champion_coach|}}}}}}</td>
<td>{{{team1_games|{{{champion_games}}}}}}</td>
+
<td>{{{team1_games|{{{champion_games|}}}}}}</td>
 
</tr>
 
</tr>
 
<tr class="vcard" style="{{#ifexpr:{{#if:{{{champion|}}}|0|{{ifempty|{{{team2_games|}}}|0}} > {{ifempty|{{{team1_games|}}}|0}} }}|font-weight:bold;}}">
 
<tr class="vcard" style="{{#ifexpr:{{#if:{{{champion|}}}|0|{{ifempty|{{{team2_games|}}}|0}} > {{ifempty|{{{team1_games|}}}|0}} }}|font-weight:bold;}}">
<td class="fn org" style="text-align:left;">{{{team2_team|{{{runnerup}}}}}}</td>
+
<td class="fn org" style="text-align:left;">{{{team2_team|{{{runnerup|}}}}}}</td>
<td class="agent">{{{team2_coach|{{{runnerup_coach}}}}}}</td>
+
<td class="agent">{{{team2_coach|{{{runnerup_coach|}}}}}}</td>
<td>{{{team2_games|{{{runnerup_games}}}}}}</td>
+
<td>{{{team2_games|{{{runnerup_games|}}}}}}</td>
 
</tr></table>
 
</tr></table>
 
+
}}
 
| label2 = Dates
 
| label2 = Dates
| data2 = {{{dates|{{{date<includeonly>|</includeonly>}}}}}}
+
| data2 = {{{dates|{{{date|}}}}}}
  
| label3 = [[Philippine Basketball Association Finals Most Valuable Player Award|MVP]]
+
| label3 = {{#if:{{{MVP_label|}}}|{{{MVP_label}}}|[[Philippine Basketball Association Finals Most Valuable Player Award|MVP]]}}
| data3 = {{{MVP<includeonly>|</includeonly>}}}
+
| data3 = {{{MVP|}}}
  
 
| label4 = Television
 
| label4 = Television
| data4 = {{{television<includeonly>|</includeonly>}}}
+
| data4 = {{{television|}}}
  
 
| label5 = Announcers
 
| label5 = Announcers
| data5 = {{{announcers<includeonly>|</includeonly>}}}
+
| data5 = {{{announcers|}}}
  
 
| label6 = Radio network
 
| label6 = Radio network
| data6 = {{{radio_network<includeonly>|</includeonly>}}}
+
| data6 = {{{radio_network|}}}
  
 
| label7 = Announcers
 
| label7 = Announcers
| data7 = {{{radio_announcers<includeonly>|</includeonly>}}}
+
| data7 = {{{radio_announcers|}}}
  
| header8 = {{#if:{{{referees_1<includeonly>|</includeonly>}}}{{{referees_2|}}}{{{referees_3|}}}{{{referees_4|}}}{{{referees_5|}}}{{{referees_6|}}}{{{referees_7|}}} |[[Official (basketball)|Referees]]}}
+
| header8 = {{#if:{{{referees_1|}}}{{{referees_2|}}}{{{referees_3|}}}{{{referees_4|}}}{{{referees_5|}}}{{{referees_6|}}}{{{referees_7|}}} |[[Official (basketball)|Referees]]}}
| data9 = {{#if:{{{referees_1<includeonly>|</includeonly>}}}{{{referees_2|}}}{{{referees_3|}}}{{{referees_4|}}}{{{referees_5|}}}{{{referees_6|}}}{{{referees_7|}}}  
+
| data9 = {{#if:{{{referees_1|}}}{{{referees_2|}}}{{{referees_3|}}}{{{referees_4|}}}{{{referees_5|}}}{{{referees_6|}}}{{{referees_7|}}}  
 
|{{Infobox|subbox=yes
 
|{{Infobox|subbox=yes
 
| labelstyle = font-weight:normal; white-space:nowrap;
 
| labelstyle = font-weight:normal; white-space:nowrap;
  
 
| label1 = Game 1:
 
| label1 = Game 1:
| data1 = {{{referees_1<includeonly>|</includeonly>}}}
+
| data1 = {{{referees_1|}}}
  
 
| label2 = Game 2:
 
| label2 = Game 2:
| data2 = {{{referees_2<includeonly>|</includeonly>}}}
+
| data2 = {{{referees_2|}}}
  
 
| label3 = Game 3:
 
| label3 = Game 3:
| data3 = {{{referees_3<includeonly>|</includeonly>}}}
+
| data3 = {{{referees_3|}}}
  
 
| label4 = Game 4:
 
| label4 = Game 4:
| data4 = {{{referees_4<includeonly>|</includeonly>}}}
+
| data4 = {{{referees_4|}}}
  
 
| label5 = Game 5:
 
| label5 = Game 5:
| data5 = {{{referees_5<includeonly>|</includeonly>}}}
+
| data5 = {{{referees_5|}}}
  
 
| label6 = Game 6:
 
| label6 = Game 6:
| data6 = {{{referees_6<includeonly>|</includeonly>}}}
+
| data6 = {{{referees_6|}}}
  
 
| label7 = [[Game seven|Game 7]]:
 
| label7 = [[Game seven|Game 7]]:
| data7 = {{{referees_7<includeonly>|</includeonly>}}}
+
| data7 = {{{referees_7|}}}
  
 
}}}}
 
}}}}
  
 
| label10 = [[PBA Hall of Fame|Hall of Famers]]
 
| label10 = [[PBA Hall of Fame|Hall of Famers]]
| data10 = {{{HOFers<includeonly>|</includeonly>}}}
+
| data10 = {{{HOFers|}}}
  
| header15 = PBA {{{conference}}} Finals chronology
+
| rowclass15 = noprint
| data16 = {{#if:{{{prev_year<includeonly>|</includeonly>}}} |{{align|left|{{auto link|{{{prev_link}}}|&lt;&nbsp;{{{prev_year}}}}}|}} }}
+
| header15 = {{#if:{{{prev_year|}}}{{{next_year|}}}|PBA {{{conference}}} Finals chronology}}
{{#if:{{{next_year<includeonly>|</includeonly>}}}|{{align|right|{{auto link|{{{next_link}}}|{{{next_year}}}&nbsp;&gt;}}|}} }}
+
| rowclass16 = noprint
 +
| data16 = {{#if:{{{prev_year|}}} |{{align|left|{{auto link|{{{prev_link}}}|&lt;&nbsp;{{{prev_year}}}}}|}} }}
 +
{{#if:{{{next_year|}}}|{{align|right|{{auto link|{{{next_link}}}|{{{next_year}}}&nbsp;&gt;}}|}} }}
  
| header17 = PBA Finals chronology
+
| rowclass17 = noprint
| data18 = {{#if:{{{prev_conf<includeonly>|</includeonly>}}} |{{align|left|{{auto link|{{{prev-conf_link}}}|&lt;&nbsp;{{{prev_conf}}}}}|}} }}
+
| header17 = {{#if:{{{prev_conf|}}}{{{next_conf|}}}|PBA Finals chronology}}
{{#if:{{{next_conf<includeonly>|</includeonly>}}} |{{align|right|{{auto link|{{{next-conf_link}}}|{{{next_conf}}}&nbsp;&gt;}}|}} }}
+
| rowclass18 = noprint
 +
| data18 = {{#if:{{{prev_conf|}}} |{{align|left|{{auto link|{{{prev-conf_link}}}|&lt;&nbsp;{{{prev_conf}}}}}|}} }}
 +
{{#if:{{{next_conf|}}} |{{align|right|{{auto link|{{{next-conf_link}}}|{{{next_conf}}}&nbsp;&gt;}}|}} }}
  
| belowstyle = background:#eee;
+
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox PBA conference finals with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox PBA conference finals]] with unknown parameter "_VALUE_"|ignoreblank=y| announcers | caption | champion | champion_coach | champion_games | conference | date | dates | HOFers | image | image_alt | image_size | MVP | MVP_label | next_conf | next_link | next_year | next-conf_link | prev_conf | prev_link | prev_year | prev-conf_link | radio_announcers | radio_network | referees_1 | referees_2 | referees_3 | referees_4 | referees_5 | referees_6 | referees_7 | runnerup | runnerup_coach | runnerup_games | team1_coach | team1_games | team1_team | team2_coach | team2_games | team2_team | television | year }}<noinclude>
| belowclass = noprint
+
{{documentation}}
}}
+
</noinclude>
<noinclude>{{documentation}}</noinclude>
 

Revision as of 15:16, 11 November 2016

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Usage

  1. redirect Template:Parameter names example
{{Infobox PBA conference finals
| year = <!-- xxyy -->
| conference = 
| image = 
| runnerup = 
| runnerup_coach = 
| runnerup_games = 
| champion = 
| champion_coach = 
| champion_games = 
| date= <!-- {{Start date|YYYY|MM|DD}}-<br />{{End date|YYYY|MM|DD}} -->
| MVP = 
| television = 
| announcers = 
| radio_network = 
| radio_announcers =
| referees_1 = <!-- include only if known -->
| referees_2 = <!-- include only if known -->
| referees_3 = <!-- include only if known -->
| referees_4 = <!-- include only if known -->
| referees_5 = <!-- include only if known -->
| referees_6 = <!-- include only if known -->
| referees_7 = <!-- include only if known -->
| prev_year  = <!-- [[xxxx PBA {{{conference}}} Finals|xxxx]] -->
| next_year  = <!-- [[yyyy PBA {{{conference}}} Finals|yyyy]] -->
}}

Microformat

Template:UF-hcal

Tracking category