Difference between revisions of "Template:Infobox PBA season/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
(sync)
imported>WOSlinker
(sync)
 
Line 1: Line 1:
{| class="toccolours vcard" style="float: right; clear: right; margin: 0 0 1em 1em; width: 23em;"
+
{{infobox
|- style="text-align:center;"
+
| bodyclass = vcard
! colspan="2" style="text-align: center; background-color: {{{Color|LightSteelBlue}}};"  | {{auto link|{{{PBAyear}}} PBA season|{{{PBAyear}}}}}&nbsp;<span class="fn org">{{#if: {{{team2<includeonly>|</includeonly>}}}|[[{{{team}}}|{{{team2}}}]]|[[{{{team}}}]]}}</span> season
+
| abovestyle = font-size:100%; background-color: {{{Color|LightSteelBlue}}}
|-
+
| headerstyle = background-color: #E0E7EF
{{#if:{{{misc|}}}|
+
| above = {{auto link|{{{PBAyear}}} PBA season|{{{PBAyear}}}}}&nbsp;<span class="fn org">{{#if: {{{team2<includeonly>|</includeonly>}}}|[[{{{team}}}|{{{team2}}}]]|[[{{{team}}}]]}}</span> season
{{!}}-
+
| subheaderstyle = font-size:88%;
{{!}} style="text-align:center;" colspan=2 {{!}} ''<small>{{{misc}}}</small>''
+
| subheader = {{{misc|}}}
}}
+
 
|-
+
| label1 = Head&nbsp;coach
| '''Head coach''' || <span class="agent">{{{coach}}}</span>
+
| class1 = agent
{{#if:{{{owners<includeonly>|</includeonly>}}}|
+
| data1 = {{{coach|}}}
{{!}}-
+
 
{{!}} style="vertical-align: top;" {{!}} '''Owner(s)''' {{!}}{{!}} {{{owners}}}
+
| label2 = Owner(s)
|{{!}}-}}
+
| data2 = {{{owners|}}}
{{#if:{{{arena<includeonly>|</includeonly>}}}|
+
 
{{!}}-
+
| label3 = Arena
{{!}} style="vertical-align: top;" {{!}} '''Arena''' {{!}}{{!}} {{{arena}}}
+
| data3 = {{{arena|}}}
|{{!}}-}}
+
 
|-
+
| header4 = {{{1c-name}}} results
{| style="background: none; width: 20em; margin: 0 auto;"
+
 
|-
+
| label5 = Record
! style="background: #E0E7EF;" colspan="2" | {{{1c-name}}} results
+
| data5 =  {{{1c-wins}}}&ndash;{{{1c-losses}}} <small>{{#ifexpr:({{{1c-wins|0}}} + {{{1c-losses|0}}}) = 0|&nbsp;|<br />({{#ifexpr:{{{1c-losses}}} = 0|1.000|.{{padleft:{{#expr:({{{1c-wins}}}/({{{1c-wins}}} + {{{1c-losses}}}) * 1000) round 0}}|3}}}})}}</small>
|-
+
 
| '''Record''' || {{{1c-wins}}}&ndash;{{{1c-losses}}} <small>{{#ifexpr:({{{1c-wins|0}}} + {{{1c-losses|0}}}) = 0|&nbsp;|<br />({{#ifexpr:{{{1c-losses}}} = 0|1.000|.{{padleft:{{#expr:({{{1c-wins}}}/({{{1c-wins}}} + {{{1c-losses}}}) * 1000) round 0}}|3}}}})}}</small>
+
| label6 = Place
|-
+
| data6 = {{#iferror:{{#expr:{{{1c-place}}}+0}}{{#switch:{{{1c-place}}} |1=st |2=nd |3=rd |th}} | {{{1c-place}}} }}
| style="vertical-align: top;" | '''Place''' || {{#iferror:{{#expr:{{{1c-place}}}+0}}{{#switch:{{{1c-place}}} |1=st |2=nd |3=rd |th}} | {{{1c-place}}} }}
+
 
|-
+
| label7 = Playoff finish
| style="vertical-align: top;" | '''Playoff finish''' || {{{1c-playoffs}}}
+
| data7 = {{{1c-playoffs|}}}
|-
+
 
! style="background: #E0E7EF;" colspan="2" | {{{2c-name}}} results
+
| header8 =  {{{2c-name}}} results
|-
+
 
| '''Record''' || {{{2c-wins}}}&ndash;{{{2c-losses}}} <small>{{#ifexpr:({{{2c-wins|0}}} + {{{2c-losses|0}}}) = 0|&nbsp;|<br />({{#ifexpr:{{{2c-losses}}} = 0|1.000|.{{padleft:{{#expr:({{{2c-wins}}}/({{{2c-wins}}} + {{{2c-losses}}}) * 1000) round 0}}|3}}}})}}</small>
+
| label9 = Record
|-
+
| data9 = {{{2c-wins}}}&ndash;{{{2c-losses}}} <small>{{#ifexpr:({{{2c-wins|0}}} + {{{2c-losses|0}}}) = 0|&nbsp;|<br />({{#ifexpr:{{{2c-losses}}} = 0|1.000|.{{padleft:{{#expr:({{{2c-wins}}}/({{{2c-wins}}} + {{{2c-losses}}}) * 1000) round 0}}|3}}}})}}</small>
| style="vertical-align: top;" | '''Place''' || {{#iferror:{{#expr:{{{2c-place}}}+0}}{{#switch:{{{2c-place}}} |1=st |2=nd |3=rd |th}} | {{{2c-place}}} }}
+
 
|-
+
| label10 = Place
| style="vertical-align: top;" | '''Playoff finish''' || {{{2c-playoffs}}}
+
| data10 = {{#iferror:{{#expr:{{{2c-place}}}+0}}{{#switch:{{{2c-place}}} |1=st |2=nd |3=rd |th}} | {{{2c-place}}} }}
{{#if:{{{3c-name<includeonly>|</includeonly>}}}|
+
 
{{!}}-
+
| label11 = Playoff finish
! style="background: #E0E7EF;" colspan="2" {{!}} {{{3c-name}}} results
+
| data11 = {{{2c-playoffs|}}}
{{!}}-
+
 
{{!}} '''Record''' {{!}}{{!}} {{{3c-wins}}}&ndash;{{{3c-losses}}} <small>{{#ifexpr:({{{3c-wins|0}}} + {{{3c-losses|0}}}) = 0|&nbsp;|<br />({{#ifexpr:{{{3c-losses}}} = 0|1.000|.{{padleft:{{#expr:({{{3c-wins}}}/({{{3c-wins}}} + {{{3c-losses}}}) * 1000) round 0}}|3}}}})}}</small>
+
| header12 = {{#if:{{{3c-name|}}}| {{{3c-name}}} results }}
{{!}}-
+
 
{{!}} style="vertical-align: top;" {{!}} '''Place''' {{!}}{{!}} {{#iferror:{{#expr:{{{3c-place}}}+0}}{{#switch:{{{3c-place}}} |1=st |2=nd |3=rd |th}} | {{{3c-place}}} }}
+
| label13 = Record
{{!}}-
+
| data13 =  {{#if:{{{3c-name|}}}| {{{3c-wins}}}&ndash;{{{3c-losses}}} <small>{{#ifexpr:({{{3c-wins|0}}} + {{{3c-losses|0}}}) = 0|&nbsp;|<br />({{#ifexpr:{{{3c-losses}}} = 0|1.000|.{{padleft:{{#expr:({{{3c-wins}}}/({{{3c-wins}}} + {{{3c-losses}}}) * 1000) round 0}}|3}}}})}}</small> }}
{{!}} style="vertical-align: top;" {{!}} '''Playoff finish''' {{!}}{{!}} {{{3c-playoffs}}}
+
 
}}
+
| label14 = Place
{{#if:{{{pol_team<includeonly>|</includeonly>}}}|
+
| data14 = {{#if:{{{3c-name|}}}| {{#iferror:{{#expr:{{{3c-place}}}+0}}{{#switch:{{{3c-place}}} |1=st |2=nd |3=rd |th}} | {{{3c-place}}} }} }}
{{!}}-
+
 
{{!}} colspan="2" style="text-align:center;" {{!}} <hr><small>Stats @ <span class="plainlinks">'''[http://www.pba-online.net/teams/team-stats.php?id={{{pol_team}}} PBA-Online.net]'''</small></span>
+
| label15 = Playoff finish
}}
+
| data15 = {{#if:{{{3c-name|}}}| {{{3c-playoffs|}}} }}
{{#if:{{{no_seasonlist|}}}||
+
 
{{!}}-
+
| data16 = {{#if:{{{pol_team|}}}| <hr><small>Stats @ <span class="plainlinks">[http://www.pba-online.net/teams/team-stats.php?id={{{pol_team}}} PBA-Online.net]</span></small> }}
{{!}} colspan="2" style="text-align:center;background-color:#E0E7EF;" {{!}} {{#if: {{{team2<includeonly>|</includeonly>}}}|'''{{auto link|List of {{{team}}} seasons|{{{team2}}} seasons}}'''|'''{{auto link|List of {{{team}}} seasons|{{{team}}} seasons}}''' }} }}
+
 
{{#if:{{#if:{{{no_prevseason|}}}||1}}{{#if:{{{no_nextseason|}}}||1}}|
+
| header17 = {{#if:{{{no_seasonlist|}}}||{{#if: {{{team2|}}}|{{auto link|List of {{{team}}} seasons|{{{team2}}} seasons}}|{{auto link|List of {{{team}}} seasons|{{{team}}} seasons}} }} }}
{{!}}-
+
 
{{!}} width="50%" {{!}} {{#if:{{{prevseason<includeonly>|</includeonly>}}}|
+
| belowclass = noprint
{{auto link|{{{prevseason}}} {{{team}}} season|{{{prevseason}}} }} }}
+
| below = {{#if:{{{prevseason|}}}{{{nextseason|}}}
{{!}} width="50%" style="text-align:right;" {{!}} {{#if:{{{nextseason<includeonly>|</includeonly>}}}|
+
  |{{succession links
{{auto link|{{{nextseason}}} {{{team}}} season|{{{nextseason}}} }} }}  }}
+
    |left = {{#if:{{{prevseason|}}}|{{auto link|{{{prevseason}}} {{{team}}} season|{{{prevseason}}} }} }}
|}
+
    |right= {{#if:{{{nextseason|}}}|{{auto link|{{{nextseason}}} {{{team}}} season|{{{nextseason}}} }} }}
|}<noinclude>
+
  }}
Taken from:<br>
+
  }}
[[:Template:Infobox NBA season]]
+
}}<noinclude>{{documentation
 +
| content =
 +
This template was derived from [[Template:Infobox NBA season]] for use in [[Philippine Basketball Association]] team season articles.
 +
== Usage ==
 +
Required fields with *
 
<pre>
 
<pre>
Required fields with *
 
 
{{Infobox PBA season
 
{{Infobox PBA season
 
| PBAyear = *
 
| PBAyear = *
Line 83: Line 86:
 
| 2c-playoffs = *
 
| 2c-playoffs = *
 
<!---3rd conference--->
 
<!---3rd conference--->
| 3c-name = *
+
| 3c-name =  
| 3c-wins = * (if not yet ongoing, place 0)
+
| 3c-wins = (if not yet ongoing, place 0)
| 3c-losses = * (if not yet ongoing, place 0)
+
| 3c-losses = (if not yet ongoing, place 0)
| 3c-place = * (if not yet ongoing, place TBD)
+
| 3c-place = (if not yet ongoing, place TBD)
| 3c-playoffs = * (if not yet ongoing, place TBD)
+
| 3c-playoffs = (if not yet ongoing, place TBD)
 
| owners =  
 
| owners =  
 
| television =  
 
| television =  
Line 112: Line 115:
  
 
[[Category:Philippine Basketball Association infobox templates|PBA season]]
 
[[Category:Philippine Basketball Association infobox templates|PBA season]]
</noinclude>
+
}}</noinclude>

Latest revision as of 22:11, 20 September 2017

{{{PBAyear}}} [[{{{team}}}|{{{team2}}}]] season
{{{1c-name}}} results
Record{{{1c-wins}}}–{{{1c-losses}}}  
Place{{{1c-place}}}
{{{2c-name}}} results
Record{{{2c-wins}}}–{{{2c-losses}}}  
Place{{{2c-place}}}
{{{team}}} seasons
Template documentation

This template was derived from Template:Infobox NBA season for use in Philippine Basketball Association team season articles.

Usage

Required fields with *

{{Infobox PBA season
| PBAyear = *
| team = * (present name of the team)
| team2 = (for teams who took a different team name during a past season)
| misc = 
| coach = *
<!---1st conference--->
| 1c-name = *
| 1c-wins = *
| 1c-losses = * 
| 1c-place = *
| 1c-playoffs = *
<!---2nd conference--->
| 2c-name = *
| 2c-wins = *
| 2c-losses = * 
| 2c-place = *
| 2c-playoffs = *
<!---3rd conference--->
| 3c-name = 
| 3c-wins =  (if not yet ongoing, place 0)
| 3c-losses =  (if not yet ongoing, place 0)
| 3c-place =  (if not yet ongoing, place TBD)
| 3c-playoffs =  (if not yet ongoing, place TBD)
| owners = 
| television = 
| radio = 
| pol_team = *
| prevseason = *
| nextseason = *
}}

for "pol_team" links:
Enter a number from 1 to 10, each corresponding to a team link at PBA-Online.net

  • 1 = Air21 Express
  • 2 = Alaska Aces
  • 3 = Barangay Ginebra Kings
  • 4 = Coca-Cola Tigers
  • 5 = San Miguel Beermen
  • 6 = Purefoods TJ Giants
  • 7 = Red Bull Barako
  • 8 = Sta. Lucia Realtors
  • 9 = Talk 'N Text Tropang Texters
  • 10 = Rain or Shine Elasto Painters

Microformat

Template:UF-hcard-org