Template:Walls Navbox: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(update to support category filtering)
m (add alignment param)
Line 15: Line 15:


This is recommended in most cases because the full list of all walls is very long.
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: ==
== Example: ==
Line 20: Line 22:


== Result: ==
== Result: ==
{{Walls Navbox|category=general}}
{{Walls Navbox|category=general|align=left}}


[[Category:Navigation]]
[[Category:Navigation]]
Line 45: 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 = {{#ifeq:{{{category|}}}|general||Walls}}
| group1 = {{#ifeq:{{{category|}}}|general||Walls}}

Revision as of 19:03, 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.

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: