Template:Sandbox/User:Illuminatiswag: Difference between revisions

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>