Template:Team: Difference between revisions
Appearance
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}}} & {{{PlayerB}}}}}</th></tr> | <tr><th class="infobox-title" colspan="2">{{#if:{{{Name|}}}|{{{Name}}}|{{{PlayerA}}} & {{{PlayerB}}}}}</th></tr> | ||
{{#if:{{{Logo|}}}|<tr><td class="infobox-image" colspan="2">[[File:{{{Logo}}}|frameless|upright=1.15]]</td></tr>}} | |||
{{#if:{{{Logo|}}}| | |||
<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> | ||
</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).
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | Name | no description | String | optional |
| 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. | String | required |
| Player B (player page name) | PlayerB | Enter the exact Player page name (no brackets). | String | required |
| Tournaments played | TournamentCount | no description | Number | optional |
| Active from (year) | ActiveFromYear | no description | Number | optional |
| Active to (year) | ActiveToYear | no description | Number | optional |
| Logo file | Logo | no description | File | optional |