Template:Sandbox/User:Illuminatiswag: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>{{#invoke:CargoQuery
<includeonly>{{#invoke:CargoQuery
|main
|main
|tables=Characters=C, GeneralData=GD
|tables=GeneralData=GD
|join=C.ObjectID=GD.ObjectID
|where=PlainName LIKE "%{{{1}}}"
|where=GD.PlainName LIKE "{{{1}}}%"
|fields = {{favilink format args}}, Description, DisplayName, PlainName
|fields = {{favilink format args}}, C.Description=Description, DisplayName, PlainName, HP, AV, DV
|template=Sandbox/User:Illuminatiswag/Row
|template=Sandbox/User:Illuminatiswag/Row
|order by= GD.ObjectID ASC
|order by= GD.ObjectID ASC
Line 14: Line 13:


Output:
Output:
{{Sandbox/User:Illuminatiswag|gilded marble}}
{{Sandbox/User:Illuminatiswag|oven}}
[[Category:Query Templates]]
[[Category:Query Templates]]
</noinclude>
</noinclude>

Revision as of 13:26, 24 August 2022

Returns a shared table between all "characters" (this includes walls) with the same name prefix. There is only one unnamed parameter which is the shared ObjectID the characters share. The rows are formatted using Template:Sandbox/User:IlluminatiSwag/Row.

Usage

{{Sandbox/User:Illuminatiswag|gilded marble}}

This pulls data from the various gilded marbles from the different sultanates.

Output:

HP

♥ {{{HP}}}

AV

♦ {{{AV}}}

DV

○ {{{DV}}}

Crystal oven

Warmth radiates from the crackling fire of the round crystaline oven, and with it comes the smell of cooling static. Curiously, there are no prepared meal ingredients here.

Perfect
HP

♥ {{{HP}}}

AV

♦ {{{AV}}}

DV

○ {{{DV}}}

HP

♥ {{{HP}}}

AV

♦ {{{AV}}}

DV

○ {{{DV}}}

HP

♥ {{{HP}}}

AV

♦ {{{AV}}}

DV

○ {{{DV}}}

HP

♥ {{{HP}}}

AV

♦ {{{AV}}}

DV

○ {{{DV}}}

HP

♥ {{{HP}}}

AV

♦ {{{AV}}}

DV

○ {{{DV}}}