Difference between revisions of "Template:TeamAbbr/doc"

From QWiki
m (Updated to describe the new |rows feature)
m (Updated doc to explain the linking switch)
 
(4 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
== Use ==
 
== Use ==
 
;|=
 
;|=
:The name of the team. This will not be linked.
+
:The name of the team. By default, it will not be linked.
 +
;|link=true
 +
:If set, the name of the team is linked.
 +
;|gray=
 +
:Changes color of team name to lighter gray (does not work if team is linked).
 
;|flag=  
 
;|flag=  
:Country flag using two letter ISO code. Leave empty for {{Flag/tbd}}.
+
:Country flag using two letter ISO code. Use ''tbd'' for {{Flag/tbd}}. Leave empty to hide flag entirely.
 
;|rows=
 
;|rows=
 
:If set to <code>2</code>, player names will move under team.
 
:If set to <code>2</code>, player names will move under team.
Line 16: Line 20:
  
 
== More uses ==
 
== More uses ==
Example, on 2 rows, with full use of {{Tl|player}} for each name:
+
===Example 1===
 
+
On 2 rows, with full use of {{Tl|player}} for each name:
 +
<pre><nowiki>{{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}}}}</nowiki></pre>
 +
Gives us:<br />
 
{{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}}}}
 
{{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}}}}
  
 
+
===Example 2===
Example within {{Tl|GroupTableStart}}:
+
Within {{Tl|GroupTableSlot}}:
 
+
<pre><nowiki>{{GroupTableSlot| {{TeamAbbr|Australia|flag=au|Yeti, HarlsoM, dracs, blindcant, swoop}} |place=2 |win_m=2 |lose_m=3 |win_g=4 |lose_g=7 |diff=-3 |bg=}}</nowiki></pre>
 
{{GroupTableStart| GroupTableStart |width=
 
{{GroupTableStart| GroupTableStart |width=
 
|date=
 
|date=
Line 28: Line 34:
 
|stream=
 
|stream=
 
}}
 
}}
{{GroupTableSlot| {{TeamAbbr|Russia|flag=ru|Billy The Kid, gLAd, Zeppski, Quake, Bulat, Gorgoroth, NLK, SS, max_power}} |place=1 |win_m=4 |lose_m=1 |win_g=8 |lose_g=2 |diff=+6 |bg=}}
+
{{GroupTableSlot| {{TeamAbbr|Australia|flag=au|Yeti, HarlsoM, dracs, blindcant, swoop}} |place=2 |win_m=2 |lose_m=3 |win_g=4 |lose_g=7 |diff=-3 |bg=}}{{GroupTableEnd}}
{{GroupTableSlot| {{TeamAbbr|Australia|flag=au|Yeti, HarlsoM, dracs, blindcant, swoop}} |place=2 |win_m=2 |lose_m=3 |win_g=4 |lose_g=7 |diff=-3 |bg=}}
+
 
{{GroupTableEnd}}
+
==Copy/Paste==
 +
<pre><nowiki>{{TeamAbbr|Teamname|flag=tbd|player1, player2, player3, player4}}</nowiki></pre>

Latest revision as of 10:45, 18 March 2021

This template is used to display a team and then its players on one (comma separated) line together.

Russia RussiaBilly The Kid, gLAd, Zeppski, Quake, Bulat, Gorgoroth, NLK, SS, Max Power

Use

|=
The name of the team. By default, it will not be linked.
|link=true
If set, the name of the team is linked.
|gray=
Changes color of team name to lighter gray (does not work if team is linked).
|flag=
Country flag using two letter ISO code. Use tbd for TBD. Leave empty to hide flag entirely.
|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 1

On 2 rows, with full use of {{player}} for each name:

{{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}}}}

Gives us:
Russia Russia
Russia Billy The Kid, Russia gLAd, Russia Zeppski, Russia Quake, Russia Bulat, Russia Gorgoroth, Russia nlk, Russia SS, Russia Max Power

Example 2

Within {{GroupTableSlot}}:

{{GroupTableSlot| {{TeamAbbr|Australia|flag=au|Yeti, HarlsoM, dracs, blindcant, swoop}} |place=2 |win_m=2 |lose_m=3 |win_g=4 |lose_g=7 |diff=-3 |bg=}}
GroupTableStart
2. Australia AustraliaYeti, HarlsoM, dracs, blindcant, swoop 2-3 4-7 -3

Copy/Paste

{{TeamAbbr|Teamname|flag=tbd|player1, player2, player3, player4}}