Template:Grenade Query: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(Created page with "<includeonly><table class="wikitable sortable"> <tr><th>Grenade</th><th>Bits</th><th>Tier</th><th>Commerce</th><th>Complexity</th><th>Tinker Tier</th><th>Can Build/Disassemble...")
 
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><table class="wikitable sortable">
<includeonly>{{#invoke:CargoQuery
<tr><th>Grenade</th><th>Bits</th><th>Tier</th><th>Commerce</th><th>Complexity</th><th>Tinker Tier</th><th>Can Build/Disassemble</th></tr>
{{#invoke:CargoQuery
|main
|main
|tables=ArtifactData=A, GeneralData=GD
|tables=ArtifactData=A, GeneralData=GD
|join=GD.ObjectID=A.ObjectID
|join=GD.ObjectID=A.ObjectID
|where=GD.ObjectID LIKE "{{{1}}}%"
|where=GD.ObjectID LIKE "{{{1}}}%"
|fields = {{favilink format args}}, Bits, TinkerTier, Tier,Commerce=Value, Complexity, CanBuild,CanDisassemble
|fields = {{favilink format args}}, Bits, TinkerTier, Tier,Commerce=Value, Complexity, Description, DisplayName, PlainName
|template=Grenade Query/Row
|template=Grenade Query/Row
|order= GD.ObjectID ASC
|order= GD.ObjectID ASC
}}
}}</includeonly><noinclude>
</table>
</includeonly><noinclude>
Returns a shared grenade table between all the mks. There is only one unnamed parameter which is the shared ObjectID the grenades share. The rows are formatted using [[Template:Grenade Query/Row]].
Returns a shared grenade table between all the mks. There is only one unnamed parameter which is the shared ObjectID the grenades share. The rows are formatted using [[Template:Grenade Query/Row]].
== Usage ==
== Usage ==

Latest revision as of 21:13, 15 December 2021

Returns a shared grenade table between all the mks. There is only one unnamed parameter which is the shared ObjectID the grenades share. The rows are formatted using Template:Grenade Query/Row.

Usage

{{Grenade Query|GravityGrenade}}

This pulls data from GravityGrenade1, GravityGrenade2, GravityGrenade3.

Output:

$40

<012>

Tier

4

Complexity

1

Tinker Tier

Tinker I

gravity grenade

A cast iron bulb is clamped by a lever with a pull ring. It's etched with a boquet of inward-facing arrows.

Perfect

$60

<024>

Tier

6

Complexity

1

Tinker Tier

Tinker II

$80

<356>

Tier

8

Complexity

1

Tinker Tier

Tinker II