Difference between revisions of "Template:Player infobox"

From comp.tf
Jump to navigation Jump to search
m
(Adding if conditions)
Line 1: Line 1:
{| style="float: right; width: 25%; font-size: 88%; background: #f9f9f9; border: 1px solid #ccc; margin: 5px;"
+
{| style="float: right; width: 24em; font-size: 88%; background: #f9f9f9; border: 1px solid #ccc; margin: 5px;"
 
|-
 
|-
 
! colspan=2 style="background: #D2D2D0; font-size: small;" | {{{alias}}}
 
! colspan=2 style="background: #D2D2D0; font-size: small;" | {{{alias}}}
 
|-
 
|-
| colspan=2 style="text-align: center; " | [[File:{{{image}}}|{{{imagesize|150px}}}]]
+
| colspan=2 style="text-align: center; " | {{#if:{{{image|}}} | [[File:{{{image}}}{{!}}{{{imagesize{{!}}150px}}}]] |}}
 
|-
 
|-
 
! colspan=2 style="background: #D2D2D0; font-size: small;" | Player Information
 
! colspan=2 style="background: #D2D2D0; font-size: small;" | Player Information
 
|-
 
|-
| style="width: 30%" | '''Full name'''
+
{{#if:{{{fullname|}}} |
| {{{fullname}}}
+
{{!}} style="width: 30%" {{!}} '''Full name'''
 +
{{!}} {{{fullname}}} |}}
 
|-
 
|-
| '''Age'''
+
{{#if:{{{age|}}} |
| {{{age}}}
+
{{!}} '''Age'''
 +
{{!}} {{{age}}} | }}
 
|-
 
|-
| '''Country'''
+
| style="width: 30%" | '''Country'''
 
| {{{country}}}
 
| {{{country}}}
 
|-
 
|-
 
| '''Competition formats'''
 
| '''Competition formats'''
| [[{{{formats}}}]]
+
| {{{formats}}}
 
|-
 
|-
 
| '''Main class'''
 
| '''Main class'''
Line 25: Line 27:
 
| [[{{{currentteam}}}]]
 
| [[{{{currentteam}}}]]
 
|-
 
|-
| '''Previous Team(s)'''
+
{{#if:{{{previousteams|}}} |
| [[{{{previousteams}}}]]
+
{{!}} '''Previous Team(s)'''
 +
{{!}} [[{{{previousteams}}}]] |}}
 
|-
 
|-
! colspan=2 style="background: #D2D2D0; font-size: small;" | Achievements
+
{{#if:{{{achievements|}}} |
|-
+
! colspan=2 style="background: #D2D2D0; font-size: small;" {{!}} Achievements
| colspan=2 | {{{achievements}}}
+
{{!}}-
 +
{{!}} colspan=2 {{!}} {{{achievements}}} |}}
 
|-
 
|-
 
! colspan=2 style="background: #D2D2D0; font-size: small;" | Links
 
! colspan=2 style="background: #D2D2D0; font-size: small;" | Links
 
|-
 
|-
| style="text-align: center; " colspan=2 | {{Steam|{{{steam}}}}}{{YouTube|{{{youtube}}}}}{{Twitch|{{{twitch}}}}}
+
| style="text-align: center; " colspan=2 | {{Steam|{{{steam}}}}}
|-
+
{{#if:{{{youtube|}}} | {{YouTube|{{{youtube}}}}} |}}
| style="text-align: center; " colspan=2 | {{{otherlinks}}}
+
{{#if:{{{twitch|}}} | {{Twitch|{{{twitch}}}}} |}}
 +
{{#if:{{{otherlinks|}}} | {{!}}- {{!}} style="text-align: center; " colspan=2 {{!}} {{{otherlinks}}} |}}
 
|}
 
|}
  
Line 44: Line 49:
 
*Just copy this code below to the page and edit the values after the "="
 
*Just copy this code below to the page and edit the values after the "="
 
**'''Important:''' If you don't know a value (IE: name, age, etc, don't delete the line, just let it be with a null value (blank))
 
**'''Important:''' If you don't know a value (IE: name, age, etc, don't delete the line, just let it be with a null value (blank))
 +
**Default values for this template are: '''Country, Competition formats, Main class, Current team, Steam profile link'''. Everything else is optional.
 
**Please input team names in full and type everything carefully as it will be linked automatically
 
**Please input team names in full and type everything carefully as it will be linked automatically
 
*After the code you can write and format text as you normally would for a more detailed history of the player
 
*After the code you can write and format text as you normally would for a more detailed history of the player

Revision as of 09:13, 5 July 2013

{{{alias}}}
Player Information
Country {{{country}}}
Competition formats {{{formats}}}
Main class [[{{{class}}}]]
Current Team [[{{{currentteam}}}]]
Links
Steam icon.png




Usage

  • Just copy this code below to the page and edit the values after the "="
    • Important: If you don't know a value (IE: name, age, etc, don't delete the line, just let it be with a null value (blank))
    • Default values for this template are: Country, Competition formats, Main class, Current team, Steam profile link. Everything else is optional.
    • Please input team names in full and type everything carefully as it will be linked automatically
  • After the code you can write and format text as you normally would for a more detailed history of the player
numlocked
150px}}}
Player Information
Full name Seb Barton
Age 20
Country UK
Competition formats 6v6
Main class Demoman
Current Team Epsilon eSports
Previous Team(s) Team Infused
Achievements
Current ETF2L champion
Links
Steam icon.png Youtube icon.png Twitch icon.png