Difference between revisions of "Template:Slots"
Jump to navigation
Jump to search
old>Phoe nixx (template creation) |
m (3 revisions imported) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>data-sort-value="{{#expr:{{{1}}}*{{{2}}}}}" | {{{1}}}x{{{2}}}</includeonly><noinclude>{{doc}} | <includeonly>data-sort-value="{{#expr:{{{1}}}*{{{2}}}}},{{{1}}}" | {{{1}}}{{x}}{{{2}}}</includeonly><noinclude>{{doc}} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 21:16, 21 November 2021
Documentation
[purge]
{{slots}}
used to display in a table cell how much does inventory slots an item occupy, also setting the total number of slots as the sort key.
Usage
{{slots}}
takes two unnamed parameters, in order:
- Width
- Height
Example
{| class="sortable" width="45%" border="1px solid" style="text-align: center; margin: auto," ! width="3%" | Item ! width="2%" | {{abbr|Inv. slots|Width × Height}} ! width="2%" data-sort-type="number" | Price ! width="10%" | Description |- |'''[[Agate]]''' | {{slots|1|1}} | 50 | Common folk belive agate to bring good luck. It's often used to make cheap jewelry. |- |'''[[Bear Pelt]]''' | {{slots|4|3}} | 500 | Going after a bear and living to share the tale is quite a feat. This hide makes for an impressive hunting trophy. |- |}
Item | Inv. slots | Price | Description |
---|---|---|---|
Agate | 1×1 | 50 | Common folk belive agate to bring good luck. It's often used to make cheap jewelry. |
Bear Pelt | 4×3 | 500 | Going after a bear and living to share the tale is quite a feat. This hide makes for an impressive hunting trophy. |