Jump to content

Template:NPC: Difference between revisions

From ZenithXI
imported>Spicyryan
No edit summary
 
imported>Mieiki
swapped right -> center for the image so it centers
Line 115: Line 115:
|Description=
|Description=
}}
}}
</pre></noinclude><div class="img-scaler">{{#if: {{{Image|}}} | {{#ifexist: File:{{{Image}}}.png | [[File:{{{Image}}}.png|right|250px]] | [[File:{{{Image}}}.jpg|right|250px]] }} | {{#ifexist: File:{{{Name}}}.png | [[File:{{{Name}}}.png|right|250px]] | {{#ifexist: File:{{{Name}}}.jpg | [[File:{{{Name}}}.jpg|right|250px]]  | '''PNG Format:'''[[File:{{{Name}}}.png|right]] <br> '''or''' <br> '''JPG Format:'''[[File:{{{Name}}}.jpg|right]] }}}}}}</div>
</pre></noinclude>
{| style="border-collapse: collapse; border:1px solid #3c6a95; text-align: center; float:right;"
| style="background: #4696cf; padding 3px; color:white; border-bottom: 1px solid #3c6a95;" | '''{{PAGENAME}}'''
|-
| style="background: #f5f5f5;" | <div class="img-scaler">{{#if: {{{Image|}}} | {{#ifexist: File:{{{Image}}}.png | [[File:{{{Image}}}.png|center|250px]] | [[File:{{{Image}}}.jpg|center|250px]] }} | {{#ifexist: File:{{{Name}}}.png | [[File:{{{Name}}}.png|center|250px]] | {{#ifexist: File:{{{Name}}}.jpg | [[File:{{{Name}}}.jpg|center|250px]]  | '''PNG Format:'''[[File:{{{Name}}}.png|center]] <br> '''or''' <br> '''JPG Format:'''[[File:{{{Name}}}.jpg|center]] }}}}}}</div>
|}


{| style="border-collapse: collapse; border-width: 1px; border-style: solid; border-color: #4B4D4F; width: 100%; max-width: 800px;" cellpadding="3"
{| style="border-collapse: collapse; border-width: 1px; border-style: solid; border-color: #3c6a95; width: 100%; max-width: 800px;" cellpadding="3"
! style="border-width: 2px; border-color: #3c6a95; background-color: #a6dbfd; color: #000000; text-align: center;" colspan="4" height="34px" |
! style="border-width: 2px; border-color: #3c6a95; background-color: #4696cf; color: white; text-align: center;" colspan="4" height="34px" |
{| style="width: 100%;"  
{| style="width: 100%;"  
| style="width: 100%; text-align: center; padding 3px;"| '''NPC''' <div style="float: right;">[[Image:{{BG_icon}} | link=:Special:WhatLinksHere/{{PAGENAME}} | Pages on this wiki that reference this item]]</div>
| style="width: 100%; text-align: center; padding 3px; "| '''NPC''' <div style="float: right;">[[Image:{{BG_icon}} | link=:Special:WhatLinksHere/{{PAGENAME}} | Pages on this wiki that reference this item]]</div>
|}
|}
|- style="vertical-align: top;"
|- style="vertical-align: top;"
| style="border-style: solid; border-width: 1px; border-color: #4B4D4F; width: 10%; padding-left: 5px;" | '''Location:'''  
| style="border-style: solid; border-width: 1px; border-color: #3c6a95; width: 10%; padding-left: 5px; background: #d4d4d4; padding: 5px;" | '''Location:'''  
| style="border-style: solid; border-width: 1px; border-color: #4B4D4F; padding-left: 5px;"| {{#if: {{{Location|}}}| [[{{{Location}}}]] {{#if: {{{Position|}}}
| style="border-style: solid; border-width: 1px; border-color: #3c6a95; padding-left: 5px; background: #f5f5f5;"| {{#if: {{{Location|}}}| [[{{{Location}}}]] {{#if: {{{Position|}}}
| - ({{{Position}}})}}|{{#if:{{{1|}}}|[[{{{1}}}]] {{#if:{{{2|}}}
| - ({{{Position}}})}}|{{#if:{{{1|}}}|[[{{{1}}}]] {{#if:{{{2|}}}
| - ({{trim|{{{2}}}}})}}{{#if:{{{3|}}}|<br>[[{{{3}}}]] {{#if:{{{4|}}}
| - ({{trim|{{{2}}}}})}}{{#if:{{{3|}}}|<br>[[{{{3}}}]] {{#if:{{{4|}}}
Line 147: Line 152:
| - ({{trim|{{{40}}}}})}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
| - ({{trim|{{{40}}}}})}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
|- style="vertical-align: top;"
|- style="vertical-align: top;"
| style="border-style: solid; border-width: 1px; border-color: #4B4D4F; padding-left: 5px;"| '''Type:'''  
| style="border-style: solid; border-width: 1px; border-color: #3c6a95; padding-left: 5px; background: #d4d4d4; padding: 5px;"| '''Type:'''  
| style="border-style: solid; border-width: 1px; border-color: #4B4D4F; padding-left: 5px;"| {{{Type|}}}
| style="border-style: solid; border-width: 1px; border-color: #3c6a95; padding-left: 5px; background: #f5f5f5;"| {{{Type|}}}
|- style="vertical-align: top;"
|- style="vertical-align: top;"
| style="border-style: solid; border-width: 1px; border-color: #4B4D4F; padding-left: 5px;"| '''Description:'''
| style="border-style: solid; border-width: 1px; border-color: #3c6a95; padding-left: 5px; background: #d4d4d4; padding: 5px;"| '''Description:'''
| style="border-style: solid; border-width: 1px; border-color: #4B4D4F; padding-left: 5px;"| {{{Description|}}}
| style="border-style: solid; border-width: 1px; border-color: #3c6a95; padding-left: 5px; background: #f5f5f5;"| {{{Description|}}}
|}
|}
__NOTOC__<noinclude>
__NOTOC__<noinclude>

Revision as of 13:44, 12 June 2026

Usage/Example

{{NPC
|Name=Leonie
|Location=Bastok Mines
|Position=K-9
|Type=Mog House NPC
|Description=Checks in/out your [[Mog House]] from other nations.
}}
  • This template creates an NPC Header, you must type additional information about the NPC if necessary after template placement, such as, merchant wares.
  • Image file name must have the same name as the page in .jpg or .png format.
  • Type must match an existing NPC subcategory. For a list, please refer to Category:NPCs.
  • Location must be the same name as a zone name.
  • If there is more than one location where the NPC can be found, this template is designed to hold upto 10 different locations and positions. (Example at the bottom)
  • To achieve this, both Location and Position fields must be left blank.
  • The Locations and Positions can be listed as additional parameters of the template without any field name.
  • Each listed position must follow directly after its paired location.
  • If the position of a particular NPC in a zone is not known, or cannot be determined, please leave it blank.
{{NPC
|Name=
|Type=
|Location=
|Position=
|Description=
}}
  • Add the following sections as needed, or leave the code out completely if not relevant:
====Starts Quests/Missions====
*[[quest name]]
*[[quest name]]

====Involved in Quests/Missions====
*[[quest name]]
*[[quest name]]

====Relevant Lore====
*
*

NPC Vendor Table

  • To be used with Template:NPC, where vendor information is relevant
{{NPC Vendor Table
|Insert NPC Vendor Wares Template=
}}
  • Enter for "Insert NPC Vendor Wares Template" the following codes and repeat as many times as needed:
{{NPC Vendor Wares
|Item Name=
|Lowest Price=
|Highest Price= 
|Conquest Restriction=
}}
  • You may enter as many of the codes as needed.
  • Example:
{{NPC Vendor Table
|Insert NPC Vendor Wares Template=
{{NPC Vendor Wares
|Item Name=
|Lowest Price=
|Highest Price= 
|Conquest Restriction=
}}
{{NPC Vendor Wares
|Item Name=
|Lowest Price=
|Highest Price= 
|Conquest Restriction=
}}
{{NPC Vendor Wares
|Item Name=
|Lowest Price=
|Highest Price= 
|Conquest Restriction=
}}
}}

Usage of Template

  • If you type the following:
{{NPC Vendor Table
|Insert NPC Vendor Wares Template=
{{NPC Vendor Wares
|Item Name=Bronze Cap
|Lowest Price=154
|Highest Price=174
|Conquest Restriction=Bastok - 2nd place
}}
}}
  • You will see the following table appear on the page where the template is used:

Item Name

Price (gil)

Conditions

Bronze Cap 154 - 174 Bastok - 2nd place


Template:NPC

  • The following is what appears when you use
{{NPC
|Name=
|Type=
|Location=
|Position=
|Description=
}}
NPC
PNG Format:[[File:{{{Name}}}.png|center]]
or
JPG Format:[[File:{{{Name}}}.jpg|center]]
NPC
Pages on this wiki that reference this item
Location:
Type:
Description:

Template:NPC (Expanded Locations)

  • The following is what appears when you use
{{NPC
|Name=Choh Moui
|Type=Campaign NPC
|Crawlers' Nest (S)|I-11
|Bastok Markets (S)|
|Southern San d'Oria (S)|J-11
|Windurst Waters (S)|G-10
|Description= Freelancer
}}
Location: Crawlers' Nest (S) - (I-11)
Bastok Markets (S)
Southern San d'Oria (S) - (J-11)
Windurst Waters (S) - (G-10)
Type: Campaign NPC
Description: Freelancer