User:Teamtoto/Sandbox: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!--{{#invoke:cargoQuery|main
{{#invoke:Sandbox/User:Teamtoto/LuaModule|test}}
| table=Factions=F
<!--{{Teamtoto/EncounterTable|roll=each
| fields = FLOOR(5)= mintier, FLOOR(7)= maxtier, F._pageName=faction
|{{EncounterTable/Row|weight=95|table=Artifact 0C}}
| template = possible cultists
|{{EncounterTable/Row|weight=5|table=Artifact 0R}}
| delimiter = </br>
}}
|where = F.Old="1" AND IsVisible="1"
{{#invoke:CargoQuery| main
}}-->
| tables = GeneralData=GD, Characters = C, CreatureFactions = CF
| join = C.ObjectID = GD.ObjectID, C.ObjectID = CF.ObjectID
| where = C.Demeanor = "aggressive" AND (C._pageNamespace= '0' OR C._pageNamespace = '10002')
|group by = GD.ObjectID
| fields = {{favilink format args}}
| default = {{Template Error|Creature level and faction}}
| one_to_many= CONCAT(' ([[', CF.Faction, ']])')=outro, C.ObjectID
| one_to_many_group=C.ObjectID
| one_to_many_sep=,
| template = favilink format
| format = ul
| columns = 2
}}
{{#invoke:CargoQuery|main
{{#invoke:CargoQuery|main
|table=Anatomies=A
| tables=GeneralData=GD, _pageData=PD
|fields=Name, CONCAT(Laterality, Type)=Limb
| join= GD._pageName=PD._pageName
|one_to_many=Type
| fields={{favilink format args}}
|one_to_many_group=Name
| where=PD._categories HOLDS "Liquid_Containers" AND GD._pageNamespace = "0"
|one_to_many_sep=,
| template=favilink format
|template=single query result
| format = ul
|intro={{(!}} class="wikitable"
| columns = 2
|outro={{!)}}
|limit=10
}}
}}
{{#invoke:CargoQuery|main
| tables=GeneralData=GD, PhysicalProperties=PP
| join =GD.ObjectID= PP.JoinKey
| fields={{favilink format args}}
| where=PP.Volume > 0 AND GD._pageNamespace = "0"
| template=favilink format
| format = ul
| columns = 2
}}-->