User:LunarEcklipse/Templates/NPC Infobox Notes

From Sea of Thieves Wiki
Jump to navigation Jump to search

Keeping notes here about things I noticed/musings I had while working on the NPC infobox migration for the purposes of improving the template's parsing and readability. It's divided by parameter. The link to the actual template can be found here.

Shopkeeper Copy + Paste

{{infobox npc | image = | type = shopkeeper | subtype = | shop-type = | location = | cargo-run-target = yes }}

Update Progress

NPC Groups Completely Updated

  • Tavern Keepers
  • Toolsmiths/Equipment
  • Shipwrights
  • Clothiers
  • Weaponsmiths
  • The Servant of the Flame
  • Emporium Curators
  • Seapost Traders
  • Wanda
  • Gold Hoarders
  • Order of Souls Madames
  • Senior Traders

NPC Groups In Progress

  • Hunters
  • Bilge Rats
  • Dark Brethren

Template Notes

Subtype (Role)

Switch Conversions for Display

Something that I should do I've noticed is set up each template with a separate display role/subtype based on the supplied one, so that they properly link to where they need to go. What's below is a list of ones I've noticed and come up with.

  • Tavernkeep = [[Tavern#List of Taverns & NPCs|Tavernkeep]]
  • Toolsmith = [[Equipment Shop#NPCs|Toolsmith]]
  • Clothier = [[General Clothing Shop#NPCs|Clothier]]
  • Weaponsmith = [[Weaponsmith's Shop#NPCs|Weaponsmith]]
  • Shipwright = [[Shipwright Shop#NPCs|Shipwright]]
  • Emporium Shopkeeper = [[Pirate Emporium#NPCs|Emporium Shopkeeper]]
  • Seapost Trader = [[Seaposts#NPCs|Seapost Trader]]
  • Reaper's Bones Representative = {{ilink|Reaper's Bones}} Representative
  • Gold Hoarder = [[Gold Hoarders#NPCs|Gold Hoarder]]
  • Madame = [[Order of Souls#NPCs|Madame]]
  • Senior Trader = [[Merchant Alliance#NPCs|Senior Trader
  • Bilge Rats Representative = {{ilink|Bilge Rats}} Representative
  • Athena's Fortune Representative = {{ilink|Athena's Fortune}} Representative
  • Sea Dogs Representative = {{ilink|Sea Dogs}} Representative

Race

Switch Conversions for Display

See above notes on this for subtype/role. Same idea basically, but for this.

  • Ghost = There doesn't actually seem to be any direct article on ghosts specifically. Something to consider later mayhaps?
  • Phantom = [[Phantom]]
  • Skeleton Lord = [[Skeleton Lords|Skeleton Lord]]
  • Skeleton = [[Skeletons|Skeleton]]
  • Siren = [[Siren]]
  • Merfolk = [[Merfolk]]
  • Ashen Lord = [[Ashen Winds (World Event)#The Ashen Lords|Ashen Lord]]

Company

Parsing Notes

  • Watch for [[]] brackets during parsing and strip them out.
  • Watch for {{ilink}} template during parsing and convert the ilink to raw text. Ilink Template here.

Affiliation

Parsing Notes

  • Watch for [[]] brackets during parsing and strip them out.
  • Watch for {{ilink}} template during parsing and convert the ilink to raw text. Ilink Template here.
  • Before inserting into the database, consider adding a check which adds everything specified by the company parameter to affiliation if it isn't there already. You can use arrayunique to handle that if necessary as it'll kill dupes. Make sure though that the company isn't printed in both the Company and Affiliation columns of the infobox though!
  • Check for any text within (brackets) or (a c template!). They're used for appending affiliation status in affiliations.

Actor

Parsing Notes

  • Watch for [] brackets during parsing and extract the raw text. For the page itself, leave the link intact. You only want to take out the URL and the bracket pair for the cargo data (if you put actors in cargo data that is, I can't remember atm).

Related

Parsing Notes

  • I don't think related is stored in any way, so it's probably safe to just not parse related at all.

Appearances

Parsing Notes

  • Be sure to strip out ilinks during parsing.
  • Be sure to strip out intrawiki links ([[]]) during parsing.

Cargo Run Target

  • All shopkeepers on outposts give and receive cargo, with the exception of those at sea dogs.
  • The various "Island NPCs" all give and receive cargo.
  • Seapost traders and hunters give and receive cargo.

Invalid Targets for delivery:

  • Athena's hideout NPCs
  • Sea Dog's NPCs
  • Grace Morrow
  • Gold hoarder Reps
  • Order of soul Reps
  • Sovereign Reps