Jump to content

Template:Team: Difference between revisions

From Spike Wiki
Refresh generated page templates and styles
Tighten page templates and fix card render bugs
Line 22: Line 22:
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude><includeonly>{{#default_form:Team}}<templatestyles src="Template:Infobox/styles.css" /><templatestyles src="Template:Team/styles.css" />{{#cargo_store:_table=Teams
 
<includeonly>
{{#default_form:Team}}
<templatestyles src="Template:Infobox/styles.css" />
<templatestyles src="Template:Team/styles.css" />
 
{{#cargo_store:_table=Teams
|Name={{{Name|}}}
|Name={{{Name|}}}
|PlayerA={{{PlayerA|}}}
|PlayerA={{{PlayerA|}}}
Line 37: Line 30:
|ActiveToYear={{{ActiveToYear|}}}
|ActiveToYear={{{ActiveToYear|}}}
|Logo={{{Logo|}}}
|Logo={{{Logo|}}}
}}
}}<table class="infobox infobox-team">
 
<table class="infobox infobox-team">
   <tr><th class="infobox-title" colspan="2">{{#if:{{{Name|}}}|{{{Name}}}|{{{PlayerA}}} &amp; {{{PlayerB}}}}}</th></tr>
   <tr><th class="infobox-title" colspan="2">{{#if:{{{Name|}}}|{{{Name}}}|{{{PlayerA}}} &amp; {{{PlayerB}}}}}</th></tr>
 
   {{#if:{{{Logo|}}}|<tr><td class="infobox-image" colspan="2">[[File:{{{Logo}}}|frameless|upright=1.15]]</td></tr>}}
   {{#if:{{{Logo|}}}|
    <tr><td class="infobox-image" colspan="2">[[File:{{{Logo}}}|frameless|upright=1.15]]</td></tr>
  }}
 
   <tr><th>Players</th><td>[[{{{PlayerA}}}]] · [[{{{PlayerB}}}]]</td></tr>
   <tr><th>Players</th><td>[[{{{PlayerA}}}]] · [[{{{PlayerB}}}]]</td></tr>
   {{#if:{{{TournamentCount|}}}|<tr><th>Tournaments</th><td>{{{TournamentCount}}}</td></tr>}}
   {{#if:{{{TournamentCount|}}}|<tr><th>Tournaments</th><td>{{{TournamentCount}}}</td></tr>}}
 
   {{#if:{{{ActiveFromYear|}}}|<tr><th>Active</th><td>{{{ActiveFromYear}}}{{#if:{{{ActiveToYear|}}}|–{{{ActiveToYear}}}|–present}}</td></tr>}}
   {{#if:{{{ActiveFromYear|}}}|
</table>[[Category:Teams]]</includeonly>
    <tr><th>Active</th>
      <td>{{{ActiveFromYear}}}{{#if:{{{ActiveToYear|}}}|–{{{ActiveToYear}}}|–present}}</td>
    </tr>
  }}
</table>
 
[[Category:Teams]]
</includeonly>

Revision as of 20:39, 16 April 2026

This template defines the table "Teams". View table.

Team infobox (stores to Cargo).

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
NameName

no description

Stringoptional
Player A (player page name)PlayerA

Enter the exact Player page name (no brackets). Example: 'Jane Doe' or 'Player:Jane Doe' depending on your naming convention.

Stringrequired
Player B (player page name)PlayerB

Enter the exact Player page name (no brackets).

Stringrequired
Tournaments playedTournamentCount

no description

Numberoptional
Active from (year)ActiveFromYear

no description

Numberoptional
Active to (year)ActiveToYear

no description

Numberoptional
Logo fileLogo

no description

Fileoptional