Template:NPC list

From Pillars of Eternity Wiki
Jump to: navigation, search

This template displays a nicely formatted list of all NPCs that share a given property.

The list is displayed in the following way:

  1. First all matching NPCs that have portraits, displayed as boxes showing the name and portrait.
  2. Then all matching NPCs that have screenshots but not portraits, displayed as boxes showing the name and screenshot — unless there are too many of them.
  3. Then all remaining matching NPCs shown as just their names.

Syntax

{{NPC list|some property::some value}}

{{NPC list|some property}} - to use the name of the current page as the value

Example

{{NPC list|has subrace::Meadow human}}

...results in this list:

{{#ask:

has subrace::Meadow human
has portrait::+
|?has portrait# -
|format = template
|template = box result format

}}{{#ask:

has subrace::Meadow human
has no portrait::true
has screenshot::+
|?has screenshot# -
|format = template
|template = box result format

}}

{{#ask:

has subrace::Meadow human
has no image::true
|format = ul
|columns = 4

}}