|
|
Line 1: |
Line 1: |
| <noinclude>{{#cargo_declare:_table=Inventory|Item=String|Quantity=String|Equipped=Boolean|Chance=Integer}}[[Category:Cargo Store Templates]]</noinclude><includeonly>{{#cargo_store:_table=Inventory|Item={{ID to page|{{{1|}}}}}|Quantity={{{2|1}}}|Equipped={{{3|no}}}|Chance={{{4|100}}}}}<div class="qud-inventory-item"><div class="qud-inv-favilink-wrapper"><!-- BEGIN qud-inv-favilink-wrapper | | <noinclude>{{#cargo_declare:_table=Inventory|Item=String|Quantity=String|Equipped=Boolean|Chance=Integer}}[[Category:Cargo Store Templates]]</noinclude><includeonly>{{#cargo_store:_table=Inventory|Item={{ID to page|{{{1|}}}}}|Quantity={{{2|1}}}|Equipped={{{3|no}}}|Chance={{{4|100}}}}}{{#invoke:Inventory| main |{{{1|}}}|{{{2|1}}}|{{{3|no}}}|{{{4|100}}}}}</includeonly><noinclude> |
| | |
| -->{{favilink|{{{1}}}|displayname-tooltip-override}}<!--
| |
| | |
| BEGIN weapon stats (damage/pv)
| |
| | |
| --><span class="qud-inline-weap-stats"><!--
| |
| | |
| -->{{#ifeq:
| |
| | |
| {{#cargo_query:tables=ItemsTable,GeneralData|join on =ItemsTable._pageName=GeneralData._pageName|fields=CONCAT(Vibro)|where=GeneralData.PlainName='{{{1}}}' AND Damage <> ''|default=0|no html}}
| |
| | |
| |1
| |
| |{{#vardefine:pv|≈}}
| |
| | |
| }}{{#ifeq: | |
| | |
| {{#varexists:pv}}
| |
| | |
| |1
| |
| |{{#cargo_query:tables=ItemsTable,GeneralData|join on =ItemsTable._pageName=GeneralData._pageName|fields=CONCAT('{{heart}}','<span class="qud-inline-damage">',Damage,'</span>',' {{PV}}','<span class="qud-inline-pv">','{{#var:pv}}','</span>')=A|where=GeneralData.PlainName='{{{1}}}' AND Damage <> ''|default=}}
| |
| | |
| |{{#cargo_query:tables=ItemsTable,GeneralData|join on =ItemsTable._pageName=GeneralData._pageName|fields=CONCAT('{{heart}}','<span class="qud-inline-damage">',Damage,'</span>',' {{PV}}','<span class="qud-inline-pv">',BasePV,'<span style="color:#155352;">/',MaxPV,'</span></span>')=A|where=GeneralData.PlainName='{{{1}}}' AND Damage <> ''|default=}}
| |
| | |
| }}<!-- | |
| | |
| --></span><!-- END weapon stats
| |
| | |
| --></div><!-- END qud-inv-favilink-wrapper
| |
| | |
| --><span class="qud-item-qty">x{{{2|1}}}<!-- ITEM QUANTITY
| |
| | |
| --><span class="qud-item-chance chance-{{{4|100}}}">({{{4|100}}}%)</span><!-- ITEM CHANCE
| |
| | |
| --></span></div></includeonly><noinclude>
| |
|
| |
|
| Template for inventory items that a Character is carrying. Meant for use in the <code>Character</code> template. | | Template for inventory items that a Character is carrying. Meant for use in the <code>Character</code> template. |