This Forum has been archived

Visit Discussions
Forums: Index > Wiki Discussion > CodexSummary Bug
Note: This topic has been unedited for 2796 days. It is considered archived - the discussion is over. Do not continue it unless it really needs a response.

Pardon me if this is already known, but there appears to be a bug in codexsummary which ignores the appearances line that is set in an individual codex entry. Instead it always lists Dragon Age:Origins as the place of appearance instead. This bug currently effects Awakening as well as the DLC add-ins, bassically anything that appears in something other than Origins. I'll thus lay odds that it will mislabel Dragon Age 2's codex summaries as well if it isn't addressed. An example taken from the Characters section page of the codex follows. The codexsummary appearances line below and the original codex entry's appearances line do not match. -Vim- (talk) 10:13, July 14, 2010 (UTC)

I wasn't aware of that, so thanks for pointing that out. I'm hoping it's just a matter of it being set to Origins in Template:CodexInfoBox, but it may still require more expert eyes to check it out. Friendship smallLoleil Talk 10:23, July 14, 2010 (UTC)
Right well that just seems to have caused the appearances not to show up at all. I think I'd best leave this for someone more experienced with templates :(. Friendship smallLoleil Talk 10:28, July 14, 2010 (UTC)

Ok, I found the time to trace through it and I think I've figured it out. There are three levels of templates:
CodexTransformer -> CodexSinglePage -> CodexInfoBox (prints full codex page)
CodexTransformer -> CodexSummary -> CodexInfoBox (prints summary)
The first path works because the "appearances" variable exists in all three templates. So it gets dutifully passed all the way down to CodexInfoBox which prints it if it's present.
The second path doesn't work because CodexSummary shrugs and throws the "appearances" variable away instead of passing it on to CodexInfoBox. Previously it printed Dragon Age: Origins as a default if it received nothing, and that's why Awakening and DLC codex summaries were all saying their codices appeared in Origins. After your edit this morning, CodexInfoBox no longer has a default value of Dragon Age: Origins for "appearances". So now it prints exactly what it receives for that variable, and that's nothing at all.
There are two possible solutions:
1) Decide that the "appearances" variable isn't useful in the codex summary, and perhaps that was the reason it wasn't in there before. Your removal of its default value from CodexInfoBox will stand, and if a default value for Dragon Age: Origins is needed for older full page listings then it should be moved to CodexSinglePage instead so it won't screw up the summaries.
2) Decide that the "appearances" variable is useful to codex summaries and that it should be printed. CodexSummary would then be modified to pass the contents of "appearances" on to CodexInfoBox. The previous version of CodexInfoBox may then be restored. -Vim- (talk) 15:43, July 14, 2010 (UTC)
It works now. Max21 (talk | contr) 00:49, July 15, 2010 (UTC)
I see you went with solution 2. But as I mentioned earlier, unless the default value is also restored in CodexInfoBox or someone goes in by hand and adds an "appearances" entry to all the older codex entries that don't have one, a lot of older entries for Origins will no longer show anything for "appearances". -Vim- (talk) 09:33, July 15, 2010 (UTC)
{{CodexInfoBox}} has the "appearances" parameter... Max21 (talk | contr) 09:39, July 15, 2010 (UTC)
Having an empty field doesn't bother me too much, but it wouldn't be too hard to fill them in manually or we could see if we recruit a bot over at the Wikia Community forums. Friendship smallLoleil Talk 10:23, July 15, 2010 (UTC)
I'm actually ok with leaving them empty also if that's the way we want to go. I just wanted to point out the change in behavior from what used to occur. The idea of recruiting a bot to make the additions sounds interesting, not that I have any experience with bots myself. -Vim- (talk) 12:18, July 15, 2010 (UTC)
I can just use an #if function to fix it, but I don't see the problem. Any examples in articles? Max21 (talk | contr) 10:25, July 15, 2010 (UTC)
It's not a big deal. It's just that prior to its last edit in {{CodexInfoBox}}, the value of "appearances" was logically or'd to Dragon Age: Origins in a short-circuit statement. So if "appearances" existed its value was printed, and if it didn't then Dragon Age: Origins was listed by default.
As far as examples are concerned, you can take a look at Codex:_Characters. Previously every codex entry displayed an Appearances line in the summary. Now most of them don't. This is because they used to get Dragon Age: Origins assigned as a default. Now only a few of the newer ones like Anders and Justice that have "appearances" defined have an Appearances listing. Nevertheless the more I think about it, the more I agree with Loleil that perhaps the default shouldn't be restored. While restoring it would correctly identify the majority of codex entries for Origins, it would also mislabel some of the older DLC entries which haven't assigned a value to "appearances". I just wanted you to be aware of the change in behavior. -Vim- (talk) 12:18, July 15, 2010 (UTC)
It's now fixed. Any entry into an appearances parameter will override Origins. If the DLC parameter is included, appearances will be excluded. Max21 (talk | contr) 20:27, July 15, 2010 (UTC)
very elegantly done. -Vim- (talk) 20:53, July 15, 2010 (UTC)


Main article: Codex entry: Anders
See also: Character: Anders

"Most people enjoy being kicked in the head to be woken each morning. Me, I'm just so picky."

Anders is an apostate mage. He was arrested by templars who intended to cart him back to the Circle Tower; Vigil's Keep was to have been a short stop on the long journey. Unfortunately, the keep was attacked just after the group arrived, and Anders was found standing over the bodies of his captors. He insists they were killed by darkspawn.

Regardless, Anders joined the Warden to defeat the darkspawn in Vigil's Keep.

Anders takes great pride in his appearance and enjoys fine things.

If he undergoes the Joining: Afterwards, Anders was recruited into the Grey Wardens. He survived the Joining.

If he is taken by the templars and given leniency: Although Anders fought alongside (Warden Commander's name) at Vigil's Keep, the Warden-Commander returned the mage to the templars' custody after the battle—with a request that the templars be lenient, given what Anders had done to help the Grey Wardens.

If given a kitten: The Warden-Commander gave Anders a kitten as a gift. Anders stowed the kitten, Ser Pounce-a-lot, in the folds of his robe.

At the start of Freedom for Anders: Anders' old friend Namaya revealed that the templars had moved the phylacteries for most mages in Ferelden--including Anders--to the City of Amaranthine.

At the end of Freedom for Anders: But the warehouse where the phylacteries were supposedly stored was actually a templar trap. The Warden stood with Anders against the templars, for which the mage was grateful.