Difference between revisions of "Template:Wiki Cap owner"

From Team Fortress Wiki
Jump to: navigation, search
m
m (#ifeq is the correct way to do a yes/no)
Line 1: Line 1:
 
<includeonly>| [[User:{{{username}}}|{{{username}}}]]
 
<includeonly>| [[User:{{{username}}}|{{{username}}}]]
 
| style="text-align: center;" | {{flag|{{{flag|World}}}}}
 
| style="text-align: center;" | {{flag|{{{flag|World}}}}}
| style="text-align: center;" | {{#switch: {{{deletedacc|no}}}
+
| style="text-align: center;" | {{#ifeq: {{{deletedacc|}}}|yes
  | yes = {{tooltip|{{{communityid}}}|{{lang|
+
  | {{tooltip|{{{communityid}}}|{{lang|
 
   | en = This user has deleted their Steam account.
 
   | en = This user has deleted their Steam account.
 
   | es = Este usuario ha eliminado su cuenta de Steam.
 
   | es = Este usuario ha eliminado su cuenta de Steam.
Line 11: Line 11:
 
   | zh-hans = 该用户注销了自己的Steam账号。
 
   | zh-hans = 该用户注销了自己的Steam账号。
 
   }}}}  
 
   }}}}  
  | #default = [https://steamcommunity.com/profiles/{{{communityid}}} {{steam name|{{{communityid}}}}}]
+
  | [https://steamcommunity.com/profiles/{{{communityid}}} {{steam name|{{{communityid}}}}}]
 
}}
 
}}
 
| style="text-align: center;" | <span style="display:none">{{{date}}}</span>{{#time: {{lang
 
| style="text-align: center;" | <span style="display:none">{{{date}}}</span>{{#time: {{lang

Revision as of 16:52, 30 March 2023

Documentation for Wiki Cap owner


This template is used to add new names to the List of Wiki Cap owners.

Usage

{{Wiki Cap owner
 | username    = Wiki username
 | flag        = National flag
 | communityid = Community ID of recipient (17 character long numerical string)
 | date        = Date of acquisition (YYYY-MM-DD)
 | serial      = Item serial, available from the Steam Inventory or a third-party backpack viewer
 | deletedacc  = If the user's Steam account was deleted (yes/no)
}}

Parameter descriptions

  • username is the person's username on the Wiki. Required.
  • flag represents the user's native language/region. Uses the "World" flag by default.
  • communityid is a pre-set profile ID number (xxxxxxxxxxxxx). Required.
  • date is the date of acquisiton of the hat, in the format yyyy-mm-dd (2010-11-04 for 4th of November, 2010). Required.
  • serial is the serial number of the hat in question. It can be found on the user's backpack page on the Steam Inventory. Drag and drop the item into your URL bar, and the serial will be the last few numbers at the end. This field is not possible to fill out if the user's backpack is set to private, in which case leave it blank, and the software will note that the backpack is private.
  • deletedacc represents if the user's Steam account is deleted or not. If set to "yes", the user's Steam ID will be shown instead where the user's Steam Profile Name would normally be on the table (along with a tooltip beneath the ID mentioning that said account was deleted). Uses "no" by default.

See also