Template talk:NPC

This was based on the Infobox-monster template, and was modified to allow a standard template for NPC's. Taurolyon 20:34, November 17, 2010 (EST)

Please don't break this template
It took me a few edits, but everything works now.. , please do not break the coding.. Thank you ShoeMaker (Contributions • Message) 03:20, April 3, 2012 (EDT)

Hypocritical imo. You're new revision looks more broken then mine. Yea I know my fix had issue with collapsible fields, but it wasn't "broken", it had xtra unnecessary spacing yea - but still looked better. The weird non-standard double spacing xhtml you're messing up the template with looks horrible. I doubt anyone would disagree. Why/how could you think that's at all acceptable. Such massive wastes of space between each line makes our site looks awful. Shade 03:31, April 3, 2012 (EDT)


 * The spacing is exactly how it was before I started, I just made some fields collapse if empty. It is simple to make it single spaced..  Replace all instances of

with . As a side note, I just spent an hour trying to find where it says, DO NOT CLOSE &lt;br> TAGS LIKE &lt;br />!!!!!! It doesn't exist on any of the wikitext styling / syntax pages on wikipedia or wikimedia.. Which leaves me back to my default of close ALL tags when making pages to be viewed on a web browser. You can feel free to use &lt;br> to your hearts content. I'll continue to have my bot go through every once in a while and fix them all. ShoeMaker (Contributions &bull; Message) 04:16, April 3, 2012 (EDT)


 * I smell an edit war-a-brewing, quick all the kobolds get into into the root cellar! Yawgmoth 04:51, April 3, 2012 (EDT)



You didn't look very hard. Our very own editing guide has always said you don't need to use them: Help:Editing.

or how about our template. Part of its purpose is to convert html to wikitext.. What your doing is the direct opposite.

Yea it doesnt really matter which you use.. But the bot edits your making to chage them are utterly redicules.

Where does it say that? Common sense. Your making thousands of edits that have: -Zero effect on the html of the site. -Zero effect on the page display -Lots of effect on wasting server space, server load, and your own personal time.

And no, the npc template didn't have that ugly spacing before your edits: http://ddowiki.com/index.php?title=Template:NPC&oldid=96183

And theres no editwar here. Tech already fixed the spacing issue, so thanks for that Tech.

edit: Actually single line breaks aren't desireable either as they mush things a bit too close together. There still quasi html and wikipedia says to "use sparingly". Most properly wikitext use is just to space the lines out - makes it the easiest to read and cleanest. If you really want to use html to produce the exact same spacing, go nuts i guess.. The html code for that is  (paragraph). (and no is not neccesary, the wiki software inserts that automatically.)

Oh yea just checked Help:Editing, actually is valid wikitext, thought it works differently then html. Shade 05:04, April 3, 2012 (EDT)


 * Perhaps I should clarify. Find me a source outside of the pages on this wiki that you have had a hand in editing.  Preferably from the guys that wrote the WM Core.  I suspect that those pages were double space because of the fact that things looked smooshed. I can try to add something like:

body { line-height:150%; } to the top of the template and see if it helps. Or maybe even dump all the text in the page into a Text. ShoeMaker (Contributions • Message) 09:14, April 3, 2012 (EDT)

Small change required
I would like to ask the people who are more versed with the wiki code than me to change one entry in this template, and add another.


 * First, change the  |patron  tag to say "Affiliation" instead of "Patron", and allow multiple entries by removing the automatic link. This will allow us to add more lore information into each NPC page (Eg, like linking Chief Eechik to the Clan Gnashtooth Kobolds), the info do not become redundant with the quest page (and solve issues like the same NPC giving out quests for two different patrons, like Cydonie), and cut off some dissonance because some NPC is linked to one organization, but their quest is linked to another one (Like Gatekeeper Trakash is one of The Gatekeepers, but his quest gives Jorasco favor).
 * Also, except by losing one hyperlink (that can be fixed with a bot), this don't break any NPC page.
 * Second, I would like to have an extra camp below "Bestow quest" that read "Receive quest". For most quest NPCs, this camp is redundant because the same quest giver also provides the quest reward. But as I keep registering the journal entries that appear across the game, walk-in quests (like the ones in Menechtarun) don't have a "quest giver". Some like Beyond the Rift actually are bestowed by one NPC and delivered to another one. And then there is the journal entries like Refuge in the Storm.
 * To not break template, this can be an optional camp (just like "Bestow quest") that is suppressed unless you actually add it to the page. I intend to make a second pass after I finish doing the first rough sketches in all quest givers to fix this one.
 * Third, can you make the Race entry automatically link to the " race" page, like the Monster template?

Thank you in advance. Nibelung (Contributions • Message) 10:50, August 1, 2015 (EDT)


 * What do you think of the version of the template I have in my sandbox? The parameters with numbers at the end can have any number of them added. If you think it would be better to not autolink and/or just have one parameter for certain things let me know. I know changes will require updating all NPC pages, but I can handle that. &mdash;&thinsp; Zav &thinsp; (T·E·C) 18:12, August 1, 2015 (EDT)
 * That's a great way to do that Zav with the forargs. Location should be a forargs as well and I'm wondering if instead of an inline list like you have it, if it would look better for when there is three or more entries to have it be an unordered list instead. I'll let you play with that idea and if you get stuck I'll poke at the idea as well. :) I think autolinking is essential to wiki growth, and I would oppose removing that feature of the template. ShoeMaker (Contributions • Message) 19:31, August 1, 2015 (EDT)
 * I considered an unordered list, but I figured we wouldn't really have that many. I can have it switch from inline to ul for 3+ uses. I will add additional location parameters. I'm not going to autolink the locations so that additional text, such as near xyz, can be added. &mdash;&thinsp; Zav &thinsp; (T·E·C) 10:39, August 2, 2015 (EDT)


 * I have updated my sandbox. All the forargs parameters now use ul if 3 (2 for location) or more are specified. &mdash;&thinsp; Zav &thinsp; (T·E·C) 14:23, August 2, 2015 (EDT)
 * Looks good to me, but looks like you missed the Vendor camp. I don't mind removing those, instead expanding their inventory in the description below, plus the categorization. Just checking if it was intentional or not. Nibelung (Contributions • Message) 22:33, August 2, 2015 (EDT)
 * How exactly will it work for vendors? Will we be able to list the things they sell as a div-col (width based on number of entries and width of entries obviously). ShoeMaker (Contributions • Message) 16:12, August 3, 2015 (EDT)
 * Right now, I have no idea why this camp exist. Some NPCs have it as a Yes/No message, others have a list of what the NPC sell. So, yeah, it is kinda of a useless entry right now, and I have no problem getting rid of it altogether. As I said, I just wanted to be sure the removal was intentional, or if it was an oversight. Nibelung (Contributions • Message) 18:38, August 3, 2015 (EDT)
 * It should certainly exist and be a list of wares where appropriate (obviously pawn brokers would be just a 'yes'). ShoeMaker (Contributions • Message) 19:27, August 3, 2015 (EDT)


 * I think it looks good, although I'd like a separation between killable monsters and NPCs; otherwise, you might run into MM problems. So, for instance, Hobgoblin would have the current Creature Entries and a second "NPCs" list below that, which would include Gatekeeper Trakash.  No idea if that's something that could be automatically categorized based on being used in an NPC template vs. a monster template...   LrdSlvrhnd (Contributions • Message) 22:54, August 3, 2015 (EDT)
 * The current NPC template do not automatically link to the " race monsters" category. I'm not sure if we should add a " race NPCs" category, and if we do, we should check manually all the NPCs that uses the Extra template to add a second or third race, like most dragons (Cydonie, Kear, etc). Nibelung (Contributions • Message) 09:05, August 4, 2015 (EDT)
 * Yeah, I understand that... I was referring to your third request. If that's done, I'd like NPCs to be separated from monsters, if possible.  I like the idea, but I don't like mixing NPCs and mobs.  I'd rather have them not in the category, than mixed in 8-} I know when stuff like a new MM proposal is being talked about (both on the PC and on the forums, so I don't think I'm breaking any confidentiality here *g*) people immediately look at the wiki and go "Max Hunter requires 60, but wiki only lists 58, either release more in the same update or change the number!" or "Max Hunter requires 60, and there are 104 listed, you might want to bump that up!"  So, if possible, I'd prefer NPCs to be listed separately; and if not possible, I'd rather have them not get categorized at all. -LrdSlvrhnd (Contributions • Message) 02:50, August 6, 2015 (EDT)
 * I can neither confirm nor deny that PC members look at the wiki and go "Max Hunter requires 60, but wiki only lists 58, either release more in the same update or change the number!" or "Max Hunter requires 60, and there are 104 listed, you might want to bump that up!" ShoeMaker (Contributions • Message) 03:13, August 6, 2015 (EDT)
 * I understand. But you don't need to be worried. I just wanted that when a Race: Kobold appear in the page, instead of going to the Kobold page (that is an individual monster), it goes to the Kobold race page (that list the racial stats and lore). It should not add the entry, and thus, should not affect the MM count. Nibelung (Contributions • Message) 09:18, August 6, 2015 (EDT)
 * Ohhh, OK, I misunderstood entirely! ...I gotta stop doing stuff when I should be going to bed... *g*  (And Tech, if I didn't also see it when they hit the forums, I wouldn't have said anything! 8-} ) (I've also used it myself when going through my MM and realizing I was just one or two types away from a completion, and I didn't want be confused myself... *g* ) - LrdSlvrhnd (Contributions • Message) 13:36, August 6, 2015 (EDT)
 * NPCs are not being added to a category based on race; they are only linking to it. Categorization of NPCs by race could be done (separate from monsters). &mdash;&thinsp; Zav &thinsp; (T·E·C) 12:43, August 6, 2015 (EDT)
 * New request, this time an easy one. Three new camps: Farshifter as an Yes/No camp (default no), Spirit Binder as an Yes/No camp (default no), and Trainer allowing entry with yes (not recommended), no (default), or a class name. Those entries should automatically list the NPCs in the appropriate category for each one (linked in each camp name).Nibelung (Contributions • Message) 16:38, August 8, 2015 (EDT)
 * Can any one NPC fit into more than one of those classes? I'd rather have one new parameter for class which could be populated with farshifter, planescaller, trainer, pawn broker, spirit binder, etc. ShoeMaker (Contributions • Message) 20:04, August 8, 2015 (EDT)
 * Unfortunately, yes. Brother Mirashai is a Farshifter and Spirit Binder. Trainers I think are exclusive in a single instance, but can fit multiple roles if they have appearances in other zones. Nibelung (Contributions • Message) 20:32, August 8, 2015 (EDT)
 * I have updated my sandbox again. Changes: allows for multiple races, vendor parameter changed to sells, and added role parameters for categorization. Note: Categories are linked in the sandbox to prevent the sandbox from being categorized. &mdash;&thinsp; Zav &thinsp; (T·E·C) 18:25, August 15, 2015 (EDT)
 * Thank you very much. I think that is all I need to work with the NPCs, and the template looks still easy to manage. Nibelung (Contributions • Message) 20:41, August 15, 2015 (EDT)

Template:NPC2
Zav... Please just update this template instead of trying to replace it with a new NPC2 template. We did that with dmg(2) once, and I remember it as being a mess. Open to discussion, thanks. ShoeMaker (Contribs • Message • Email ) 18:32, September 1, 2015 (EDT)
 * My only concern with just changing the code is that most of parameters currently in the template are not in the new version, so the information will not be displayed until the NPC's page is updated to use the new parameters. Just updating this template would be easier, but I don't know how long it is going to take to get through the 500+ transclusions. —&thinsp; Zav &thinsp; (T·C) 18:41, September 1, 2015 (EDT)
 * Make me a table/bulleted list and put the new template in T:NPC/sandbox and I'll make it backwards compatible as best I can and then merge the histories together. :) ShoeMaker (Contribs • Message • Email ) 19:39, September 1, 2015 (EDT)
 * I have added functionality for the soon to be historic parameters in my sandbox. NPC2 no longer needed. —&thinsp; Zav &thinsp; (T·C) 21:21, September 1, 2015 (EDT)

Clarification on use of Affliation parameter
The "|affiliation1" entry for http://ddowiki.com/edit/Zawabi_the_Elder_Djinni used to say "The Free Agents"

It was edited to remove this entry: ''(cur | prev) 08:22, May 23, 2018‎ Faltout (Talk | contribs)‎. . (10,010 bytes) (-15)‎. . (not a Free Agent member) (undo)''

Zawabi is, however, affiliated with The Free Agents (he grants Free Agent favor), even though he is not technically a member of the organisation. Based on my understanding of the parameter, "The Free Agents" should be listed as an affiliation. Based on Faltout's understanding, as he is not a member, the "|affiliation1" entry should not be used for this purpose.

The template descrption (|affiliation1  = ) does not give any useful guidance on this front.

Should affiliation1 only be used for affiliations, where the NPC is a member of that faction? Should affiliation2 and upwards be used for other affiliations?

Can someone clarify? and can the template descriptions be amended accordingly by someone who knows how the fields are meant to be used? -- &rArr; Glmfw1 (Contribs • Message • Email ) 12:20, May 23, 2018 (EDT)
 * My take on this is that the type of favor the quests give is clearly stated in each quest and it being in an NPC doesn't provide any useful info. Besides, when multiple favor types are present, a reader can't understand which quest gives what favor without going to the quest page. So I used the affiliation parameters as membership parameters to compile the faction member tables. Since an NPC probably is member of only one faction, using affiliation2 and up for whatever purpose would work for the member tables (they can safely ignore them) or a new parameter could be made for whatever purpose... &rArr; Faltout (Contribs • Message • Email ) 14:51, May 23, 2018 (EDT)

Roles
Hello, I am loving this template. Looks like it has taken some thoughtful work to put it together, so I say "Well done!"

What words shall I use to define the role1 of an NPC quest giver?


 * Quest giver? Quest NPC?  Quest bestower?

Also, is there a role1 that is essentially for flavor? Something that will cover the tavern bouncers, patrons, the "games of chance"...basically anything that is not vendor/collector, trainer, or quest related? Thanks in advance! &rArr; meander (Contribs • Message • Email ) 22:11, July 5, 2018 (EDT)
 * I don't think a role is needed for quest givers. I can update the template populate a category (Quest bestowers) when bestowsquest1 is used like is done for collects1 and Category:Collectors. Currently, no. I'm not sure that we should have special categories for NPCs that don't have an interactive purpose. I might be convinced otherwise though. —&thinsp; Zav &thinsp; (T·C) 02:15, July 6, 2018 (EDT)
 * Thanks for your prompt reply, Zav! I think I understand what you are saying: quest givers will be captured as a group through |bestowquest, so no need to define it through roles, yes? So I should leave |role1 blank?  As for flavor NPC's...as long as they can be created, I think what I want from them is satisfied. Roleplayers and writers of game-based fiction eat up these gems and can't always log into the game (guilty of writing while supposedly working =D) &rArr; meander (Contribs • Message • Email ) 10:17, July 6, 2018 (EDT)
 * NPCs will now be categorized in Category:Quest bestowers when bestowsquest1 is populated. (It will take some time for the existing pages to update.) —&thinsp; Zav &thinsp; (T·C) 22:52, July 7, 2018 (EDT)

Would it be helpful for the Collectors/Augment NPCs to be defined as a |role? &rArr; meander (Contribs • Message • Email ) 14:20, July 7, 2018 (EDT) Nevermind my last question, I see you have them =D.
 * We have Category:Collectors when collects1 is populated. —&thinsp; Zav &thinsp; (T·C) 22:52, July 7, 2018 (EDT)
 * Thanks! I just want to be sure data entered can be captured to do amazing things en mass. &rArr; meander (Contribs • Message • Email ) 23:01, July 7, 2018 (EDT)

Recent change to location
So, um, after the most recent change to the location parameter, do we really need to go through about 1000 NPC pages and change their locations? Perhaps what wanted to achieve with this change can be achieved in a less intrusive way? Or do we really need a bunch of categories named ? I was hoping that some other admin would notice this and discuss, but apparently (that does most NPC work) simply ignored the weird looking NPC page he was editing. By the way, there isn't necessarily a connection between each role and every location. Talbron Tewn has many roles according to his location (monster, NPC, trainer). He does not belong in a "Category:The Grotto Sorcerer trainers". &rArr; Faltout (Contribs • Message • Email ) 03:33, July 20, 2018 (EDT)
 * I'm sure I'll be doing some revision to the categorization of NPCs. C-Hound is aware that things like this are a process and take some time.  It sometimes takes templated categorizations to propagate through the system.  Be patient.  &#x1f45f;&thinsp;ShoeMaker (Contribs&thinsp;•&thinsp;Message&thinsp;•&thinsp;Email )&thinsp;&#x1f45f; 08:48, July 20, 2018 (EDT)
 * Ok, what will that revision be and what purpose will it serve? As I said above, perhaps there is a better way to do what you want without a manual update of 1000 NPC pages? For example, if your purpose is to collect the harbor trainers, no changes are necessary since a simple DPL call can already do that. If you want to collect all NPCs for each zone, this is mostly possible with small adjustments in some NPC pages. However, as long as you leave the changes half-way, editors and viewers will be confused creating chaos. &rArr; Faltout (Contribs • Message • Email ) 10:26, July 20, 2018 (EDT)
 * I want to have all NPCs categorized by location and role and cross referenced. Don't worry about it, no-one is asking you to edit 1,000 pages.  Your initial complaint was there were 1000 redlinks to ... There were four - and it was because they had no role.  I'll take care of getting it all sorted.  Relax.  &#x1f45f;&thinsp;ShoeMaker (Contribs&thinsp;•&thinsp;Message&thinsp;•&thinsp;Email )&thinsp;&#x1f45f; 07:36, July 21, 2018 (EDT)
 * You obviously did not understand my initial complaint, nor the problems with what you are trying to do. There are 2 problems: 1. To categorize all the NPCs by location, you will need to edit about 1000 pages. Until this editing is done, the pages will look broken. and 2. The categorization is currently wrong, because each role corresponds to a single location and not all the locations. I also asked a question, which you didn't answer: What is the purpose of that categorization? &rArr; Faltout (Contribs • Message • Email ) 07:46, July 21, 2018 (EDT)
 * You didn't understand the response, so go read it again. I answered your question and addressed your concerns.  I'll be editing every NPC, probably multiple times... Pages look broken because of the incorrect state of the NPC pages.  Anyway, unless you have NEW questions, I am done with this discussion.  &#x1f45f;&thinsp;ShoeMaker (Contribs&thinsp;•&thinsp;Message&thinsp;•&thinsp;Email )&thinsp;&#x1f45f; 09:32, July 21, 2018 (EDT)
 * You only addressed 1 concern, and that is "Yes, I will be editing 1000 pages". Kylea d'Cannith is still under the wrong category Category:Power Play Artificer trainers and when you edit Brother Mirashai, he will belong to "House Deneith Spirit binders" AND "House Deneith Farshifters". However, in House Deneith, Brother Mirashai is only a farshifter. The same will happen to Talbron Tewn. He will end up in "House Cannith Sorcerer trainers", when he is only a quest giver there. &rArr; Faltout (Contribs • Message • Email ) 06:41, July 22, 2018 (EDT)
 * I am confused. I would like to be helpful. I will continue to enter NPCs with the goofy template change and hope for the best. If there is something I can actively be doing that provides additional support toward the end-goal ( by re-editing |roles or |locations or whatever, as I go), let me know.  Cheers &rArr; meander (Contribs • Message • Email ) 14:34, July 21, 2018 (EDT)

Tutorial |role
Hi - can I put "tutorial" as a |role for NPCs? Korthos has some tutorial NPCs who are non-action interactive (Flavor =D). I have run across a few more over time, and tonight I put Kaltrop into the mix. He/It is the only one I have defined the role as tutorial. I can remove the role if it makes a problem. Many thanks &rArr; meander (Contribs • Message • Email ) 01:26, August 9, 2018 (EDT)