Template:Sandbox/User:Illuminatiswag: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
mNo edit summary
(reverting back to)
 
Line 1: Line 1:
<includeonly>{{#invoke:CargoQuery
<includeonly>{{#invoke:CargoQuery
|main
|main
|tables=GeneralData=GD
|tables=Characters=C, GeneralData=GD
|where=PlainName LIKE "{{{pattern}}}"
|join=C.ObjectID=GD.ObjectID
|fields = {{favilink format args}}, Description, DisplayName, PlainName
|where=GD.PlainName LIKE "{{{pattern}}}"
|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.PlainName ASC
|order by= GD.PlainName ASC
}}</includeonly><noinclude>
}}</includeonly><noinclude>
Returns a shared table between all objects whose name matches the input pattern. The rows are formatted using [[Template:Sandbox/User:IlluminatiSwag/Row]].
Returns a shared table between all "characters" (this includes anything that can be animated) 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 ==
== Usage ==
<pre>{{Sandbox/User:Illuminatiswag|carved stone%}}</pre>
<pre>{{Sandbox/User:Illuminatiswag|pattern=%oven}}</pre>
This pulls data from the various carved stones from the different sultanates.
This pulls data from the various ovens.


Output:
Output:
{{Sandbox/User:Illuminatiswag|pattern=carved stone%}}
{{Sandbox/User:Illuminatiswag|pattern=%oven}}
[[Category:Query Templates]]
[[Category:Query Templates]]
</noinclude>
</noinclude>

Latest revision as of 22:24, 24 August 2022

Returns a shared table between all "characters" (this includes anything that can be animated) 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|pattern=%oven}}

This pulls data from the various ovens.

Output:

HP

♥ 1200

AV

♦ 2

DV

○ -10

bone oven

Warmth radiates from the crackling fire of the round bone oven, and with it comes the smell of leavened pastry, sweet bananas, and warm skulk.

Perfect
HP

♥ 1200

AV

♦ 2

DV

○ -10

HP

♥ 1200

AV

♦ 2

DV

○ -10

HP

♥ 1200

AV

♦ 2

DV

○ -10

HP

♥ 1200

AV

♦ 2

DV

○ -10

HP

♥ 1200

AV

♦ 2

DV

○ -10