Template:Infobox NPC: Difference between revisions
Jump to navigation
Jump to search
m (Fixed XML error) |
m (Added ClearanceLevel template) |
||
Line 45: | Line 45: | ||
<group name="details"> | <group name="details"> | ||
<header>Details</header> | <header>Details</header> | ||
<data source="clearance-level"><label>Clearance Level</label><format>{{#var:clearance_level}}</format></data> | <data source="clearance-level"><label>Clearance Level</label><format>{{#ifeq:{{#var:clearance_level}}|Civilian|Civilian|{{ClearanceLevel|{{#var:clearance_level}}}}}}</format></data> | ||
<data source="occupation"><label>Occupation</label><format>{{#if:{{#arrayprint:occupation}}|{{#ifexpr: {{#arraysize:occupation}} > 1 |<ul>{{#arrayprint:occupation||@@@@|<li>@@@@</li>}}</ul>|{{#arrayprint:occupation||@@@@|@@@@}}}}|}}</format></data> | <data source="occupation"><label>Occupation</label><format>{{#if:{{#arrayprint:occupation}}|{{#ifexpr: {{#arraysize:occupation}} > 1 |<ul>{{#arrayprint:occupation||@@@@|<li>@@@@</li>}}</ul>|{{#arrayprint:occupation||@@@@|@@@@}}}}|}}</format></data> | ||
<data source="location"><label>Location</label></data> | <data source="location"><label>Location</label></data> | ||
</group> | </group> | ||
</infobox></includeonly> | </infobox></includeonly> |
Revision as of 18:36, 10 November 2023
This template is a work-in-progress.
Parameters
name
- String - The name of the character. Defaults to the page name.image
- File - An image of the character, preferably their profile. You can pass in multiple images enclosed in<gallery>
tags like so:
|image = <gallery> Example 1.jpg|Tab 1 Example 2.jpg|Tab 2 Example 3.jpg|Tab 3 </gallery>
occupation
- List of String (Delimiter ',') - A list of occupations for the NPC. Separate by commas.clearance-level
- String - The clearance level of the NPC, if any. Supported values include:civilian
staff
guard
technician
vip
location
- String - The location of the character, if they are exclusive to one (mainly for VIPs).