Template:Walls Navbox: Difference between revisions
Jump to navigation
Jump to search
m (title tweaks) |
(update to support category filtering) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
Navbox listing walls (and wall-like-objects) by category. Each category is sorted by name. | Navbox listing walls (and wall-like-objects) by category. Each category is sorted by name. | ||
Optionally, you may specify one of these values in the <code>category</code> parameter to limit this navbox to walls of the specified type: | |||
* general | |||
* fences | |||
* vents | |||
* glass | |||
* tech | |||
* gemstone | |||
* sultan | |||
* murals | |||
* holographic | |||
* force | |||
This is recommended in most cases because the full list of all walls is very long. | |||
== Example: == | == Example: == | ||
<code><nowiki>{{Walls Navbox}}</nowiki></code> | <code><nowiki>{{Walls Navbox|category=general}}</nowiki></code> | ||
== Result: == | == Result: == | ||
{{Walls Navbox|category=general}} | |||
[[Category:Navigation]] | |||
</noinclude><includeonly>{{Navbox | </noinclude><includeonly>{{Navbox | ||
| name = Walls Navbox | | name = Walls Navbox | ||
| title = List of [[:Category:Walls|Walls]] | | title = List of {{#switch: {{{category|all}}} | ||
| general = [[:Category:Walls|General Walls]] | |||
| fences = [[:Category:Fences|Fences]] | |||
| vents = [[:Category:Vents|Vents]] | |||
| glass = [[:Category:Glass Walls|Glass Walls]] | |||
| tech = [[:Category:Tech Walls|Tech Walls]] | |||
| gemstone = [[:Category:Gemstone Walls|Gemstone Walls]] | |||
| sultan = [[:Category:Sultan Walls|Sultan Walls]] | |||
| murals = [[:Category:Murals|Murals]] | |||
| holographic = [[:Category:Holographic Walls|Holograhpic Walls]] | |||
| force = [[:Category:Force Fields|Force Fields]] | |||
| [[:Category:Walls|Walls]] | |||
}} | |||
| below = {{#ifeq:{{{category|all}}}|all||<div style="text-align:right;font-size:100%; font-weight:bold; font-family:Source Code Pro; color:#155352;"><span style="color:#155352;">see also:</span> [[Walls|full list of walls]]</div>}} | |||
| listclass = hlist | | listclass = hlist | ||
| state = {{{state|collapsed}}} | | state = {{{state|collapsed}}} | ||
Line 19: | Line 46: | ||
| innerstyle = font-family:Source Code Pro; | | innerstyle = font-family:Source Code Pro; | ||
| group1 = Walls | | group1 = {{#ifeq:{{{category|}}}|general||Walls}} | ||
| list1 = {{#cargo_query: | | list1 = {{#ifeq:{{{category|general}}}|general|{{#cargo_query: | ||
| tables = Characters=C, GeneralData=GD | | tables = Characters=C, GeneralData=GD | ||
| join on = C.ObjectID=GD.ObjectID | | join on = C.ObjectID=GD.ObjectID | ||
Line 29: | Line 56: | ||
| delimiter = <span style="color:#155352;">-</span> </span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span> | | delimiter = <span style="color:#155352;">-</span> </span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span> | ||
| default = | | default = | ||
}} | }}}} | ||
| group1style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | | group1style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | ||
| list1style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | | list1style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | ||
| group2 = Fences | | group2 = {{#ifeq:{{{category|}}}|fences||Fences}} | ||
| list2 = {{#cargo_query: | | list2 = {{#ifeq:{{{category|fences}}}|fences|{{#cargo_query: | ||
| tables = Characters=C, GeneralData=GD | | tables = Characters=C, GeneralData=GD | ||
| join on = C.ObjectID=GD.ObjectID | | join on = C.ObjectID=GD.ObjectID | ||
Line 43: | Line 70: | ||
| delimiter = <span style="color:#155352;">-</span> </span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span> | | delimiter = <span style="color:#155352;">-</span> </span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span> | ||
| default = | | default = | ||
}} | }}}} | ||
| group2style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | | group2style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | ||
| list2style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | | list2style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | ||
| group3 = Vents | | group3 = {{#ifeq:{{{category|}}}|vents||Vents}} | ||
| list3 = {{#cargo_query: | | list3 = {{#ifeq:{{{category|vents}}}|vents|{{#cargo_query: | ||
| tables = Characters=C, GeneralData=GD | | tables = Characters=C, GeneralData=GD | ||
| join on = C.ObjectID=GD.ObjectID | | join on = C.ObjectID=GD.ObjectID | ||
Line 57: | Line 84: | ||
| delimiter = <span style="color:#155352;">-</span> </span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span> | | delimiter = <span style="color:#155352;">-</span> </span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span> | ||
| default = | | default = | ||
}} | }}}} | ||
| group3style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | | group3style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | ||
| list3style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | | list3style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | ||
| group4 = Glass Walls | | group4 = {{#ifeq:{{{category|}}}|glass||Glass Walls}} | ||
| list4 = {{#cargo_query: | | list4 = {{#ifeq:{{{category|glass}}}|glass|{{#cargo_query: | ||
| tables = Characters=C, GeneralData=GD | | tables = Characters=C, GeneralData=GD | ||
| join on = C.ObjectID=GD.ObjectID | | join on = C.ObjectID=GD.ObjectID | ||
Line 71: | Line 98: | ||
| delimiter = <span style="color:#155352;">-</span> </span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span> | | delimiter = <span style="color:#155352;">-</span> </span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span> | ||
| default = | | default = | ||
}} | }}}} | ||
| group4style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | | group4style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | ||
| list4style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | | list4style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | ||
| group5 = Tech Walls | | group5 = {{#ifeq:{{{category|}}}|tech||Tech Walls}} | ||
| list5 = {{#cargo_query: | | list5 = {{#ifeq:{{{category|tech}}}|tech|{{#cargo_query: | ||
| tables = Characters=C, GeneralData=GD | | tables = Characters=C, GeneralData=GD | ||
| join on = C.ObjectID=GD.ObjectID | | join on = C.ObjectID=GD.ObjectID | ||
Line 85: | Line 112: | ||
| delimiter = <span style="color:#155352;">-</span> </span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span> | | delimiter = <span style="color:#155352;">-</span> </span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span> | ||
| default = | | default = | ||
}} | }}}} | ||
| group5style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | | group5style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | ||
| list5style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | | list5style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | ||
| group6 = Gemstone Walls | | group6 = {{#ifeq:{{{category|}}}|gemstone||Gemstone Walls}} | ||
| list6 = {{#cargo_query: | | list6 = {{#ifeq:{{{category|gemstone}}}|gemstone|{{#cargo_query: | ||
| tables = Characters=C, GeneralData=GD | | tables = Characters=C, GeneralData=GD | ||
| join on = C.ObjectID=GD.ObjectID | | join on = C.ObjectID=GD.ObjectID | ||
Line 99: | Line 126: | ||
| delimiter = <span style="color:#155352;">-</span> </span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span> | | delimiter = <span style="color:#155352;">-</span> </span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span> | ||
| default = | | default = | ||
}} | }}}} | ||
| group6style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | | group6style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | ||
| list6style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | | list6style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | ||
| group7 = Sultan Walls | | group7 = {{#ifeq:{{{category|}}}|sultan||Sultan Walls}} | ||
| list7 = {{#cargo_query: | | list7 = {{#ifeq:{{{category|sultan}}}|sultan|{{#cargo_query: | ||
| tables = Characters=C, GeneralData=GD | | tables = Characters=C, GeneralData=GD | ||
| join on = C.ObjectID=GD.ObjectID | | join on = C.ObjectID=GD.ObjectID | ||
Line 113: | Line 140: | ||
| delimiter = <span style="color:#155352;">-</span> </span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span> | | delimiter = <span style="color:#155352;">-</span> </span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span> | ||
| default = | | default = | ||
}} | }}}} | ||
| group7style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | | group7style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | ||
| list7style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | | list7style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | ||
| group8 = Murals | | group8 = {{#ifeq:{{{category|}}}|murals||Murals}} | ||
| list8 = {{#cargo_query: | | list8 = {{#ifeq:{{{category|murals}}}|murals|{{#cargo_query: | ||
| tables = Characters=C, GeneralData=GD | | tables = Characters=C, GeneralData=GD | ||
| join on = C.ObjectID=GD.ObjectID | | join on = C.ObjectID=GD.ObjectID | ||
Line 127: | Line 154: | ||
| delimiter = <span style="color:#155352;">-</span> </span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span> | | delimiter = <span style="color:#155352;">-</span> </span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span> | ||
| default = | | default = | ||
}} | }}}} | ||
| group8style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | | group8style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | ||
| list8style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | | list8style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | ||
| group9 = Holographic Walls | | group9 = {{#ifeq:{{{category|}}}|holographic||Holographic Walls}} | ||
| list9 = {{#cargo_query: | | list9 = {{#ifeq:{{{category|holographic}}}|holographic|{{#cargo_query: | ||
| tables = Characters=C, GeneralData=GD | | tables = Characters=C, GeneralData=GD | ||
| join on = C.ObjectID=GD.ObjectID | | join on = C.ObjectID=GD.ObjectID | ||
Line 141: | Line 168: | ||
| delimiter = <span style="color:#155352;">-</span> </span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span> | | delimiter = <span style="color:#155352;">-</span> </span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span> | ||
| default = | | default = | ||
}} | }}}} | ||
| group9style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | | group9style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | ||
| list9style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | | list9style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | ||
| group10 = Force Fields | | group10 = {{#ifeq:{{{category|}}}|force||Force Fields}} | ||
| list10 = {{#cargo_query: | | list10 = {{#ifeq:{{{category|force}}}|force|{{#cargo_query: | ||
| tables = Characters=C, GeneralData=GD | | tables = Characters=C, GeneralData=GD | ||
| join on = C.ObjectID=GD.ObjectID | | join on = C.ObjectID=GD.ObjectID | ||
Line 155: | Line 182: | ||
| delimiter = <span style="color:#155352;">-</span> </span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span> | | delimiter = <span style="color:#155352;">-</span> </span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span> | ||
| default = | | default = | ||
}} | }}}} | ||
| group10style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | | group10style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | ||
| list10style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | | list10style = border-bottom:1px solid rgba(77,110,122,0.3);padding-bottom: 5px; | ||
}}</includeonly> | }}</includeonly> |
Revision as of 18:49, 14 September 2022
Navbox listing walls (and wall-like-objects) by category. Each category is sorted by name.
Optionally, you may specify one of these values in the category
parameter to limit this navbox to walls of the specified type:
- general
- fences
- vents
- glass
- tech
- gemstone
- sultan
- murals
- holographic
- force
This is recommended in most cases because the full list of all walls is very long.
Example:
{{Walls Navbox|category=general}}
Result: