Template:Infobox NPC: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<noinclude>This template is a work-in-progress. == Parameters == * <code>name</code> - String - The name of the character. Defaults to the page name. * <code>image</code> - File - An image of the character, preferably their profile. You can pass in multiple images enclosed in <code><nowiki><gallery></nowiki></code> tags like so: <pre> |image = <gallery> Example 1.jpg|Tab 1 Example 2.jpg|Tab 2 Example 3.jpg|Tab 3 </gallery></pre> * <code>occupation</code> - List of Stri...") |
m (Fixed XML error) |
||
Line 46: | Line 46: | ||
<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>{{#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||@@@@|@@@@}}}}|}} | <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 19:26, 8 September 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).