Forum:Header Template

I would like a Template that would replace == A == that will provide an [edit] link to the section (with preferably with out have to subst: the code) as well as a [top] link that jup back up to the pages TOC. soit itt would look something like -- 04:28, July 15, 2010 (UTC)


 * I think it might be easier to add some custom javascript or CSS that added a "top" link next to the edit link in a section header. This would probably be easier, and prevent a massive amount of server load were you to ever edit the template (as it is transcluded into almost all the pages in the wiki) -- Random Time  08:29, July 15, 2010 (UTC)
 * Not it not going to be used on all pages, it for List pages only. Basically long page where jumping back and forth between the TOC and the sections is important. And most articles on the wiki are not list pages. -- 09:20, July 15, 2010 (UTC)
 * The code will jump to TOC.

So if Template:ListHead was:

would produce:

A
Top


 * I don't think you can produce the section header to have [edit] [top] - at least not withought custom CSS. -- Random Time  12:38, July 15, 2010 (UTC)

Allright, this is probably how you wanted it.

Example [ top ]
The coding for the template would be: == [ top ]   ==

To create a section called: "example", use. Mark ( talk ) 13:32, July 15, 2010 (UTC)
 * I was trying to avoid having the [top] show up in the TOC, but yes - you can do that. As there's only one argument in that template, I think that:

== [ top ]   ==


 * would be a more appropriate code -- Random Time  13:53, July 15, 2010 (UTC)