Difference between revisions of "Template:Steamid"
(I noticed that {{Bpitem}} template used https, so I changed this template so that it also uses httpS protocol instead of http.) |
m (Add support for deleted accounts and fallback for missing ids.) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#switch:{{{1|}}} | + | <includeonly>{{#if: {{{deleted|}}} |
− | + | | {{tooltip|{{{1}}}|{{lang| | |
− | + | | en = This user has deleted their Steam account. | |
+ | | pt-br = A conta Steam deste usuário foi excluída. | ||
+ | }} | ||
+ | }} | ||
+ | | {{#switch:{{{1|}}} | ||
+ | | id = [https://steamcommunity.com/id/{{{2}}} {{{3|{{{2}}}}}}] | ||
+ | | #default = {{#ifexist: Template:Dictionary/steam ids/{{{1}}} | [https://steamcommunity.com/id/{{{1}}} {{{2|{{steam name|{{{1}}}}}}}}] | [https://steamcommunity.com/id/{{{1}}} {{{2|{{{1}}}}}}]{{lang| | ||
+ | | en = (Steam account not in [[Template:Dictionary/steam_ids/list|dictionary]]) | ||
+ | | pt-br = | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
+ | {{ts|en, pt-br}} | ||
{{doc begin}} | {{doc begin}} | ||
− | * {{tlx|steamid|id|robinwalker|Robin Walker on Steam}} generates {{ | + | * {{tlx|steamid|id|robinwalker}} generates {{Steamid|id|robinwalker}}. |
− | * {{tlx|steamid| | + | * {{tlx|steamid|id|robinwalker|Robin Walker on Steam}} generates {{Steamid|id|robinwalker|Robin Walker on Steam}}. |
+ | * {{tlx|steamid|76561197960435530}} generates {{Steamid|76561197960435530}}. | ||
+ | * {{tlx|steamid|76561197960435530|Steam user}} generates {{Steamid|76561197960435530|Steam user}}. | ||
+ | * {{tlx|steamid|76561197960435530|3=deleted=yes}} generates {{Steamid|76561197960435530|deleted=yes}}. | ||
+ | * {{tlx|steamid|00000000000000000}} generates {{Steamid|00000000000000000}}. | ||
+ | * {{tlx|steamid|00000000000000000|Steam user}} generates {{Steamid|00000000000000000|Steam user}}. | ||
[[Category:Formatting templates|Steamid]] | [[Category:Formatting templates|Steamid]] | ||
[[Category:Link insertion templates|Steamid]] | [[Category:Link insertion templates|Steamid]] | ||
</noinclude> | </noinclude> |
Revision as of 12:32, 27 June 2021
This template uses translation switching. The correct language will be displayed automatically. Localized versions of this template (e.g. Template:Steamid/ru) are not necessary. Add your translations directly to this template by editing it. Supported languages for this template: en, pt-br (add) |
Documentation for Steamid
{{steamid|id|robinwalker}}
generates robinwalker.{{steamid|id|robinwalker|Robin Walker on Steam}}
generates Robin Walker on Steam.{{steamid|76561197960435530}}
generates Robin .{{steamid|76561197960435530|Steam user}}
generates Steam user.{{steamid|76561197960435530|deleted=yes}}
generates 76561197960435530.{{steamid|00000000000000000}}
generates Template:Dictionary/steam ids/00000000000000000 .{{steamid|00000000000000000|Steam user}}
generates Steam user.