User:Teamtoto/Sandbox: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#invoke:Sandbox/User:Teamtoto/LuaModule|test}}
<!--{{Teamtoto/EncounterTable|roll=each
<!--{{Teamtoto/EncounterTable|roll=each
|{{EncounterTable/Row|weight=95|table=Artifact 0C}}
|{{EncounterTable/Row|weight=95|table=Artifact 0C}}
|{{EncounterTable/Row|weight=5|table=Artifact 0R}}
|{{EncounterTable/Row|weight=5|table=Artifact 0R}}
}}
}}
{{#invoke:CargoQuery| main
{{#invoke:CargoQuery| main
| tables = GeneralData=GD, Characters = C, CreatureFactions = CF
| tables = GeneralData=GD, Characters = C, CreatureFactions = CF
Line 18: Line 18:
| columns = 2
| columns = 2
}}
}}
{{#invoke:cargo_query|main
| table=Factions=F
| fields = FLOOR(5)= mintier, FLOOR(7)= maxtier, F._pageName=faction
| template = possible cultists
| delimiter = </br>
|where = F.Old="1" AND IsVisible="1"
}}-->
{{#invoke:CargoQuery|main
{{#invoke:CargoQuery|main
|table=Anatomies=A
| tables=GeneralData=GD, _pageData=PD
|fields=Name
| 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=,&nbsp;
| template=favilink format
|format = table
| format = ul
| limit = 1000
| columns = 2
}}
}}
TODO: concat laterality and include child stuff, format it prettier?
{{#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
}}-->