Editing Forum:Template problem

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 8: Line 8:
 
I don't know enough about how the templates work to pin it down exactly, but there is one possibly suspect difference between the [[Template:InfoboxSubsectorSimple]] and [[Template:InfoboxSubsector]]. The first one says that the 'alg' code defines the colour of the bar and does something about categories. The second one only refers to the colour of the bar. I wonder if that points to where in the template definition the problem is?  [[Special:Contributions/212.219.243.126|212.219.243.126]] 07:02, 18 June 2015 (EDT)
 
I don't know enough about how the templates work to pin it down exactly, but there is one possibly suspect difference between the [[Template:InfoboxSubsectorSimple]] and [[Template:InfoboxSubsector]]. The first one says that the 'alg' code defines the colour of the bar and does something about categories. The second one only refers to the colour of the bar. I wonder if that points to where in the template definition the problem is?  [[Special:Contributions/212.219.243.126|212.219.243.126]] 07:02, 18 June 2015 (EDT)
  
:: Yes, the problem was the category generation at the bottom of the template based upon the Alg parameter was missing a bracket "{". Using a template requires two brackets (like this: "<nowiki>{{</nowiki>" and "<nowiki>}}</nowiki>"). Using a named parameter in a template requires three brackets (like this: "{{{" and "}}}"). So in one template, passing a parameter to another template (recursively) you end up with large sequences of brackets (like "}}}}}"). As you can imagine, it's easy to get this wrong.  
+
:: Yes, the problem was the category generation at the bottom of the template based upon the Alg parameter was missing a bracket "{". Using a template requires two brackets (like this: "{{" and "}}"). Using a named parameter in a template requires three brackets (like this: "{{{" and "}}}"). So in one template, passing a parameter to another template (recursively) you end up with large sequences of brackets (like "}}}}}"). As you can imagine, it's easy to get this wrong.  
 
:: Part of the reason this was not fixed was we're deprecating the use of the [[Template:InfoboxSubsectorSimple]]. If you are editing a page where this template is used, please replace it with [[Template:InfoboxSubsector]].  
 
:: Part of the reason this was not fixed was we're deprecating the use of the [[Template:InfoboxSubsectorSimple]]. If you are editing a page where this template is used, please replace it with [[Template:InfoboxSubsector]].  
 
:: [[User:Tjoneslo|Tjoneslo]] ([[User talk:Tjoneslo|talk]]) 08:47, 18 June 2015 (EDT)
 
:: [[User:Tjoneslo|Tjoneslo]] ([[User talk:Tjoneslo|talk]]) 08:47, 18 June 2015 (EDT)
  
 
: I have also noticed this problem. [[Template:InfoboxSubsector]] preference noted. Thanks, Thomas. [[User:Maksim-Smelchak|Maksim-Smelchak]] ([[User talk:Maksim-Smelchak|talk]]) 08:53, 18 June 2015 (EDT)
 
: I have also noticed this problem. [[Template:InfoboxSubsector]] preference noted. Thanks, Thomas. [[User:Maksim-Smelchak|Maksim-Smelchak]] ([[User talk:Maksim-Smelchak|talk]]) 08:53, 18 June 2015 (EDT)

Please note that all contributions to Traveller are considered to be released under the Traveller Copyright (see Copyright for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Template used on this page: