Template:Inventory: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(equipped defaults to no now)
m (change 'equipped' > 'yes' in docs)
Line 25: Line 25:




<code><nowiki>{{inventory|laser pistol|2|equipped}}</nowiki></code>
<code><nowiki>{{inventory|laser pistol|2|yes}}</nowiki></code>


Character is carrying 2 laser pistols that are both equipped.
Character is carrying 2 laser pistols that are both equipped.
</noinclude>
</noinclude>

Revision as of 16:10, 13 August 2019

This template defines the table "Inventory". View table.

Template for inventory items that a Character is carrying. Meant for use in the Character template.

1st argument item name. use string, it will turn it into a link using Template:favilink.
2nd argument quantity. defaults to 1
3rd argument is the item equipped? Enter yes here to indicate that the item is equipped (used for Cargo storage).

Examples

{{inventory|hypertractor}}

Character is carrying 1 hypertractor that is not equipped.


{{inventory|ulnar stimulators|2}}

Character is carrying 2 ulnar stimulators that are not equipped.


{{inventory|laser pistol|2|yes}}

Character is carrying 2 laser pistols that are both equipped.