Template:BuildingsNav: Difference between revisions

Template page
(Use queries to generate most of the nav)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Special:PrefixIndex/Building/}}
{{#invoke:Navboxes|create|title=Buildings|type=building}}
 
{{Navbox
|title  = [[Buildings]]
 
|group1 = [[Buildings#1x1|1x1]]
|list1  =
{{#cargo_query:
tables=entity
|fields=entity.name, entity.luaId
|where=name LIKE "%1x1%" OR name LIKE "%Storage%"
|format=template
|template=NavboxIconLinkBuilding
|named args=yes
}}
 
|group2 = [[Buildings#2x1|2x1]]
|list2  =
{{#cargo_query:
tables=entity
|fields=entity.name
|where=name LIKE "%2x1%"
|format=template
|template=NavboxIconLinkBuilding
|named args=yes
}}
 
|group3 = [[Buildings#2x2|2x2]]
|list3  =
{{#cargo_query:
tables=entity
|fields=entity.name
|where=name LIKE "%2x2%"
|format=template
|template=NavboxIconLinkBuilding
|named args=yes
}}
 
 
|group4 = [[Buildings#3x2|3x2]]
|list4  =
{{#cargo_query:
tables=entity
|fields=entity.name
|where=name LIKE "%3x2%"
|format=template
|template=NavboxIconLinkBuilding
|named args=yes
}}
 
 
|group5 = [[Buildings#3x3|3x3]]
|list5  = {{NavboxIconLink|Command Center}}{{NavboxIconLink|Re-simulator}}{{NavboxIconLink|AMAC}}
 
|group6 = [[Buildings#Foundations|Foundations]]
|list6  =
{{#cargo_query:
tables=entity
|fields=entity.name
|where=name LIKE "%Foundation%"
|format=template
|template=NavboxIconLinkBuilding
|named args=yes
}}
 
|group7 = [[Buildings#Walls|Walls]]
|list7  =
{{#cargo_query:
tables=entity
|fields=entity.name
|where=name LIKE "%Wall%"
|format=template
|template=NavboxIconLinkBuilding
|named args=yes
}}
 
|group8 = [[Buildings#Others|Others]]
|list8  =
{{#cargo_query:
tables=entity
|fields=entity.name
|where=name LIKE "%Beacon%"
|format=template
|template=NavboxIconLinkBuilding
|named args=yes
}}{{NavboxIconLink|Explorables}}
 
|group9 = [[Buildings#Bugs|Bugs]]
|list9  =
{{#cargo_query:
tables=entity
|fields=entity.name
|where=name LIKE "%Bug%" OR name = "Giant Beast"
|format=template
|template=NavboxIconLinkBuilding
|named args=yes
}}{{NavboxIconLink|Explorables}}
 
}}

Latest revision as of 05:41, 13 August 2025