Difference between revisions of "Template:Infobox team"

From Golly.Life Wiki

(Created page with "{{Infobox}} <noinclude> {{Infobox |name = Infobox/doc |bodystyle = |titlestyle = |abovestyle = background:#00c; |subheaderstyle = |title = Test...")
 
 
(82 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox}}
+
<includeonly>{{Infobox
<noinclude>
+
| name        = {{{abbr}}}
 +
| abovestyle  = background:#{{{color}}}; color:#272B30;
 +
| above        = {{{name}}}
  
{{Infobox
+
| image        = [[File:{{{abbr}}}.png|200px|alt={{{name}}} logo]]
|name         = Infobox/doc
+
  | caption      = "{{{slogan}}}"
  |bodystyle    =  
 
  
  |titlestyle  =  
+
  |headerstyle  = background:#{{{color}}}; color:#272B30;
  |abovestyle   = background:#00c;
+
  |labelstyle   = background:#272B30; color:#{{{color}}};
  |subheaderstyle =
+
  |datastyle   = background:#272B30; color:#eee;
|title        = Test Infobox
 
|above        = Above text
 
|subheader   = Subheader above image
 
|subheader2  = Second subheader
 
  
  |imagestyle   =  
+
  | header1 = Team Information
  |captionstyle =  
+
|   data2 = {{Infobox | subbox = yes
  |image       = [[File:BTX.png|200px|alt=Example alt text]]
+
    | label1 = Name            |   data1 = {{{name|}}}
  |caption      = Caption displayed below File:Example-serious.jpg
+
    | label2 = Abbreviation    |  data2 = {{{abbr}}}
 +
    | label3 = Nickname       |  data3 = {{{nickname|}}}
 +
    |  label4 = Primary Color  |  data4 = {{HexColor|{{{color}}}}}
 +
    |  label5 = Secondary Color |  data5 = {{#if:{{{secondary_color|}}}|<span style="background: #{{{color}}};">{{HexColor|{{{secondary_color}}}}}</span>|}}
 +
    |  label6 = Logo            |  data6 = {{TeamLogo|{{{abbr}}}}}
 +
    |  label7 = Hometown        |  data7 = {{{hometown}}}
 +
    | label8 = Stadium        |   data8 = {{{stadium|}}}
 +
    |  label9 = Emoji          |  data9 = <font size="+3">{{{emoji|}}}</font>
 +
    |  label10 = Status        |  data10 = {{{status|Active}}}
 +
  }}
  
  |headerstyle  = background:#300;
+
  | header3 = Rivalry Crowns
  |labelstyle   = background:#030;
+
  |  data4 = {{{crowns|None}}}
|datastyle    =
 
  
  |header1 = Header defined alone
+
  | header5 = Favorites
  | label1 =  
+
  |   data6 = {{Infobox    | subbox = yes
| data1 =  
+
    label1 = Mixtape    |   data1 = {{{mixtape|{{{playlist|}}}}}}
|header2 =
+
    label2 = Integer    |   data2 = {{{integer|}}}
  | label2 = Label defined alone does not display (needs data, or is suppressed)
+
    label3 = Movie      |   data3 = {{{movie|}}}
| data2 =  
+
  }}
|header3 =
 
| label3 =
 
data3 = Data defined alone
 
|header4 = All three defined (header, label, data, all with same number)
 
| label4 = does not display (same number as a header)
 
data4 = does not display (same number as a header)
 
|header5 =
 
| label5 = Label and data defined (label)
 
|  data5 = Label and data defined (data)
 
  
  |belowstyle = background:#003;
+
| header7 = Divination
  |below      = Below text
+
|  data8 = {{Infobox | subbox = yes
 +
    |  label1 = Element    |  data1 = {{{element|}}}
 +
    |  label2 = Power Word  |  data2 = {{{word|}}}
 +
    |  label3 = Card        |  data3 = {{{playing_card|}}}
 +
  }}
 +
 
 +
| header9 = Motto
 +
|  data10 = {{{motto|}}}
 +
 
 +
  |belowstyle = background:#122; color: #eee;
 +
  |below      = {{Infobox | subbox = yes
 +
    | data1 = &nbsp;
 +
    | data2 = [[Template:Infobox team]] {{Dt}} [{{fullurl:Template:Infobox team|action=edit}} edit]
 +
    | data3 = &nbsp;
 +
  }}
 +
}}</includeonly><noinclude>
 +
The {{Tl|Infobox team}} template is used to define an infobox for a Golly team.
 +
 
 +
Here is how you use it:
 +
 
 +
<pre>
 +
<nowiki>
 +
{{Infobox team
 +
| name = Baltimore Examples
 +
| abbr = BTX
 +
| nickname = Tex
 +
 
 +
| color = 3e92cc
 +
| secondary_color = ffffff
 +
| emoji = ⭐️
 +
 
 +
| slogan = Hello world!
 +
| motto = ''Post tenebras spero lucem''<br />(After darkness, I hope for light)
 +
 
 +
| hometown = Baltimore
 +
| stadium = The Alamo (Lord Baltimore Theater)
 +
 
 +
| status = Incinerated
 +
 
 +
| crowns =
 +
* [[Texas Crown]] {{TeamLogo|FWPT}}
 +
 
 +
| mixtape = [https://open.spotify.com/playlist/7q5i9OOTkLEIxoOHPaaf30?si=94d1247465c14cc5 Example Mixtape]
 +
| integer = 0
 +
| movie = The Thing
 +
 
 +
| element = Water
 +
| word = Incinerated
 +
| playing_card = A♠
 +
}}
 +
</nowiki>
 +
</pre>
 +
 
 +
The {{Tl|Infobox team}} template will pass these arguments to the {{Tl|Infobox}} template, inserting the right bits of information in the right places to produce this:
 +
 
 +
{{Infobox team
 +
| name = Baltimore Examples
 +
| abbr = BTX
 +
| nickname = Tex
 +
 
 +
| color = 3e92cc
 +
| secondary_color = ffffff
 +
| emoji = ⭐️
 +
 
 +
| slogan = Hello world!
 +
| motto = ''Post tenebras spero lucem''<br />(After darkness, I hope for light)
 +
 
 +
| hometown = Baltimore
 +
| stadium = The Alamo (Lord Baltimore Theater)
 +
 
 +
| status = Incinerated
 +
 
 +
| crowns =
 +
* [[Texas Crown]] {{TeamLogo|FWPT}}
 +
 
 +
| mixtape = [https://open.spotify.com/playlist/7q5i9OOTkLEIxoOHPaaf30?si=94d1247465c14cc5 Example Mixtape]
 +
| integer = 0
 +
| movie = The Thing
 +
 
 +
| element = Water
 +
| word = Incinerated
 +
| playing_card = A♠
 
}}
 
}}
  
 +
[[Category:Teams]]
 +
[[Category:Infobox]]
 
</noinclude>
 
</noinclude>

Latest revision as of 13:21, 27 October 2025

The {{Infobox team}} template is used to define an infobox for a Golly team.

Here is how you use it:


{{Infobox team
| name = Baltimore Examples
| abbr = BTX
| nickname = Tex

| color = 3e92cc
| secondary_color = ffffff
| emoji = ⭐️

| slogan = Hello world!
| motto = ''Post tenebras spero lucem''<br />(After darkness, I hope for light)

| hometown = Baltimore
| stadium = The Alamo (Lord Baltimore Theater)

| status = Incinerated

| crowns =
* [[Texas Crown]] {{TeamLogo|FWPT}}

| mixtape = [https://open.spotify.com/playlist/7q5i9OOTkLEIxoOHPaaf30?si=94d1247465c14cc5 Example Mixtape]
| integer = 0
| movie = The Thing

| element = Water
| word = Incinerated
| playing_card = A♠
}}

The {{Infobox team}} template will pass these arguments to the {{Infobox}} template, inserting the right bits of information in the right places to produce this:

Baltimore Examples
Baltimore Examples logo
"Hello world!"
Team Information
Name Baltimore Examples
Abbreviation BTX
Nickname Tex
Primary Color #3e92cc
Secondary Color #ffffff
Logo  BTX.png 
Hometown Baltimore
Stadium The Alamo (Lord Baltimore Theater)
Emoji ⭐️
Status Incinerated
Rivalry Crowns
Favorites
Mixtape Example Mixtape
Integer 0
Movie The Thing
Divination
Element Water
Power Word Incinerated
Card A♠
Motto
Post tenebras spero lucem
(After darkness, I hope for light)
 
Template:Infobox team   •   edit