Jump to content

Template talk:Alphanumeric TOC

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Please help

[edit]

I've been trying to get this to work, but can't get it to work. I'm using IIS. Maybe its being interpreted differently? I'm getting much of the code, such as:

Contents{{{multiline|:}}} {{{numbers|[[#{{{prefixLink|}}}0–9|{{{prefixDesc|}}}0–9]]}}}{{{a| [[#{{{prefixLink|}}}A|{{{prefixDesc|}}}A]]}}}

--209.22.68.28 12:09, 6 March 2006 (UTC)[reply]

I don't know what IIS is, but can you give an example of where you were trying to use it? —Mike 06:38, 15 March 2006 (UTC)[reply]
IIS is a web-server which leads to the assumption that the query relates to an external site. in this case the version of MediaWiki becomes relevant because the use of parameter defaults is not available prior to version 1.6. HTH HAND —Phil | Talk 14:52, 2 May 2006 (UTC)[reply]

Parameters for extra sections on page?

[edit]

Very nice template. Would it be possible to add parameters to allow for insertion of extra sections, as with Template:CompactTOC3? Would seem to be a simple matter of inserting the following parameter code from the other template:

{{#if:{{{Sec1|}}}| - [[#{{{Sec1}}}|{{{Sec1}}}]]|}} {{#if:{{{Sec2|}}}| - [[#{{{Sec2}}}|{{{Sec2}}}]]|}} {{#if:{{{Sec3|}}}| - [[#{{{Sec3}}}|{{{Sec3}}}]]|}}

This template would then have all the bells & whistles. My only concern is obviously breaking current instances of the template. --KeithB 20:08, 16 November 2006 (UTC)[reply]

It looked like most of the pages found at Special:Whatlinkshere/Template:CompactTOC3 could use this template without modification. But because there are a few that have other sections besides the standard appendices, I added five optional section links to this template. —Mike 03:49, 18 November 2006 (UTC)[reply]
Thanks! It looks great. I've already put it into use at List of Ohio county name etymologies. I had been experimenting with the template mod, but I didn't get the time, and the nerve, to make the change. --KeithB 03:57, 18 November 2006 (UTC)[reply]

Remove "Top of Page"?

[edit]

Is there a way to not show the "Top of Page" link? I monkeyed with it in the sandbox and can get rid of "Top of Page", but then there's the hassle of the dashes in between and when to have one. Thoughts? -- SatyrTN (talk | contribs) 20:51, 20 December 2006 (UTC)[reply]

Because of the dashes, it was impossible to do when I first created the template. But now that ParserFunctions can be used, it is not too hard though it does add bulk to the code. —Mike 00:18, 28 December 2006 (UTC)[reply]
Thanks! That's great! -- SatyrTN (talk | contribs) 05:36, 28 December 2006 (UTC)[reply]
[edit]

Is it OK to use Template:Alphanumeric TOC repeatedly on a page to make a navigation bar below every section heading? On a long page with an alphanumeric TOC, having a copy of the navigation bar at every section heading would make navigating much simpler. For example, if I am looking at section Q and I want to see section D, currently I have to scroll to section D, or navigate manually to the top of the page to use the TOC link. On a long page that can become tedious. By "is it OK" I mean two things:

  • Are there any technical reasons not to do this?
  • Are there any policy reasons not to do this?

--Teratornis 18:01, 19 February 2007 (UTC)[reply]

There isn't anything saying you can't do it. —Mike 04:50, 20 February 2007 (UTC)[reply]

Omit label?

[edit]

Thanks so much for this—it's awesome!

Could you please provide the ability to hide Contents? I'd like to fit this into some pretty tight spaces; eliminating the word would really help. Thanks.Chidom talk  18:15, 10 April 2007 (UTC)[reply]

Line break

[edit]

{{editprotected}} This template inserts a line break before itself without reason. Can some admin, please, remove the line break before the <table> on the second line (i.e. join first and second line)? Thanks. Svick (talk) 01:41, 7 February 2010 (UTC)[reply]

Hopefully  Fixed — Martin (MSGJ · talk) 09:05, 7 February 2010 (UTC)[reply]

Edit request from , 11 October 2011

[edit]

Request to be added suffixLink parameter to match prefixLink parameter, but non-displayed. Click on Wikipedia:Requested articles/Arts and entertainment/Literature#Books and select one of the section links. This takes you to Wikipedia:Requested articles/Arts and entertainment/Literature#H; instead it should link to Wikipedia:Requested articles/Arts and entertainment/Literature#H_2, as that section is the second set of alphanumeric subsections on that page. It should look something like

{{{a|[[#A_{{{suffixLink|}}}|A]]}}}

FiveColourMap (talk) 17:00, 11 October 2011 (UTC)[reply]

 Done Seems sensible. I also added a suffixDesc parameter to match prefixDesc. Anomie 02:15, 12 October 2011 (UTC)[reply]
That works great, thank you very much! FiveColourMap (talk) 15:37, 13 October 2011 (UTC)[reply]