Titan Network

More Titan Projects => ParagonWiki => Topic started by: Blue Pulsar on November 08, 2020, 06:36:20 PM

Title: Adding categories to pages
Post by: Blue Pulsar on November 08, 2020, 06:36:20 PM
I have been a mild editor of different wikis for quite a few years, so it's a bit embarrassing that how to do something as simple as this eludes me.

I have been using the category page Contacts by Level, and have noticed that there are a handful of contacts not listed there. And I'm trying to find out how to add the categories to the correct pages. Could use some advice.
Title: Re: Adding categories to pages
Post by: Blondeshell on November 11, 2020, 12:03:51 AM
The general way to add a category is to add the tag "[[Category:<Insert Category Here>]]" at the bottom of the page, but contacts are a little different because the categories are auto-generated by their {{Contact Overview}} template. It's possible some contacts have slipped through having those references added, or their level ranges don't match the bulk of the standard contacts present throughout the game.

Did you have a specific list of contacts in mind?
Title: Re: Adding categories to pages
Post by: eabrace on November 11, 2020, 07:26:16 PM
Is it possible that this is the same issue we saw with power set pages that were correctly tagged for each archetype, but were not showing up on the AT powerset category pages?
Title: Re: Adding categories to pages
Post by: Blondeshell on November 12, 2020, 03:35:26 AM
Dunno. That's why I was hoping for a few contacts to check it with.
Title: Re: Adding categories to pages
Post by: eabrace on November 12, 2020, 05:50:28 AM
Hmm.  I do think I may have stumbled into something.

On the Contact Overview template (https://archive.paragonwiki.com/w/index.php?title=Template:Contact_Overview), most of the switches referencing the "City" property include values of both "vh" and "hv".  However, the switch that determines the category for contacts by level only has a "vh" case and no "hv" case.   I went ahead and added that "hv" property to the switch for Contacts by Level.  That might make a difference on a few pages.

Looking at the page for The Pilgrim (https://archive.paragonwiki.com/w/index.php?title=The_Pilgrim), I noticed there's no Contact by Level category at the bottom of the page, so I checked the Overview.  I notice in this case that there's no "Level" property in the call to Contact Overview.  I can't recall if we left that out intentionally for O-zone contacts, but any pages where that property is missing in the Contact Overview call would also be missing from the Contacts by Level categories.