Difference between revisions of "Template:Slots"
Jump to navigation
Jump to search
old>Phoe nixx (template creation) |
old>Phoe nixx m |
||
| 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> | ||
Revision as of 15:27, 14 May 2020
{{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 | 1x1 | 50 | Common folk belive agate to bring good luck. It's often used to make cheap jewelry. |
| Bear Pelt | 4x3 | 500 | Going after a bear and living to share the tale is quite a feat. This hide makes for an impressive hunting trophy. |