Jump to content

Template talk:Cladex

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Template talk:Cladex/doc)

Bars

[edit]

I'm trying to put in a bar in the cladogram for Osteolepiformes, covering the relevant genera. My problem is that the bar seem to want to run all the way down:

[Template which was here removed by Peter coxhead (talk) as following the fix to the template it does not now display as described]

Any solution to this? Petter Bøckman (talk) 11:13, 21 June 2011 (UTC)[reply]

Petter, I must apologize because when I put up the note at WT:TOL, I thought the documentation was complete. Actually I had revised the documentation but not saved it and I lost my edits while messing about and had to start again. Template:Cladex/doc#Limitations, work-arounds is now how it should have been. One of the reasons I have been so long in moving this template out of my space is that it has very serious limitations, which I hoped to be able to overcome, but haven't been able to. I'm not sure how generally useful the template actually is, to be honest, but there are some cases which work so I thought it might be worth making it available. I suspect that your example won't work. I'm really pushing the limits of the way that these templates work, namely by constructing a complex table with some borders visible and relying on the browser to work out how to display it.
I'll have a look at your example later today, but I'm not very hopeful. Peter coxhead (talk) 12:02, 21 June 2011 (UTC)[reply]
Well, if it works it will, if it doesn't it won't (this makes sense in Norwegian, not sure about English). Don't feel bad, compared to me you're a downright wizard! Petter Bøckman (talk) 12:51, 21 June 2011 (UTC)[reply]
Yes, it's fine in English too! I think what you want is what is currently the second diagram at User:Peter_coxhead/Test/Clade#Petter.27s_Example. The first diagram is what you get if the syntax of {{cladex}} is fixed. I produced the second diagram by editing the HTML produced by the first, so in theory I can alter {{cladex}} to produce what I got by manual editing... We'll see. It's good to have a real, complex example to work on. Peter coxhead (talk) 14:34, 21 June 2011 (UTC)[reply]
Ok, I've now managed to fix this. The cladogram below should, I think, be what you want.
Tetrapodomorpha      "Osteolepiforms"

Note that you had the numbers wrong on the bar parameters; see Template:Cladex#Debugging and the source of the example above. Also, because you had originally put the closing }} on the same line as the last parameter, you had accidentally put new bar parameters outside the clade by putting them after the }}. The old version would have drawn the bars in the correct places but they would not have lined up. Now they do!!! (Well in my browser anyway.) Peter coxhead (talk) 15:38, 21 June 2011 (UTC)[reply]

It looks great at my end too! Thanks! Petter Bøckman (talk) 17:44, 21 June 2011 (UTC)[reply]

Giving the brackets/bars text labels

[edit]

Labelling the brackets/bars is now possible: see {{Barlabel}}. There is not 100% uniformity of placement of the labels across browsers, but it seems to work quite acceptably in those tested so far (final tests of IE6 are pending).

Note that accessibility guidelines require pages not to rely on colour alone, so particularly if there is more than one bracket/bar, you should provide a text label. Peter coxhead (talk) 10:27, 1 July 2011 (UTC)[reply]