Difference between revisions of "Template:Infobox CIS University Cup"

From blackwiki
Jump to navigation Jump to search
imported>Zackmann08
(adding documentation)
imported>Zackmann08
(updating to use Template:infobox)
Line 1: Line 1:
{| class="infobox" cellpadding="1" style="width: 25em; font-size: 90%"
+
<includeonly>{{Infobox
|-
+
| abovestyle = background-color: {{{colour|#DDDDDD}}}; color: {{{colour text|#000000}}};
! colspan="2" style="text-align: center; font-size: 110%; background: {{{colour|#DDDDDD}}}; color: {{{colour text|#000000}}}" | {{{title|{{PAGENAMEBASE}}}}}
+
| headerstyle = background-color: {{{colour|#DDDDDD}}}; color: {{{colour text|#000000}}};
|-
+
| above = {{{title|{{PAGENAMEBASE}}}}}
| colspan="2" style="text-align: center" | '''{{{city}}}'''
 
|-
 
| colspan="2" | <hr>
 
|-
 
{{#if: {{{logo|}}}|
 
{{!}} colspan="2" style="text-align: center" {{!}} [[File:{{{logo|}}}{{!}}{{{pixels|200px}}}{{!}}{{{caption|{{PAGENAMEBASE}}}}}]]
 
{{!}}-
 
}}
 
|-
 
| colspan="2" | <hr>
 
|-
 
| '''Host team''' || {{{host}}}
 
|-
 
{{#if: {{{champions<includeonly>|</includeonly>}}} |
 
{{!}} '''Champions'''
 
{{!}} {{{champions}}}
 
{{!}}-
 
}}
 
|-
 
{{#if: {{{venue<includeonly>|</includeonly>}}} |
 
{{!}} '''Venue'''
 
{{!}} {{{venue}}}
 
{{!}}-
 
}}
 
|-
 
{{#if: {{{duration<includeonly>|</includeonly>}}} |
 
{{!}} '''Duration'''
 
{{!}} {{{duration}}}
 
{{!}}-
 
}}
 
|-
 
{{#if: {{{no of games<includeonly>|</includeonly>}}} |
 
{{!}} '''Number of games'''
 
{{!}} {{{no of games}}}
 
{{!}}-
 
}}
 
|-
 
  
{{#if: {{{no of teams<includeonly>|</includeonly>}}} |
+
| subheader = {{{city|}}}
{{!}} '''Number of teams'''
+
 
{{!}} {{{no of teams}}}
+
 
{{!}}-
+
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{pixels|200px}}}|alt={{{alt|}}}}}
}}
+
| caption = {{{caption|}}}
|-
+
 
{{#if: {{{attendance<includeonly>|</includeonly>}}} |
+
| label1 = Host team
{{!}} '''Total attendance'''
+
| data1 = {{{host|}}}
{{!}} {{{attendance}}}
+
| label2 = Champions
{{!}}-
+
| data2 = {{{champions|}}}
}}
+
| label3 = Venue
|-
+
| data3 = {{{venue|}}}
{{#if: {{{TV<includeonly>|</includeonly>}}} |
+
| label4 = Duration
{{!}} '''Television'''
+
| data4 = {{{duration|}}}
{{!}} {{{TV}}}
+
| label5 = Number of games
{{!}}-
+
| data5 = {{{no of games|}}}
}}
+
| label6 = Number of teams
{{!}} colspan=2 style="text-align:center;background: {{{colour|#DDDDDD}}}; color: {{{colour text|#000000}}}" {{!}} '''CIS University Cup Tournaments'''
+
| data6 = {{{no of teams|}}}
{{!}}-
+
| label7 = Total attendance
{{!}} width=50% {{!}}
+
| data7 = {{{attendance|}}}
{{#if:{{{prev year<includeonly>|</includeonly>}}} |
+
| label8 = Television
<font size="2pt"></font>&nbsp;{{{prev year}}}
+
| data8 = {{{TV|}}}
}}
+
 
{{!}} width=50% style="text-align:right;" {{!}}
+
| below = {{align|left|{{#if: {{{prev year|}}}|←{{autolink|{{{prev year|}}} }} }}}}{{align|right|{{#if: {{{next year|}}}|{{autolink|{{{next year|}}}}}→ }}}}
{{#if:{{{next year<includeonly>|</includeonly>}}} |
+
| belowclass = hlist noprint nowrap
{{{next year}}}&nbsp;<font size="2pt"></font>
+
| belowstyle = border-top: 1px solid #aaa; padding-top: 3px;
}}
+
}}</includeonly><noinclude>
|}
 
<noinclude>
 
 
{{documentation}}
 
{{documentation}}
{{Convert to use Infobox}}
 
[[Category:Ice hockey infobox templates|C]]
 
 
</noinclude>
 
</noinclude>

Revision as of 05:54, 16 January 2017

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

Template:Parameter names example

Usage

{{Infobox CIS University Cup
| title       = 
| city        = 
| colour      = 
| colour text = 
| logo        = 
| pixels      = 
| caption     = 
| host        = 
| venue       = 
| champions   = 
| duration    = 
| no of games = 
| no of teams = 
| attendance  = 
| TV          = 
| prev year   = 
| next year   = 
}}