Difference between revisions of "Template:TeamAbbr/doc"
From QWiki
(Complete doc from scratch with examples for Template:TeamAbbr) |
m (Updated to describe the new |rows feature) |
||
Line 8: | Line 8: | ||
;|flag= | ;|flag= | ||
:Country flag using two letter ISO code. Leave empty for {{Flag/tbd}}. | :Country flag using two letter ISO code. Leave empty for {{Flag/tbd}}. | ||
+ | ;|rows= | ||
+ | :If set to <code>2</code>, player names will move under team. | ||
;|(after last pipe)= | ;|(after last pipe)= | ||
:Anything entered here will display to the right of the team. | :Anything entered here will display to the right of the team. | ||
Line 14: | Line 16: | ||
== More uses == | == More uses == | ||
− | Example with full use of {{Tl|player}} for each name: | + | Example, on 2 rows, with full use of {{Tl|player}} for each name: |
− | {{TeamAbbr|Russia|flag=ru|{{player|Billy The Kid|flag=ru}}, {{player|gLAd|flag=ru}}, {{player|Zeppski|flag=ru|link=Zepp}}, {{player|Quake|flag=ru}}, {{player|Bulat|flag=ru}}, {{player|Gorgoroth|flag=ru}}, {{player|nlk|flag=ru}}, {{player|SS|flag=ru}}, {{player|Max Power|flag=ru}}}} | + | {{TeamAbbr|Russia|flag=ru|rows=2|{{player|Billy The Kid|flag=ru}}, {{player|gLAd|flag=ru}}, {{player|Zeppski|flag=ru|link=Zepp}}, {{player|Quake|flag=ru}}, {{player|Bulat|flag=ru}}, {{player|Gorgoroth|flag=ru}}, {{player|nlk|flag=ru}}, {{player|SS|flag=ru}}, {{player|Max Power|flag=ru}}}} |
Revision as of 12:42, 12 November 2020
This template is used to display a team and then its players on one (comma separated) line together.
RussiaBilly The Kid, gLAd, Zeppski, Quake, Bulat, Gorgoroth, NLK, SS, Max Power
Use
- |=
- The name of the team. This will not be linked.
- |flag=
- Country flag using two letter ISO code. Leave empty for .
- |rows=
- If set to
2
, player names will move under team. - |(after last pipe)=
- Anything entered here will display to the right of the team.
- Note: When listing players, please use comma followed by a space (
,
) between each player. - By default players are printed with small, light gray text, but this template supports the us of {{player}} so that individual players can have
flag
,link
or abbr.
More uses
Example, on 2 rows, with full use of {{player}} for each name:
Russia
Billy The Kid, gLAd, Zeppski, Quake, Bulat, Gorgoroth, nlk, SS, Max Power
Example within {{GroupTableStart}}:
GroupTableStart | |||||
---|---|---|---|---|---|
1. | RussiaBilly The Kid, gLAd, Zeppski, Quake, Bulat, Gorgoroth, NLK, SS, max_power | 4-1 | 8-2 | +6 | |
2. | AustraliaYeti, HarlsoM, dracs, blindcant, swoop | 2-3 | 4-7 | -3 |