Template:Infobox NPC: Difference between revisions

(Added Crenopolis.)
(Replaced content with "{{#invoke:Infobox NPC|main}}{{Mainonly|Category:Non-player characters}}<noinclude>{{/doc}}</noinclude>")
Tag: Replaced
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{#invoke:Infobox NPC|main}}{{Mainonly|[[Category:Non-player characters]]}}<noinclude>{{/doc}}</noinclude>
{| class="wikitable infobox-npc" style="float:right"
!colspan="2"| {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
|-
|colspan="2" style="text-align:center"| {{#if:{{{image|}}}|{{clean image|file={{{image}}}}}|[[Special:Upload|Please upload an image!]]{{Mainonly|[[Category:Needs image]]}}}}
|-
|<b>Release date</b>||{{#if:{{{release|}}}|{{{release}}}|Q3 [[2024]]}}
|-
|<b>Episode</b>||{{#switch:{{{episode|}}}|Hopeport=[[File:Hopeport episode icon.png|18px]] [[Hopeport]][[Category:Hopeport]]|Hopeforest=[[File:Hopeforest episode icon.png|18px]] [[Hopeforest]][[Category:Hopeforest]]|Mine of Mantuban=[[File:Mine of Mantuban episode icon.png|18px]][[Category:Mine of Mantuban]][[Category:Premium_Pass]]|Crenopolis=[[File:Crenopolis episode icon.png|18px]] [[Crenopolis]][[Category:Crenopolis]][[Category:Premium_Pass]]|#default=[[File:Unknown episode icon.png|18px]] Unknown}}
|-
{{#if:{{{profession|}}}|
{{!}} <b>Profession</b>
{{!}}{{{profession}}}
{{!}}-}}
{{#if:{{{shop|}}}|
{{!}} <b>Shop</b>
{{!}}{{{shop}}}
{{!}}-}}
|}{{Mainonly|[[Category:Non-player characters]]}}<noinclude>{{clear}}{{/doc}}</noinclude>

Latest revision as of 14:09, 9 April 2024

Template documentation
This documentation is transcluded from Template:Infobox NPC/doc. [edit] [history] [purge]
Template:Infobox NPC invokes function main in Module:Infobox NPC using Lua.

Parameters

name

The name of the NPC.

image

The image of the NPC.

release

The release date of the NPC.

episode

The episode of the NPC.

One of:

  • Hopeport
  • Hopeforest
  • Mine of Mantuban
  • Crenopolis

location

The location of the NPC.

shop

The shop of the NPC. (Optional)

actions

Comma-separated list of the actions shown in the non-player character's action menu, in the order they appear in game. Do not include the "Info" that all non-player characters have.

description

The description of the NPC in its card.

Quick copy

{{Infobox NPC
|name = 
|image = 
|release = 
|episode = 
|locations = 
|shop = 
|description = 
}}