Template:Infobox sport: Difference between revisions

From EarthMC
Jump to navigation Jump to search
sayerleft (talk | contribs)
No edit summary
sayerleft (talk | contribs)
No edit summary
Line 4: Line 4:
| colspan="2" style="text-align: center;" |  
| colspan="2" style="text-align: center;" |  
{{#if:{{{image|}}}|[[File:{{{image}}}|{{{image_size|220px}}}|{{{caption|}}}]]}}{{#if:{{{caption|}}}|<br /><div style="font-size: 90%; padding-top: 3px;">{{{caption}}}</div>}}
{{#if:{{{image|}}}|[[File:{{{image}}}|{{{image_size|220px}}}|{{{caption|}}}]]}}{{#if:{{{caption|}}}|<br /><div style="font-size: 90%; padding-top: 3px;">{{{caption}}}</div>}}
|-
|-
! colspan="2" style="text-align: center; background-color: #efefef; border-top: 1px solid #aaa; border-bottom: 1px solid #aaa;" | Highest governing body
{{#if:{{{body|}}}|
|-
! scope="row" | Highest governing body
| colspan="2" style="text-align: center;" | {{{}}}
| {{{body}}}
}}
 
|-
|-
! colspan="2" style="text-align: center; background-color: #efefef; border-top: 1px solid #aaa; border-bottom: 1px solid #aaa;" | Characteristics
! colspan="2" style="text-align: center; background-color: #efefef; border-top: 1px solid #aaa; border-bottom: 1px solid #aaa;" | Characteristics
|-
|-
! Contact
{{#if:{{{nickname|}}}|
| {{{contact|Full (PvP-based)}}}
! scope="row" | Nickname(s)
| {{{nickname}}}
|-
|-
! Team members
}}
| {{{team|2 per side}}}
{{#if:{{{contact|}}}|
! scope="row" | Contact
| {{{contact}}}
|-
|-
! Type
}}
| {{{type|Field sport}}}
{{#if:{{{team|}}}|
! scope="row" | Team members
| {{{team}}}
|-
|-
! Equipment
}}
| {{{equipment|Fishing rod, Sword, Rose Bush (Wicket), Bread}}}
{{#if:{{{type|}}}|
! scope="row" | Type
| {{{type}}}
|-
|-
! Venue
}}
| {{{venue|The Rosey Field (36m x 15m)}}}
{{#if:{{{equipment|}}}|
! scope="row" | Equipment
| {{{equipment}}}
|-
}}
{{#if:{{{venue|}}}|
! scope="row" | Venue
| {{{venue}}}
|-
}}


|-
|-
! colspan="2" style="text-align: center; background-color: #efefef; border-top: 1px solid #aaa; border-bottom: 1px solid #aaa;" | History
! colspan="2" style="text-align: center; background-color: #efefef; border-top: 1px solid #aaa; border-bottom: 1px solid #aaa;" | History
|-
|-
! First played
{{#if:{{{first_played|}}}|
| {{{first_played|}}}
! scope="row" | First played
| {{{first_played}}}
|-
}}
{{#if:{{{registered|}}}|
! scope="row" | Registered players
| {{{registered}}}
|-
}}
 
|-
|-
! Registered players
! colspan="2" style="text-align: center; background-color: #efefef; border-top: 1px solid #aaa; border-bottom: 1px solid #aaa;" | Presence
| {{{registered|}}}


|-
|-
! colspan="2" style="text-align: center; background-color: #efefef; border-top: 1px solid #aaa; border-bottom: 1px solid #aaa;" | Multi-sport events
{{#if:{{{region|}}}|
! scope="row" | Country or region
| {{{region}}}
|-
|-
| colspan="2" style="text-align: center;" | {{{events|[[Rosey Bowl]], [[EarthMC Olympics]]}}}
}}


|-
|-
{{#if:{{{olympic|}}}|
{{#if:{{{olympic|}}}|
! Olympic
! scope="row" | Olympic
| {{{olympic}}}
| {{{olympic}}}
|-
|-
}}
}}


! colspan="2" style="text-align: center; background-color: #efefef; border-top: 1px solid #aaa; border-bottom: 1px solid #aaa;" | Regional/National leagues
|-
! colspan="2" style="text-align: center; background-color: #efefef; border-top: 1px solid #aaa; border-bottom: 1px solid #aaa;" | Competitions
|-
|-
| colspan="2" style="text-align: center; font-style: italic;" | {{{leagues|}}}
| colspan="2" style="text-align: center; font-style: italic;" | {{{leagues|}}}
Line 53: Line 83:
|}</includeonly><noinclude>
|}</includeonly><noinclude>
== Usage ==
== Usage ==
Copy and paste this code to use for any sport:
<pre>
<pre>
{{Infobox sport rosey
{{Infobox sport
| name        = Rosey
| name        =  
| image        =  
| image        =  
| caption      =  
| caption      =  
| union       = [[Rosey Federation]]
| body       =  
| nickname    = Moxieball
| nickname    =  
| contact      = Full (PvP)
| contact      =  
| team        = 2 players
| team        =  
| type        = Field / Combat
| type        =  
| equipment    = Fishing rod, Sword, Wicket, Bread
| equipment    =  
| venue        = Rosey Pitch (Sand/Grass)
| venue        =  
| first_played = 2024
| first_played =  
| registered  =  
| registered  =  
| events      = [[Rosey Bowl]]
| events      =  
| leagues      = [[Cascadian Rosey League]]
| olympic      =
| leagues      =  
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>


<infobox>
  <title source="title1">
    <default>{{PAGENAME}}</default>
  </title>
  <image source="image1">
    <caption source="caption1"/>
  </image>
  <data source="founded">
    <label>Founded</label>
  </data>
  <data source="dissolved">
    <label>Dissolved</label>
  </data>
  <group>
    <header/>
    <data source="current_sport(s)">
      <label>Current Sport(s)</label>
    </data>
    <data source="previous_sport(s)">
      <label>Previous Sport(s)</label>
    </data>
    <data source="current_winner(s)">
      <label>Current Winner(s)</label>
    </data>
    <data source="previous_winner(s)">
      <label>Previous Winner(s)</label>
    </data>
  </group>
  <group>
    <header/>
    <data source="venue">
      <label>Venue</label>
    </data>
    <data source="founder">
      <label>Founder</label>
    </data>
    <data source="committee_members">
      <label>Committee Members</label>
    </data>
    <data source="committee_hq">
      <label>Committee HQ</label>
    </data>
  </group>
  <group>
    <header/>
    <data source="prize(s)">
      <label>Prize(s)</label>
    </data>
    <data source="sponsor(s)">
      <label>Sponsor(s)</label>
    </data>
  </group>
</infobox>
<noinclude>
Example usage:<pre>
{{Infobox sport
{{Infobox sport
|title1=Example
| name        =  
|image1=Example
| image        =  
|caption1=Example
| caption      =  
|founded=Example
| body        =  
|dissolved=Example
| nickname    =  
|current_sport(s)=Example
| contact      =  
|previous_sport(s)=Example
| team        =  
|current_winner(s)=Example
| type        =  
|previous_winner(s)=Example
| equipment    =  
|venue=Example
| venue       =  
|founder=Example
| first_played =  
|committee_members=Example
| registered  =  
|committee_hq=Example
| events      =  
|prize(s)=Example
| olympic      =  
|sponsor(s)=Example
| leagues      =  
}}
}}
</pre>
</noinclude>

Revision as of 07:07, 16 January 2026

Usage

Copy and paste this code to use for any sport:

{{Infobox sport
| name         = 
| image        = 
| caption      = 
| body        = 
| nickname     = 
| contact      = 
| team         = 
| type         = 
| equipment    = 
| venue        = 
| first_played = 
| registered   = 
| events       = 
| olympic      = 
| leagues      = 
}}


Highest governing body Nickname(s) Contact Team members Type Equipment Venue First played Registered players Country or region Olympic


Characteristics
History
Presence
Competitions

Template loop detected: Template:Infobox sport