PathfinderWiki
Log in

User talk:Morbus Iff

From PathfinderWiki
← $1

Portal automation

I see what you're trying to do with the portal automation and transcluding the navboxes we currently use. While they won't currently work, there is one way we could do it, and that's to have both the navbox and the portal both transclude a single list of products in a given category. Thus, instead of the navbox listing all the products, it would just have in each section a {{Runelords adventures list}} template or something like that which would just contain the existing text from that section. Then the portal can just call on that same template and transclude it without getting the borders and headers from the navbox. Just a thought. —Yoda8myhead 01:58, 23 April 2012 (UTC)

I've made {{Shattered Star adventures list}} as an example and proof of concept. It shows up fine in {{Shattered Star navbox}}. I think you're on the right track in wanting to automate the process and streamline the maintenance workload. I'm going to see if I can get the Modules line formatted similarly to try it out within the portal.—Yoda8myhead 02:12, 23 April 2012 (UTC)
Done, for the major product lines. --Morbus Iff 15:37, 23 April 2012 (UTC)

Auto-categorization of images

Thanks for the tip on simplifying the test template. I have a few other questions in the same vein.

  • I believe that the use of the CURRENTYEAR magic word will serve to fill in the year in both the template and the categories when no year is entered as a parameter, but am I correct in my understanding that this will auto-update every year to whatever the current year is? And if so, is there a way to somehow subst the CURRENTYEAR into the template so that an image for which the uploader left out a year in 2012 wouldn't say it was released in 2014 after two years?
  • The other way we categorize images is by subject, such as Category:Images of elves, Category:Images of Ezren, and Category:cover art. Is there a way to make a parameter wherein one could list a few keywords like race, class, name, location, etc. and have those keywords auto-populate a number of categories equal to the number of keywords entered? In general, I'd rather not display the keywords in the template itself, but rather just in categories.

Thanks for any help you can offer! —Yoda8myhead 13:36, 25 April 2012 (UTC)

Yah, CURRENTYEAR always reflect reality. There's nothing (short of a bot) within MediaWiki templates that would magically go and edit the calling page to insert a default value (like 2012). It also doesn't appear that MediaWiki gives out CREATION* magic words (only REVISION*), so you wouldn't be able to tell the template to use 2012 for pages created in 2012, and 2013 for pages created in 2013, etc. It looks like there's an extension to add those, but I'm not a huge fan of this approach (it just feels like "too much" for template logic). One of the things you can do instead (and this is where a "is this variable set?" becomes useful, like you had before) is auto-maintenance categorization - such like adding [:Category:Missing publication date] or [:Category:Missing authors]. This is quite useful to do for heavily used templates, since you can find tons of "broken" pages without having to check each one. --Morbus Iff 13:44, 25 April 2012 (UTC)
As for keywords, sure. You could use keyword1, keyword2, keyword3, keyword4, etc. as template parameters and use them only inside a [:Category:{{{keyword1|}}}] - you don't have to display the values to the end-user to be able to do things with them. This would be similar to what I'd end up doing for books and adventure outlines (which I'm still planning on doing, I've just been distracted with the launch of the map). --Morbus Iff 13:50, 25 April 2012 (UTC)

Bot automation?

I notice you're making the same edit to a lot of pages in succession. Would you like one of us with bots to do these to save you the monotony and/or keep the recent changes page a little less cluttered?—Yoda8myhead 02:42, 26 April 2012 (UTC)

Eh, I'm ambivalent, really. I could run my own bot (at the expense of showing in the Recentchanges without the bot flag), but the only thing I was doing here was fixing up the thirty or forty books with incorrect types - I just-so-happened to remove a few categories as part of that process. When I'm finished with the Template:Book changes, I don't really intend to go through and edit all the books to the "new" format (that's why I'd be keeping backward compat for the "old" options). I'd, instead, do the changes slowly as I go through and finesse the Sourcebook pages anyways. --Morbus Iff 02:47, 26 April 2012 (UTC)