
(04-06-2015, 08:04 PM)L'aenoh Wrote:(01-17-2015, 02:52 AM)FreelanceWizard Wrote: Technical stuff ahoy!
The LanInfoBox template, just like Infobox-character, uses a cool "behind the scenes" template called Citizenship-switch. If you look at its documentation (linked), it'll list off all the supported citizenships. Citizenship-switch also drives the autocategorization function of templates related to or derived from Infobox-character.
Doma isn't currently supported by Citizenship-switch, so the template falls back to the "default" option. It's not that hard to add Doma in, but it would require changes to Citizenship-switch, Citizenship-logo (which is where the logos come from), and templates that use those (so they correctly specify what to do when "Doma" is specified). It's nothing against Doma; we don't have Thavnairia or Meracydia, either.Infobox-character uses the default fallback of Citizenship-switch to provide a generic grey background with no logo for the header if you specify a citizenship it can't parse. It looks like LanInfoBox does something similar, at least in the header, but I haven't read the entire template, so I can't comment on what else it does.
I know I'm a little late to the game here, but..
Basically what LanInfoBox did was read what citizenship players input into the field (thanks to the citizenship-switch), then it would go ahead and add the icon / change the infobox's colors to fit the grand company's color scheme. It had a lot of similarities with Infobox-character.
Anyhow! Yes, LanInfoBox did call on citizenship-switch for a time until today (I've had many requests from people who wanted to change the color scheme to something that fit their profiles better, and because we don't technically have all the other regions, so it's since been removed and replaced with color options for tables).
I really liked its functionality so if I should decide to fiddle around with another template for an infobox I'll see if I can include it somehow.
It should be noted that he made the changes. So if you've been using the LanInfoBox, you'll need to go back and put in the code to color that back in. I just did something simple with Chachan (along with recoloring the section bars too because why not) to get it "recolored" as it were.
Though, it should be noted that this means you can drop your character's citizenship line entirely if your character doesn't affiliate with any particular city and it won't throw off the coloring any!Â
