Difference between revisions of "Template:2Players/doc"
From QWiki
m (Update) |
m (Updated doc to support 1 or 2 players/teams) |
||
Line 1: | Line 1: | ||
− | This template outputs one flag, then two linked players separated by a blue "&" | + | This template outputs one flag, then two (or only one) linked players. If there's 2 players, they're separated by a blue "&".<br /> |
+ | |||
+ | ==2 players== | ||
+ | The following code: | ||
+ | <pre>{{2Players|usca|BLooD_DoG|BogoJoker}}</pre> | ||
+ | Gives us: | ||
{{2Players|usca|BLooD_DoG|BogoJoker}} | {{2Players|usca|BLooD_DoG|BogoJoker}} | ||
+ | |||
+ | ==1 player (or team)== | ||
+ | This gives same output as {{Tl|Player}}, but other templates (Infobox league) use this to be able to display either or.<br /> | ||
+ | The following code: | ||
+ | <pre>{{2Players|usca|Clan Unf!|}}</pre> | ||
+ | Gives us: | ||
+ | {{2Players|usca|Clan Unf!|}} | ||
==Use== | ==Use== | ||
* First value is flag, leave empty for {{Flag/tbd}} | * First value is flag, leave empty for {{Flag/tbd}} | ||
− | * Second value is player1 | + | * Second value is player1 |
− | * Third value is player2, | + | * Third value is player2 |
+ | ** If both second and third values are empty, it will display as {{2Players|usca||}} |
Latest revision as of 10:24, 12 March 2021
This template outputs one flag, then two (or only one) linked players. If there's 2 players, they're separated by a blue "&".
2 players
The following code:
{{2Players|usca|BLooD_DoG|BogoJoker}}
Gives us: BLooD_DoG & BogoJoker
1 player (or team)
This gives same output as {{Player}}, but other templates (Infobox league) use this to be able to display either or.
The following code:
{{2Players|usca|Clan Unf!|}}
Gives us: Clan Unf!