Difference between revisions of "Template:Crate series table/row/Sandbox"
m (Fully commented/documented. Final form (I hope)) |
GrampaSwood (talk | contribs) |
||
(One intermediate revision by one other user not shown) | |||
Line 10: | Line 10: | ||
Link target (can be overridden by {{{link}}}) | Link target (can be overridden by {{{link}}}) | ||
− | -->[[{{{link|{{{item}}}{{if lang | + | -->[[{{#if:{{{link|}}}|{{{link}}}|{{{item}}}{{if lang}}}}|<!-- |
Set the link color to white when grade is present, for readability | Set the link color to white when grade is present, for readability | ||
Line 16: | Line 16: | ||
Link text (can be overridden by {{{name}}}) | Link text (can be overridden by {{{name}}}) | ||
− | -->{{{name|{{item name|{{{item | + | -->{{#if:{{{name|}}}|{{{name}}}|{{item name|{{{item}}}}}}}</span>]] |
| style="text-align:right;" | {{#if:{{{rate|}}}|{{Decimal Align|NUM={{{rate}}}|P=2|POSTFIX=%}}}}</includeonly><noinclude> | | style="text-align:right;" | {{#if:{{{rate|}}}|{{Decimal Align|NUM={{{rate}}}|P=2|POSTFIX=%}}}}</includeonly><noinclude> | ||
{{Doc begin}} | {{Doc begin}} | ||
Line 47: | Line 47: | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
− | ! colspan="2" style="background:#F3A957;" | | + | ! colspan="2" style="background:#F3A957;" | Table name |
{{Crate series table/row/Sandbox|item=Shotgun|rate=1|grade=Civilian}} | {{Crate series table/row/Sandbox|item=Shotgun|rate=1|grade=Civilian}} | ||
{{Crate series table/row/Sandbox|item=Shotgun|rate=1|grade=Freelance}} | {{Crate series table/row/Sandbox|item=Shotgun|rate=1|grade=Freelance}} |
Latest revision as of 19:40, 20 November 2024
Documentation for Crate series table/row/Sandbox
Renders a single row in the {{Crate series table/Sandbox}}
.
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/Sandbox|item=Shotgun|rate=1|grade=Civilian}} {{Crate series table/row/Sandbox|item=Shotgun|rate=1|grade=Freelance}} {{Crate series table/row/Sandbox|item=Shotgun|rate=1|grade=Mercenary}} {{Crate series table/row/Sandbox|item=Shotgun|rate=1|grade=Commando}} {{Crate series table/row/Sandbox|item=Shotgun|rate=1|grade=Assassin}} {{Crate series table/row/Sandbox|item=Shotgun|rate=1|grade=Elite}} {{Crate series table/row/Sandbox|item=Scattergun}} {{Crate series table/row/Sandbox|item=Scattergun|name=Rocket Launcher}} {{Crate series table/row/Sandbox|item=Scattergun|name=Stickybomb Launcher|link=Stickybomb Launcher}}
Table name
| |||
---|---|---|---|
Shotgun |
| ||
Shotgun |
| ||
Shotgun |
| ||
Shotgun |
| ||
Shotgun |
| ||
Shotgun |
| ||
Scattergun |
| ||
Rocket Launcher |
| ||
Stickybomb Launcher |