Difference between revisions of "Template:Backpack Item Link"

From Team Fortress Wiki
Jump to: navigation, search
(Add function of Inventory Item Link. This is such a simple change if I screw it up the first time I'm a terrible person)
m
Line 1: Line 1:
[http://steamcommunity.com/profiles/{{{1|76561197960435530}}}/inventory{{#ifeq: {{{2|0}}} | 0 || /#440_2_{{{2}}}}} {{{3|Inventory}}}]<noinclude>
+
[http://steamcommunity.com/profiles/{{{1|76561197960435530}}}/inventory{{#if: {{{2|}}} | /#440_2_{{{2|}}} {{{3|{{steam name|{{{1|76561197960435530}}}}}}}}|/ Inventory}}]<noinclude>
 
{{doc begin}}
 
{{doc begin}}
 
=== Usage ===
 
=== Usage ===
 
* First parameter is the steam community ID, second is the item serial, third is the player's name.
 
* First parameter is the steam community ID, second is the item serial, third is the player's name.
 +
** If the serial is omitted, a link only to the inventory is generated.
 +
** If the third parameter is omitted, a default string of "Inventory" is displayed.
 
** Can also use the shorthand {{tlx|bpitem}}
 
** Can also use the shorthand {{tlx|bpitem}}
 
* Steam account information should be [[Template:Dictionary/steam ids|entered here]].
 
* Steam account information should be [[Template:Dictionary/steam ids|entered here]].
 
* {{tlx|bpitem|76561197960435530|162307172|Robin Walker's Rocket Launcher}} generates {{bpitem|76561197960435530|162307172|Robin Walker's Rocket Launcher}}.
 
* {{tlx|bpitem|76561197960435530|162307172|Robin Walker's Rocket Launcher}} generates {{bpitem|76561197960435530|162307172|Robin Walker's Rocket Launcher}}.
 
 
[[Category:Link insertion templates|Backpack item link]]
 
[[Category:Link insertion templates|Backpack item link]]
 
</noinclude>
 
</noinclude>

Revision as of 16:23, 22 May 2013

Inventory

Documentation for Backpack Item Link

Usage

  • First parameter is the steam community ID, second is the item serial, third is the player's name.
    • If the serial is omitted, a link only to the inventory is generated.
    • If the third parameter is omitted, a default string of "Inventory" is displayed.
    • Can also use the shorthand {{bpitem}}
  • Steam account information should be entered here.
  • {{bpitem|76561197960435530|162307172|Robin Walker's Rocket Launcher}} generates Robin Walker's Rocket Launcher.