Template:Sandbox/User:Illuminatiswag: Difference between revisions

mNo edit summary
(reverting back to)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#invoke:CargoQuery
<includeonly>{{#invoke:CargoQuery
|main
|main
|tables=GeneralData=GD
|tables=Characters=C, GeneralData=GD
|where=PlainName LIKE "%{{{1}}}"
|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.ObjectID ASC
|order by= GD.PlainName ASC
}}</includeonly><noinclude>
}}</includeonly><noinclude>
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]].
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|gilded marble}}</pre>
<pre>{{Sandbox/User:Illuminatiswag|pattern=%oven}}</pre>
This pulls data from the various gilded marbles from the different sultanates.
This pulls data from the various ovens.


Output:
Output:
{{Sandbox/User:Illuminatiswag|oven}}
{{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