Template talk:Asterix

From Wikipedia, the free encyclopedia

WikiProject Comics This article is in the scope of WikiProject Comics, a collaborative effort to build a comprehensive and detailed guide to comics on Wikipedia. Get involved! Edit the article attached to this page or discuss it at the project talk page. Help with current tasks, or visit the notice board.
Template This article has been rated as template-Class on the quality scale. Please explain the rating here.
??? This article has not yet received a rating on the Project's importance scale.

[edit] Rogue code appearing

At bottom of the template, when in use, the following text is appearing:

{{#switch:book | b | books | book = | m | movie | movies | f | films | film = | g | games | game = |

I have no idea what it is for (even having looked at the template code). Could someone fix this please?

EdJogg 11:31, 19 January 2007 (UTC)

This is the code that sorts the various articles using the template into their appropriate categories. when the template was made collapsible it stopped being treated as code and dropped into the article directly (causing all articles using the template to be placed in all categories (book,game,film & general) ... collapsible would be nice, but the damage it caused isn't worth it, so I've reverted to the (working) non-collapsible version for now ---Invisifan 15:19, 19 January 2007 (UTC)
On closer examination it appears the when Dispenser added the collapsibility option he erased a couple of critical closing braces from the parser function - I'll rv & correct that and hopefully we'll have the best of all possible templates ;-) --Invisifan 15:37, 19 January 2007 (UTC)
Well the rogue code has certainly gone now! Thanks. EdJogg 16:43, 19 January 2007 (UTC)