Template:Walls Navbox: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(Group by wall category)
m (Fix typo in "holographic")
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{Navbox
<noinclude>
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.
 
Another optional parameter is the <code>align</code> parameter. It is set to "center" by default, but can be changed to "left" if desired.
 
== Example: ==
<code><nowiki>{{Walls Navbox|category=general}}</nowiki></code>
 
== Result: ==
{{Walls Navbox|category=general}}
 
[[Category:Navigation]]
 
</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|Holographic Walls]]
                        | force = [[:Category:Force Fields|Force Fields]]
                        | [[:Category:Walls|Walls]]
                      }}
| below      = {{#ifeq:{{PAGENAME}}|Walls||{{#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 7: Line 47:
| groupstyle = background:rgba(6,28,23,0.9); font-family:Source Code Pro;
| groupstyle = background:rgba(6,28,23,0.9); font-family:Source Code Pro;
| innerstyle = font-family:Source Code Pro;
| innerstyle = font-family:Source Code Pro;
| liststyle  = text-align:{{{align|center}}};


| 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  
   | fields    = CONCAT('{{(}}favilink id{{!}}',GD.ObjectID,'{{)}}')=Page
   | fields    = CONCAT('{{(}}favilink id{{!}}',GD.ObjectID,'{{)}}')=Page
   | where    = GD.Categories = 'Walls'
   | where    = GD.Categories = 'Walls' AND GD._pageNamespace = '0'
   | format    = list
   | format    = list
   | order by  = GD.PlainName
   | order by  = GD.PlainName
   | delimiter = &nbsp;<span style="color:#155352;">-</span>&nbsp;</span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span>
   | delimiter = &nbsp;<span style="color:#155352;">-</span>&nbsp;</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  
   | fields    = CONCAT('{{(}}favilink id{{!}}',GD.ObjectID,'{{)}}')=Page
   | fields    = CONCAT('{{(}}favilink id{{!}}',GD.ObjectID,'{{)}}')=Page
   | where    = GD.Categories = 'Fences'
   | where    = GD.Categories = 'Fences' AND GD._pageNamespace = '0'
   | format    = list
   | format    = list
   | order by  = GD.PlainName
   | order by  = GD.PlainName
   | delimiter = &nbsp;<span style="color:#155352;">-</span>&nbsp;</span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span>
   | delimiter = &nbsp;<span style="color:#155352;">-</span>&nbsp;</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  
   | fields    = CONCAT('{{(}}favilink id{{!}}',GD.ObjectID,'{{)}}')=Page
   | fields    = CONCAT('{{(}}favilink id{{!}}',GD.ObjectID,'{{)}}')=Page
   | where    = GD.Categories = 'Vents'
   | where    = GD.Categories = 'Vents' AND GD._pageNamespace = '0'
   | format    = list
   | format    = list
   | order by  = GD.PlainName
   | order by  = GD.PlainName
   | delimiter = &nbsp;<span style="color:#155352;">-</span>&nbsp;</span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span>
   | delimiter = &nbsp;<span style="color:#155352;">-</span>&nbsp;</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  
   | fields    = CONCAT('{{(}}favilink id{{!}}',GD.ObjectID,'{{)}}')=Page
   | fields    = CONCAT('{{(}}favilink id{{!}}',GD.ObjectID,'{{)}}')=Page
   | where    = GD.Categories = 'Glass Walls'
   | where    = GD.Categories = 'Glass Walls' AND GD._pageNamespace = '0'
   | format    = list
   | format    = list
   | order by  = GD.PlainName
   | order by  = GD.PlainName
   | delimiter = &nbsp;<span style="color:#155352;">-</span>&nbsp;</span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span>
   | delimiter = &nbsp;<span style="color:#155352;">-</span>&nbsp;</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  
   | fields    = CONCAT('{{(}}favilink id{{!}}',GD.ObjectID,'{{)}}')=Page
   | fields    = CONCAT('{{(}}favilink id{{!}}',GD.ObjectID,'{{!}}{{(}}lcfirst:',GD._pageName,'{{)}}{{)}}')=Page
   | where    = GD.Categories = 'Tech Walls'
   | where    = GD.Categories = 'Tech Walls' AND GD._pageNamespace = '0'
   | format    = list
   | format    = list
   | order by  = GD.PlainName
   | order by  = GD.PlainName
   | delimiter = &nbsp;<span style="color:#155352;">-</span>&nbsp;</span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span>
   | delimiter = &nbsp;<span style="color:#155352;">-</span>&nbsp;</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  
   | fields    = CONCAT('{{(}}favilink id{{!}}',GD.ObjectID,'{{)}}')=Page
   | fields    = CONCAT('{{(}}favilink id{{!}}',GD.ObjectID,'{{)}}')=Page
   | where    = GD.Categories = 'Gemstone Walls'
   | where    = GD.Categories = 'Gemstone Walls' AND GD._pageNamespace = '0'
   | format    = list
   | format    = list
   | order by  = GD.PlainName
   | order by  = GD.PlainName
   | delimiter = &nbsp;<span style="color:#155352;">-</span>&nbsp;</span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span>
   | delimiter = &nbsp;<span style="color:#155352;">-</span>&nbsp;</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  
   | fields    = CONCAT('{{(}}favilink id{{!}}',GD.ObjectID,'{{)}}')=Page
   | fields    = CONCAT('{{(}}favilink id{{!}}',GD.ObjectID,'{{!}}{{(}}lcfirst:',GD._pageName,'{{)}}{{)}}')=Page
   | where    = GD.Categories = 'Sultan Walls'
   | where    = GD.Categories = 'Sultan Walls' AND GD._pageNamespace = '0'
   | format    = list
   | format    = list
   | order by  = GD.PlainName
   | order by  = GD.PlainName
   | delimiter = &nbsp;<span style="color:#155352;">-</span>&nbsp;</span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span>
   | delimiter = &nbsp;<span style="color:#155352;">-</span>&nbsp;</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  
   | fields    = CONCAT('{{(}}favilink id{{!}}',GD.ObjectID,'{{)}}')=Page
   | fields    = CONCAT('{{(}}favilink id{{!}}',GD.ObjectID,'{{!}}{{(}}lcfirst:',GD._pageName,'{{)}}{{)}}')=Page
   | where    = GD.Categories = 'Murals'
   | where    = GD.Categories = 'Murals' AND GD._pageNamespace = '0'
   | format    = list
   | format    = list
   | order by  = GD.PlainName
   | order by  = GD.PlainName
   | delimiter = &nbsp;<span style="color:#155352;">-</span>&nbsp;</span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span>
   | delimiter = &nbsp;<span style="color:#155352;">-</span>&nbsp;</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  
   | fields    = CONCAT('{{(}}favilink id{{!}}',GD.ObjectID,'{{)}}')=Page
   | fields    = CONCAT('{{(}}favilink id{{!}}',GD.ObjectID,'{{)}}')=Page
   | where    = GD.Categories = 'Holographic Walls'
   | where    = GD.Categories = 'Holographic Walls' AND GD._pageNamespace = '0'
   | format    = list
   | format    = list
   | order by  = GD.PlainName
   | order by  = GD.PlainName
   | delimiter = &nbsp;<span style="color:#155352;">-</span>&nbsp;</span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span>
   | delimiter = &nbsp;<span style="color:#155352;">-</span>&nbsp;</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  
   | fields    = CONCAT('{{(}}favilink id{{!}}',GD.ObjectID,'{{)}}')=Page
   | fields    = CONCAT('{{(}}favilink id{{!}}',GD.ObjectID,'{{)}}')=Page
   | where    = GD.Categories = 'Force Fields'
   | where    = GD.Categories = 'Force Fields' AND GD._pageNamespace = '0'
   | format    = list
   | format    = list
   | order by  = GD.PlainName
   | order by  = GD.PlainName
   | delimiter = &nbsp;<span style="color:#155352;">-</span>&nbsp;</span><span style="display:inline-block;line-height:2.1em;">|intro=<span style="display:inline-block;line-height:2.1em;">|outro=</span>
   | delimiter = &nbsp;<span style="color:#155352;">-</span>&nbsp;</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><noinclude>
}}</includeonly>
{{Cleanup|This is only a draft template. It isn't ready to use and will likely change / be subdivided.}}
 
Navbox listing walls by relative strength (HP).
 
== Example: ==
<code><nowiki>{{Walls Navbox}}</nowiki></code>
 
== Result: ==
 
{{Walls Navbox}}
 
[[Category:Navigation]]
</noinclude>

Latest revision as of 05:38, 11 December 2023

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.

Another optional parameter is the align parameter. It is set to "center" by default, but can be changed to "left" if desired.

Example:

{{Walls Navbox|category=general}}

Result: