Difference between revisions of "Template:UserCard"

From comp.tf
Jump to navigation Jump to search
m
m (Undo revision 42043 by Garlic (talk))
 
(73 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div class="usercard" style="position:relative; width:190px; height:190px;">
+
<includeonly><div class="usercard" style="position:relative; width:200px; height:200px; {{#if:{{{altimg|}}}|margin-top:7px;|}}">
{| class="wikitable logo" style="width: 191px;"
+
{| class="wikitable logo" style="width: {{#if: {{{w|}}}|{{{w}}}px|191px}};"
 
|-
 
|-
{{#switch:{{{pos}}}
+
!style="height: 15px; background: #{{#switch:{{lc:{{{pos|}}} }}
  |mod={{!}} style="height: 15px; background: #ccccff;" colspan="2"{{!}} {{#if:{{{flag|}}}|{{Flag|{{{flag}}}}}}} {{#if:{{{usrname|}}}|'''[[User:{{{usrname}}}|{{{name}}}]]'''|[[{{{name}}}]] }}
+
  |collab=bdf5d9
   |admin={{!}} style="height: 15px; background: #ff8787;" colspan="2"{{!}} {{#if:{{{flag|}}}|{{Flag|{{{flag}}}}}}} {{#if:{{{usrname|}}}|'''[[User:{{{usrname}}}|{{{name}}}]]'''|[[{{{name}}}]] }}
+
  |mod=ccccff
  |kaneco={{!}} style="height: 15px; background: #ffca73;" colspan="2"{{!}} {{#if:{{{flag|}}}|{{Flag|{{{flag}}}}}}} {{#if:{{{usrname|}}}|'''[[User:{{{usrname}}}|{{{name}}}]]'''|[[{{{name}}}]] }}
+
   |admin=ff8787
  |#default={{!}} style="height: 15px;" colspan="2"{{!}} {{#if:{{{flag|}}}|{{Flag|{{{flag}}}}}}} {{#if:{{{usrname|}}}|'''[[User:{{{usrname}}}|{{{name}}}]]'''|[[{{{name}}}]] }}
+
  |kaneco=ffca73
}}
+
}};" colspan="2" {{!}} <center>{{#if:{{{flag|}}}|{{Flag|{{{flag}}}}}}}&nbsp;{{#if:{{{usrname|}}}|[[User:{{{usrname}}}|{{{name}}}]]|[[User:{{{name}}}|{{{name}}}]] }}</center>
|- style="height: 166px;"
+
|- style="height: 176px;"
|{{#if:{{{image|}}}|[[File:{{{image}}}|{{{imagesize|166x166px}}}|center|{{{usrname}}}]]|[[File:Generic_Logo.png|center]]}}
+
{{#if: {{{makemebig|}}}|{{!}}style="width: 176px;"}}|{{#if:{{{image|}}}|[[File:{{{image}}}|{{{imagesize|176x176px}}}|center|link={{#if:{{{usrname|}}}|User:{{{usrname}}}|User:{{{name}}} }}]]|[[File:Generic_Logo.png|center]]}}
| style="padding: 2px;" | {{#if:{{{steam|}}}|[[File:InfoboxIcon_Steam.png|25px|link={{{steam}}}]]}}{{#if:{{{etf2l|}}}|[[File:ETF2L-Icon.png|25px|link=http://etf2l.org/forum/user/{{{etf2l}}}]]}}{{#if:{{{esea|}}}|[[File:EseaLogo.png|25px|link=https://play.esea.net/users/{{{esea}}}]]}}{{#if:{{{oz|}}}|[[File:Ozfortress_icon.png|25px|link=http://ozfortress.com/member.php?u={{{oz}}}]]}}{{#if:{{{ugc|}}}|[[File:UGC-Icon.png|25px|link=http://www.ugcleague.com/players_page.cfm?player_id={{{ugc}}}]]}}{{#if:{{{twitch|}}}|[[File:InfoboxIcon_Twitch.png|25px|link=http://www.twitch.tv/{{{twitch}}}]]}}{{#if:{{{youtube|}}}|[[File:InfoboxIcon_YouTube.png|25px|link=https://www.youtube.com/user/{{{youtube}}}]]}}{{#if:{{{twitter|}}}|[[File:InfoboxIcon_Twitter.png|25px|link=https://twitter.com/{{{twitter}}}]]}}
+
| style="padding: 2px;" | {{#if:{{{steam|}}}|[[File:InfoboxIcon_Steam.png|25px|link={{{steam}}}]]}}{{#if:{{{tftv|}}}|[[File:TeamfortressTV icon2.png|25px|link=http://www.teamfortress.tv/user/{{{tftv|}}}]]}}{{#if:{{{etf2l|}}}|[[File:ETF2L-Icon.png|25px|link=http://etf2l.org/forum/user/{{{etf2l}}}]]}}{{#if:{{{esea|}}}|[[File:EseaLogo.png|25px|link=https://play.esea.net/users/{{{esea}}}]]}}{{#if:{{{oz|}}}|[[File:Ozfortress_icon.png|25px|link=http://ozfortress.com/member.php?u={{{oz}}}]]}}{{#if:{{{ugc|}}}|[[File:UGC-Icon.png|25px|link=http://www.ugcleague.com/players_page.cfm?player_id={{{ugc}}}]]}}{{#if:{{{twitch|}}}|[[File:InfoboxIcon_Twitch.png|25px|link=http://www.twitch.tv/{{{twitch}}}]]}}{{#if:{{{youtube|}}}|[[File:InfoboxIcon_YouTube.png|25px|link=https://www.youtube.com/user/{{{youtube}}}]]}}{{#if:{{{twitter|}}}|[[File:InfoboxIcon_Twitter.png|25px|link=https://twitter.com/{{{twitter}}}]]}}
 
|}
 
|}
{| class="wikitable list" style="width: 168px; height: 168px;"  
+
{{#if: {{{info|}}}|{{{!}} class="wikitable list" style="width: 178px; height: 178px; margin-top: -2px;"  
|- {{#if {{{info|}}}|
+
{{!}}-
 
{{!}}width=95px {{!}}<div style="text-align: left;">{{{info}}}</div>
 
{{!}}width=95px {{!}}<div style="text-align: left;">{{{info}}}</div>
|}
+
{{!}}} }}
 +
{{#if: {{{altimg|}}}|{{{!}} class="wikitable list" style="width:176px; height:176px; background-color:rgba(0,0,0,0); border:none;"
 +
{{!}}-
 +
{{!}}style="text-align:center; border:hidden;"{{!}}<div style="display:inline-block; transform: translate(-1px, -3px)">[[File:{{{altimg|}}}|176x176px|link={{#if:{{{usrname|}}}|User:{{{usrname}}}|User:{{{name}}} }}]]</div>
 +
{{!}}} }}
 
</div>
 
</div>
 
</includeonly><noinclude>{{documentation}}[[Category:Template]]</noinclude>
 
</includeonly><noinclude>{{documentation}}[[Category:Template]]</noinclude>

Latest revision as of 18:30, 25 November 2016

(view - edit) Documentation

Usage

Intended usage for the Administration Page

|name=
Your short name or comp.tf username
|usrname=
If you have used a short name, fill in your comp.tf username on this
|pos=
To colour code your position. Values are collab, mod, admin or kaneco.
|flag=
To add a flag by your name, if you desire
|image=
For an image to display. If no image is provided, the comp.tf logo will display instead.
|steam=
A full link to your steam profile page
|tftv=
|etf2l=
|esea=
|oz=
|ugc=
Used for a link to your profile page to one of these pages. Only the numerals at the end of the link are required
|youtube=
|twitch=
|twitter=
Links to these social platforms
|info=
Adds any information you want to be added for when a user may hover over your card.

Example

{{UserCard
|usrname=Efefknee
|name=ffc
|pos=admin
|flag=global
|image=Efefknee.png
|steam=http://steamcommunity.com/id/gabelogannewell
|etf2l=ok
|youtube=TeamFortressTV
|twitter=TeamFortressTV
|twitch=TeamFortressTV
|info= If you need help, feel free to add me or leave a message on my discussion page, as minor as you may think it is.
}} 

Gives:

If you need help, feel free to add me or leave a message on my discussion page, as minor as you may think it is.


Copy Paste

{{UserCard
|name=
|usrname=
|pos=
|flag=
|image=
|steam=
|etf2l=
|esea=
|ugc=
|oz=
|youtube=
|twitter=
|twitch=
|info=
}}