Template:Team: Difference between revisions
Appearance
Store short player labels for team pages |
Add TeamID field to Team cargo storage |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{#cargo_declare:_table=Teams | {{#cargo_declare:_table=Teams | ||
|TeamID=String | |||
|Name=String | |Name=String | ||
|PlayerA=String | |PlayerA=String | ||
| Line 13: | Line 14: | ||
"description": "Team infobox (stores to Cargo).", | "description": "Team infobox (stores to Cargo).", | ||
"params": { | "params": { | ||
"TeamID": {"label":"Team ID","type":"string","description":"Stable external team identifier."}, | |||
"Name": {"label":"Name","type":"string"}, | "Name": {"label":"Name","type":"string"}, | ||
"PlayerA": {"label":"Player A (player page name)","type":"string","required":true,"description":"Enter the exact Player page name (no brackets). Example: 'Jane Doe' or 'Player:Jane Doe' depending on your naming convention."}, | "PlayerA": {"label":"Player A (player page name)","type":"string","required":true,"description":"Enter the exact Player page name (no brackets). Example: 'Jane Doe' or 'Player:Jane Doe' depending on your naming convention."}, | ||
| Line 25: | Line 27: | ||
</templatedata> | </templatedata> | ||
</noinclude><includeonly>{{#default_form:Team}}<templatestyles src="Template:Infobox/styles.css" /><templatestyles src="Template:Team/styles.css" /><!-- -->{{#cargo_store:_table=Teams | </noinclude><includeonly>{{#default_form:Team}}<templatestyles src="Template:Infobox/styles.css" /><templatestyles src="Template:Team/styles.css" /><!-- -->{{#cargo_store:_table=Teams | ||
|TeamID={{{TeamID|}}} | |||
|Name={{{Name|}}} | |Name={{{Name|}}} | ||
|PlayerA={{{PlayerA|}}} | |PlayerA={{{PlayerA|}}} | ||
Latest revision as of 16:55, 17 April 2026
This template defines the table "Teams". View table.
Team infobox (stores to Cargo).
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Team ID | TeamID | Stable external team identifier. | String | optional |
| 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 |
| Short player label | ShortPlayers | Compact player label such as 'Nelson/Rose' for podium displays. | String | optional |
| 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 |