Difference between revisions of "Template:6s team roster collapsible"

From comp.tf
Jump to navigation Jump to search
m (spelling)
 
(17 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| class="mw-collapsible mw-collapsed wikitable infobox2"
+
{| class="mw-collapsible {{#if:{{{collapsed|}}} || mw-collapsed}} wikitable infobox2" style="clear: none;"
 
|-
 
|-
! colspan=2 | {{flag|{{{flag}}}}}  [[{{{teamname}}}]]  
+
! colspan=2 | {{#if:{{{flag|}}}|{{flag|{{{flag}}}}}}}  {{#if:{{{teamname|}}}|[[{{{teamname}}}]]|Roster}}
 
|-
 
|-
| width=40% | '''[[{{{scout1}}}]]'''  
+
| width=40% | '''{{{scout1}}}'''  
| width=60 |  [[File:Scouticon.png]] [[Scout]]
+
| width=60 |  [[File:Scouticon.png|20px]] [[Scout]]
 
|-  
 
|-  
| '''[[{{{scout2}}}]]'''  
+
| '''{{{scout2}}}'''
| [[File:Scouticon.png]] [[Scout]]
+
| [[File:Scouticon.png|20px]] [[Scout]]
 +
|- style="background: silver"
 +
{{#if:{{{scout1sub|}}}|{{!}} '''{{{scout1sub}}}'''
 +
{{!}} [[File:Scouticon.png|20px]] [[Scout|Scout Sub]]|}}
 +
|- style="background: silver"
 +
{{#if:{{{scout2sub|}}}|{{!}} '''{{{scout2sub}}}'''
 +
{{!}} [[File:Scouticon.png|20px]] [[Scout|Scout Sub]]|}}
 
|-
 
|-
{{#if:{{{scout1sub|}}}|{{!}} '''[[{{{scout1sub}}}]]'''
+
| '''{{{roamer}}}'''  
{{!}} [[File:Scouticon.png]] [[Scout]]|}}
+
| [[File:Roamericon.png|20px]] [[Roamer|Roaming Soldier]]
|-
+
|- style="background: silver"
{{#if:{{{scout2sub|}}}|{{!}} '''[[{{{scout2sub}}}]]'''
+
{{#if:{{{roamersub|}}}|{{!}} '''{{{roamersub}}}'''
{{!}} [[File:Scouticon.png]] [[Scout]]|}}
+
{{!}} [[File:Roamericon.png|20px]] [[Roamer|Roaming Soldier Sub]]|}}
|-
 
| '''[[{{{pocket}}}]]'''
 
| [[File:Soldiericon.png]] [[Pocket|Pocket Soldier]]  
 
|-
 
{{#if:{{{pocketsub|}}}|{{!}} '''[[{{{pocketsub}}}]]'''
 
{{!}} [[File:Soldiericon.png]] [[Pocket|Pocket Soldier]]|}}
 
|-
 
| '''[[{{{roamer}}}]]'''
 
| [[File:Soldiericon.png]] [[Roamer|Roaming Soldier]]
 
 
|-  
 
|-  
{{#if:{{{roamersub|}}}|{{!}} '''[[{{{roamersub}}}]]'''
+
| '''{{{pocket}}}'''
{{!}} [[File:Soldiericon.png]] [[Roamer|Roaming Soldier]]|}}
+
| [[File:Soldiericon.png|20px]] [[Pocket|Pocket Soldier]]
 +
|- style="background: silver"
 +
{{#if:{{{pocketsub|}}}|{{!}} '''{{{pocketsub}}}'''
 +
{{!}} [[File:Soldiericon.png|20px]] [[Pocket|Pocket Soldier Sub]]|}}
 
|-  
 
|-  
| '''[[{{{demoman}}}]]'''  
+
| '''{{{demoman}}}'''
| [[File:Demomanicon.png]] [[Demoman]]
+
| [[File:Demomanicon.png|20px]] [[Demoman]]
 +
|- style="background: silver"
 +
{{#if:{{{demomansub|}}}|{{!}} '''{{{demomansub}}}'''
 +
{{!}} [[File:Demomanicon.png|20px]] [[Demoman|Demoman Sub]]|}}
 
|-  
 
|-  
{{#if:{{{demomansub|}}}|{{!}} '''[[{{{demomansub}}}]]'''
+
| '''{{{medic}}}'''  
{{!}} [[File:Demomanicon.png]] [[Demoman]]|}}
+
| [[File:Medicicon.png|20px]] [[Medic]]
|-
+
|- style="background: silver"
| '''[[{{{medic}}}]]'''  
+
{{#if:{{{medicsub|}}}|{{!}} '''{{{medicsub}}}'''
| [[File:Medicicon.png]] [[Medic]]
+
{{!}} [[File:Medicicon.png|20px]] [[Medic|Medic Sub]]|}}
|-
 
{{#if:{{{medicsub|}}}|{{!}} '''[[{{{medicsub}}}]]'''
 
{{!}} [[File:Medicicon.png]] [[Medic]]|}}
 
 
|-  
 
|-  
 
|}
 
|}
 
<noinclude>
 
<noinclude>
 
 
 
 
==Usage==
 
==Usage==
 
*Just copy the code below to the page you want and edit the values after the "="
 
*Just copy the code below to the page you want and edit the values after the "="
Line 54: Line 51:
 
| pocketsub =
 
| pocketsub =
 
</pre>
 
</pre>
 +
* '''If you desire for the roster to be collapsed, you may add a value to collapsed and it will be collapsed. Example:'''
 +
<pre>
 +
| collapsed = yes
 +
</pre>
 +
* '''You may need to add the following code after this template to allow you to write beneath it:'''
 +
<pre> <div class="clearfix"></div> </pre>
  
 
=== Example ===
 
=== Example ===
Line 69: Line 72:
 
</pre>
 
</pre>
  
===Will yeld===
+
===Will yield===
 
{{6s team roster collapsible
 
{{6s team roster collapsible
 
| teamname = Classic Mixup
 
| teamname = Classic Mixup

Latest revision as of 10:42, 10 February 2023

Roster
{{{scout1}}} Scouticon.png Scout
{{{scout2}}} Scouticon.png Scout
{{{roamer}}} Roamericon.png Roaming Soldier
{{{pocket}}} Soldiericon.png Pocket Soldier
{{{demoman}}} Demomanicon.png Demoman
{{{medic}}} Medicicon.png Medic

Usage[edit]

  • Just copy the code below to the page you want and edit the values after the "="
    • Important: If you don't know any value or don't have information to fill it just let it be with a null value (blank).
    • Please input player names in full and type everything carefully as most things will be linked automatically and should be kept consistent across the wiki
  • Use the description field to refer to when the roster in question was active and any notable accomplishments it had.
  • You can also add sub players by adding the class name with sub after. Example:
| scout1sub =
| pocketsub =
  • If you desire for the roster to be collapsed, you may add a value to collapsed and it will be collapsed. Example:
| collapsed = yes
  • You may need to add the following code after this template to allow you to write beneath it:
 <div class="clearfix"></div> 

Example[edit]

{{6s team roster collapsible
| teamname = Classic Mixup
| flag = usa
| scout1 = Ruwin
| scout2 = Yz50
| pocket = TLR
| roamer = enigma
| demoman = Platinum
| medic = Harbleu
}}

Will yield[edit]

United States Classic Mixup
Ruwin Scouticon.png Scout
Yz50 Scouticon.png Scout
enigma Roamericon.png Roaming Soldier
TLR Soldiericon.png Pocket Soldier
Platinum Demomanicon.png Demoman
Harbleu Medicicon.png Medic