Difference between revisions of "Template:Crate series table/row/doc"

From Team Fortress Wiki
Jump to: navigation, search
(Add examples)
 
(Add actual examples for this template (rather than the parent). Also added usage (if anyone cares))
Line 1: Line 1:
 
A single row template for the Crate series table template.
 
A single row template for the Crate series table template.
 +
Renders a single row in the {{tl|Crate series table/Sandbox}}.
  
=== Examples ===
+
Renders a single row in the {{tl|Crate series table}}.
{{Crate series table
 
| collapsed          = no
 
  
| series            = 21
+
=== Parameters ===
| drops              = yes
+
:; ''item''
 +
:: Required. Used to determine the icon (and, if not overridden, the link and name)
 +
:; ''link''
 +
:: Optional. Overrides the image and text links. This template does not modify the value, so it should use {{tl|if lang}}
 +
:; ''name''
 +
:: Optional. Overrides the link text. This template does not modify the value, so it should use {{tl|item name}} (or similar).
 +
:; ''rate''
 +
:: Optional. Provides a formatted drop percentage.
 +
:; ''grade''
 +
:: Optional. Sets the background color according to the [[Grade]].
  
| item1              = Gloves of Running Urgently
+
== Examples ==
| rate1              = 22.25
+
<pre>
 
+
{{Crate series table/row|item=Shotgun|rate=1|grade=Civilian}}
| item2              = Shotgun
+
{{Crate series table/row|item=Shotgun|rate=1|grade=Freelance}}
| rate2              = 22.25
+
{{Crate series table/row|item=Shotgun|rate=1|grade=Mercenary}}
 
+
{{Crate series table/row|item=Shotgun|rate=1|grade=Commando}}
| item3              = Minigun
+
{{Crate series table/row|item=Shotgun|rate=1|grade=Assassin}}
| rate3              = 22.25
+
{{Crate series table/row|item=Shotgun|rate=1|grade=Elite}}
 
+
{{Crate series table/row|item=Scattergun}}
| item4              = Natascha
+
{{Crate series table/row|item=Scattergun|name=Rocket Launcher}}
| rate4              = 22.25
+
{{Crate series table/row|item=Scattergun|name=Stickybomb Launcher|link=Stickybomb Launcher}}
 
+
</pre>
| item5              = Hound Dog
+
{| class="wikitable sortable"
| rate5              = 5
+
|-
 
+
! colspan="2" style="background:#F3A957;" | Test
| item6              = Football Helmet
+
{{Crate series table/row|item=Shotgun|rate=1|grade=Civilian}}
| rate6              = 5
+
{{Crate series table/row|item=Shotgun|rate=1|grade=Freelance}}
 
+
{{Crate series table/row|item=Shotgun|rate=1|grade=Mercenary}}
| rateU              = 1
+
{{Crate series table/row|item=Shotgun|rate=1|grade=Commando}}
| strange            = yes
+
{{Crate series table/row|item=Shotgun|rate=1|grade=Assassin}}
}}
+
{{Crate series table/row|item=Shotgun|rate=1|grade=Elite}}
<br />
+
{{Crate series table/row|item=Scattergun}}
{{Crate series table
+
{{Crate series table/row|item=Scattergun|name=Rocket Launcher}}
| collapsed          = no
+
{{Crate series table/row|item=Scattergun|name=Stickybomb Launcher|link=Stickybomb Launcher}}
 
+
|}
| series            = 100
 
| drops              = no
 
 
 
| item1              = Blitzkrieg Knife
 
| name1              = {{decorated|Knife|Blitzkrieg}}
 
| link1              = Knife
 
| rate1              = 20
 
 
 
| item2              = Butcher Bird Grenade Launcher
 
| name2              = {{decorated|Grenade Launcher|Butcher Bird}}
 
| link2              = Grenade Launcher
 
| rate2              = 20
 
 
 
| item3              = Corsair Scattergun
 
| name3              = {{decorated|Scattergun|Corsair}}
 
| link3              = Scattergun
 
| rate3              = 20
 
 
 
| item4              = Airwolf Wrench
 
| name4              = {{decorated|Wrench|Airwolf}}
 
| link4              = Wrench
 
| rate4              = 20
 
 
 
| item5              = Blitzkrieg SMG
 
| name5              = {{decorated|SMG|Blitzkrieg}}
 
| link5              = SMG
 
| rate5              = 3
 
 
 
| item6              = Blitzkrieg Revolver
 
| name6              = {{decorated|Revolver|Blitzkrieg}}
 
| link6              = Revolver
 
| rate6              = 3
 
 
 
| item7              = Blitzkrieg Pistol
 
| name7              = {{decorated|Pistol|Blitzkrieg}}
 
| link7              = Pistol
 
| rate7              = 3
 
 
 
| rateU              = 1
 
 
 
| decorated          = yes
 
| weaponU            = yes
 
}}
 
  
 
[[Category:Template documentation]]
 
[[Category:Template documentation]]

Revision as of 17:56, 10 December 2023

A single row template for the Crate series table template. Renders a single row in the {{Crate series table/Sandbox}}.

Renders a single row in the {{Crate series table}}.

Parameters

item
Required. Used to determine the icon (and, if not overridden, the link and name)
link
Optional. Overrides the image and text links. This template does not modify the value, so it should use {{if lang}}
name
Optional. Overrides the link text. This template does not modify the value, so it should use {{item name}} (or similar).
rate
Optional. Provides a formatted drop percentage.
grade
Optional. Sets the background color according to the Grade.

Examples

{{Crate series table/row|item=Shotgun|rate=1|grade=Civilian}}
{{Crate series table/row|item=Shotgun|rate=1|grade=Freelance}}
{{Crate series table/row|item=Shotgun|rate=1|grade=Mercenary}}
{{Crate series table/row|item=Shotgun|rate=1|grade=Commando}}
{{Crate series table/row|item=Shotgun|rate=1|grade=Assassin}}
{{Crate series table/row|item=Shotgun|rate=1|grade=Elite}}
{{Crate series table/row|item=Scattergun}}
{{Crate series table/row|item=Scattergun|name=Rocket Launcher}}
{{Crate series table/row|item=Scattergun|name=Stickybomb Launcher|link=Stickybomb Launcher}}
Test

ShotgunShotgun
1 .00%

ShotgunShotgun
1 .00%

ShotgunShotgun
1 .00%

ShotgunShotgun
1 .00%

ShotgunShotgun
1 .00%

ShotgunShotgun
1 .00%

ScattergunScattergun

ScattergunRocket Launcher

ScattergunStickybomb Launcher