Forum:Broken template?

From Traveller Wiki - Science-Fiction Adventure in the Far future
Revision as of 06:14, 15 May 2015 by Tjoneslo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Forums: Index > Watercooler > Broken template?



Hi. I don't have a account on the wiki but I do look at it and try and make minor improvements. I was looking through various pages and noticed that some have odd additions at the top of the page, eg Golden Age Starships 5: Cutters and Shuttles and Adventure 2: Range War both of which are showing ", T20 Books" with the words in red. These seem to correspond to situations where there are two entries in the right hand info box for "Version". Swapping the order of the two entries makes the extraneous text correspond to whatever entry is second on the line. Presumably there is some template that takes this data and uses it in other places in the wiki. This suggests there might be other cases where this happens as there are other situations where an info box has more than one entry for a parameter, eg "Author". 212.219.243.126 03:49, 15 May 2015 (EDT)


The Template:InfoboxBook add categories to the page based upon the parameters version, publisher, and year. But the process assumes only one entry for each, and that the version and publisher parameters are links (i.e have [[ and ]] characters in them). The red text at the top of the page is the remainder of the category generation. There are other cases where putting the text into this parameter breaks it.
The solution for this is to pick one Traveller version (e.g. T20) for the version parameter in the template. Tjoneslo (talk) 06:14, 15 May 2015 (EDT)
PS. Thank you for your assistance in cleaning up the wiki!