Template talk:Activity2

For Usage see Template:Activity2. Template was updated so that there is a third argument called header. It takes values in the set {0,1,2,3}. The default is 0 which means that the template is not included in the TOC. Values 1 to 3 correspond to the i in the tag and are represented in the TOC. For additional information see Template:Activity Kruhly 21:18, 17 March 2007 (CET)

The syntax with the #switch statement invoking a header inside or outside the decoration causes the righthand section edit links to get confused. This is documented at Help:Section#Editing_sections_of_included_templates. To help reduce the risk of lost data, has been added to the cases, header = {1,2,3} so that section editing is not available. Limited testing on User:Kruhly/Sandbox has shown that this works for the time being (ie the original behavior still exists for header=0, and header = {1,2,3} lists the template in the TOC). It would be nice to figure out a way around this limitation so that section editing could be available for all cases. -- Kruhly 20:47, 19 March 2007 (CET)