Template talk:House Info

From Nookipedia, the Animal Crossing wiki

Replacing f1, f2... with furn1, furn2...[edit]

Heads up that I plan to update the template to rename f1, f2, f3 (etc.) to furn1, furn2, furn3 (etc.). This will give the furniture name parameters a unique prefix (furn), which allows us to use the Loops extension to generate each item, instead of having to have 23 copies of the same code.

To avoid disruption to villager pages, I'm going to add an if-statement that surrounds the whole template and checks to see whether f1 or furn1 is being used, and then renders the correct version of the template accordingly. This way there will be no disruption as I go through to update all the villager pages w/ the new parameters. ~SuperHamster Talk 04:17, June 8, 2020 (EDT)

Done! ~SuperHamster Talk 04:42, June 9, 2020 (EDT)

Minor Display Error[edit]

New house info templates were created for each game, so now the furniture images display properly. HylianAngel (talk) 18:56, December 5, 2020 (EST)
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page.

It seems that too many "House Info" templates existing on 1 page will cause a minor display error. The New Leaf and New Horizons boxes will not generate furniture icons in the default variation, even if the name is correct and an image of the furniture exists. It will only display furniture icons that have an alternate image specified. The default furniture icons only show up in the "show preview," and also during "show preview," there is this warning: "Warning: The category Pages with too many expensive parser function calls was detected incorrectly by , and as a result this preview may be incorrect. This can be caused by including categories inside of statements, and may result in inconsistent display." You can see examples of this on Monique, Pudge, Rasher, and Vesta's pages, but this happens for any page with I think either 5 or 6 "House Info" templates. Maybe 4? 1-3 is for sure fine. Also I suspect it might be the number of furniture icons, so only the last ones (with no alternate image specified) are affected. HylianAngel (talk) 06:30, November 4, 2020 (EST)

Thanks for detailing this! I believe the main issue is how much we currently use #ifexist to double-check for the existence of images before displaying them, sometimes with a lot of fallbacks (e.g. "if an NL icon doesn't exist, check if an HHD icon exists and display that") - and these add up as the template is used multiple times. Something I've been meaning to do is split this template into separate house templates per game, and as part of this we'll be able to greatly reduce the use of #ifexist. I can hopefully work on this later today. ~SuperHamster Talk 10:45, November 4, 2020 (EST)
No problem, thank you for all the help. HylianAngel (talk) 14:39, November 4, 2020 (EST)