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

From Team Fortress Wiki
Jump to: navigation, search
(Add actual examples for this template (rather than the parent). Also added usage (if anyone cares))
m (exactrate doc)
 
Line 13: Line 13:
 
:; ''rate''
 
:; ''rate''
 
:: Optional. Provides a formatted drop percentage.
 
:: Optional. Provides a formatted drop percentage.
 +
:; ''exactrate''
 +
:: Optional. Provides a tooltip on rate with a rate that factors in unusual drops.
 
:; ''grade''
 
:; ''grade''
 
:: Optional. Sets the background color according to the [[Grade]].
 
:: Optional. Sets the background color according to the [[Grade]].
Line 23: Line 25:
 
{{Crate series table/row|item=Shotgun|rate=1|grade=Commando}}
 
{{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=Assassin}}
{{Crate series table/row|item=Shotgun|rate=1|grade=Elite}}
+
{{Crate series table/row|item=Shotgun|rate=1|exactrate=0.99|grade=Elite}}
 
{{Crate series table/row|item=Scattergun}}
 
{{Crate series table/row|item=Scattergun}}
 
{{Crate series table/row|item=Scattergun|name=Rocket Launcher}}
 
{{Crate series table/row|item=Scattergun|name=Rocket Launcher}}
Line 36: Line 38:
 
{{Crate series table/row|item=Shotgun|rate=1|grade=Commando}}
 
{{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=Assassin}}
{{Crate series table/row|item=Shotgun|rate=1|grade=Elite}}
+
{{Crate series table/row|item=Shotgun|rate=1|exactrate=0.99|grade=Elite}}
 
{{Crate series table/row|item=Scattergun}}
 
{{Crate series table/row|item=Scattergun}}
 
{{Crate series table/row|item=Scattergun|name=Rocket Launcher}}
 
{{Crate series table/row|item=Scattergun|name=Rocket Launcher}}

Latest revision as of 10:54, 1 April 2024

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.
exactrate
Optional. Provides a tooltip on rate with a rate that factors in unusual drops.
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|exactrate=0.99|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