Difference between revisions of "Template:Crate series table/row/doc"
(Add examples) |
GrampaSwood (talk | contribs) |
||
(2 intermediate revisions by 2 users not shown) | |||
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}}. | ||
− | + | Renders a single row in the {{tl|Crate series table}}. | |
− | {{Crate series table | ||
− | |||
− | | | + | === Parameters === |
− | | drops | + | :; ''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. | ||
+ | :; ''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 == | |
− | + | <pre> | |
− | + | {{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}} |
− | + | </pre> | |
− | | | + | {| class="wikitable sortable" |
− | | | + | |- |
− | + | ! colspan="2" style="background:#F3A957;" | Table name | |
− | | | + | {{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 | + | {{Crate series table/row|item=Scattergun|name=Rocket Launcher}} |
− | | | + | {{Crate series table/row|item=Scattergun|name=Stickybomb Launcher|link=Stickybomb Launcher}} |
− | + | |} | |
− | | | ||
− | | | ||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | |||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | |||
− | |||
− | | | ||
− | |||
− | | | ||
− | |||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | |||
− | | | ||
− | | | ||
− | |||
[[Category:Template documentation]] | [[Category:Template documentation]] |
Latest revision as of 19:41, 20 November 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}}
Table name
| |||
---|---|---|---|
Shotgun |
| ||
Shotgun |
| ||
Shotgun |
| ||
Shotgun |
| ||
Shotgun |
| ||
Shotgun |
| ||
Scattergun |
| ||
Rocket Launcher |
| ||
Stickybomb Launcher |