Template talk:Navbar-header

(Redirected from Template talk:Tnavbar-header)
Latest comment: 14 years ago by Ebraminio in topic needed?

Questions

edit
  • When using the code:
    {{Tnavbar-header|Heading|Name of Template|fontcolor=#html color code}}
    in order to specify a font colour, it seems that the " v . t . e " text remains black. Is there a way to specify a font colour which applies to both the header text and the " v . t . e " text? --MLD 12:59, 12 October 2006 (UTC)Reply
Yes I am also frustrated by this. It appears that the "fontcolor" option does not even work. What's more is that it definately doesn't work for links, but it needs to override the link color. Is anyone around to address this? --MattWatt 02:50, 30 March 2007 (UTC)Reply
This issue still appears to be present. Does anyone know what code needs to be added to the template to fix it? – TMF 01:12, 6 March 2009 (UTC)Reply
Should be fixed now. EdokterTalk 02:27, 6 March 2009 (UTC)Reply
Looks good, thanks. – TMF 04:21, 6 March 2009 (UTC)Reply

transclusion in NavigationBox

edit

It seems this latest change breaks transclusion in NavigationBox template.

See: Template:Emir_Kusturica_Films for an example of how I'm using this template. Perhaps I should fork this version to a new template if these changes are required? // Laughing Man 19:06, 24 October 2006 (UTC)Reply

Testing

edit

Could someone show me a broken page using the new version at {{Tnavbar-header2}}? ed g2stalk 09:28, 25 October 2006 (UTC)Reply

It seems this one doesn't break NavigationBox template anymore, I can't speak for other templates though of course... User:Laughing_Man/sandbox/Tnavbar-header uses Tnavbar-header2 and it seems fine. // Laughing Man 11:57, 25 October 2006 (UTC)Reply
Tnavbar-header2 seems good. My only concern is that for most browsers there's no line breaks introduced and that the header occupies 100% of the width of a heading cell (which is what <table width="100%"> accomplishes. (Netscott) 15:06, 25 October 2006 (UTC)Reply
What do you mean? The div is also 100% width by default. ed g2stalk 15:28, 27 October 2006 (UTC)Reply
Note
For anyone editing this template, please be sure to see this test page for samples that use this template and test any changes you have made. Recent changes have been breaking certain usage of this template. Thanks // Laughing Man 17:46, 29 October 2006 (UTC)Reply

Height of box

edit

Please reset to the old height. Just about everything on wikipedia has been formatted to fit in with the original height being used. If needed this can be adjusted with additional formatting on the other users template. Niall123 20:05, 28 October 2006 (UTC)Reply

Niall123, we did some testing with User:Ed g2s's CSS changes (moving from <table> to straight <div> code) and there seemed to be no problems. Can you give us a specific example of a template that had been negatively impacted as a result of those changes? Thanks. (Netscott) 20:38, 29 October 2006 (UTC)Reply

history?

edit

Do we really need direct link to history?

view / edit / talk seems to be more than enough already in my opinion. // Laughing Man 01:24, 29 October 2006 (UTC)Reply

I tend to agree but not strongly. User:Instantnood added it. Do you think the extra 'h' in v·d·e·h has a negative impact? I'm not so sure... the extra 'h' seems benign to me. (Netscott) 01:35, 29 October 2006 (UTC)Reply
Not necessarily that much of a negative impact, it just makes it a bit more confusing than it already is, and a little more difficult to click on the exact link. Maybe just v·d is enough -- although if we did go this route we should probably change the d to a t it to avoid any other connotations ;) // Laughing Man 01:47, 29 October 2006 (UTC)Reply
Let's just sit tight for a day or two and see if there are any complaints.... I don't think it makes it that confusing... a simple hovering of the mouse cursor above each link explains what it does. (Netscott) 02:06, 29 October 2006 (UTC)Reply
Please revert and remove history. There is no need for it and its fucking up the hiehgt of certain templates aswell. Niall123 12:38, 29 October 2006 (UTC)Reply
Agree with above. There’s no need that I can see for a direct link to history. I also think it’s looks a bit messy with the extra letter. Kanaye 15:30, 29 October 2006 (UTC)Reply

Agree with most here. No history link thanks. And having only v·t is a proposal I like. – ElissonTC 16:38, 29 October 2006 (UTC)Reply

Text / graphics

edit

Wouldn't it look cool to replace the v e t links with small pictograms? They would be easy to create and and probably they would make those links more intuitive (images are easier to understand than one-character links I think), apart from the box probably looking better. CompuChip 10:11, 15 November 2006 (UTC)Reply

This is technically possible but unfortunately it is not very practical. See Template:Islam where one can click on the image of the Mosque and be taken to the Islam article. The problem lies in the fact that this code is fairly extreme and only the very latest browsers tend to support it correctly. Other than the Template:Islam technique I'm not aware of how one could make images clickable. (Netscott) 20:01, 15 November 2006 (UTC)Reply
Doesn't the {{Click}} template do just that? It does seem to have some problems with accessibility though. --CompuChip 10:54, 27 November 2006 (UTC)Reply

Need help (Immediate Response Requested)

edit

How can we position the "v-d-e" tool to the far left??? --WIKISCRIPPS 07 TUE DEC 26 2006 9:57 PM EST

You can use {{Tnavbar|Name of Template|mini=1}} and position the v•d•e links where you want. (Netscott) 07:20, 27 December 2006 (UTC)Reply
Perhapse we could make something like {{Tnavbar-collapsible}} and {{Tnavbar-navframe}}, for navboxes using collapsible and NavFrame repsectively? I know we've relatively recently changed the behavior of collapsible recently; I'm unsure how the change was handle with navigation boxes. —The preceding unsigned comment was added by Dispenser (talkcontribs) 20:03, 31 December 2006 (UTC).Reply

fontcolor necessary?

edit

As far as I can't tell {{tnavbar-header|1=<span style="color:#007">Title</span>|2=TemplateName}} will do the same thing as the fontcolor parameter. Should we deprecate this parameter? --Dispenser 02:43, 5 January 2007 (UTC)Reply

I wouldn't. However, it appears to me that the "fontcolor" option does not work for me. Moreso, I would prefer that the "fontcolor" option override the default browser link colors. This does seem to work for the normal {{tnavbar}}. --MattWatt 02:53, 30 March 2007 (UTC)Reply
Looking at the source I think I can see where the mistake lies... Does anyone still have permissions to edit this? --MattWatt 03:05, 30 March 2007 (UTC)Reply

This still needs to be fixed. I don't see the issue, but if someone tells me on my talk page, I'll edit it.↔NMajdantalk 20:21, 18 October 2007 (UTC)Reply

Be aware that the fontcolor option will never work if the title is wiki-linked, as [[ ]] will always override the sytle set outside the link with the style associated with wikilinks. The only way to cheat this is by using a piped link with a span inside the wiki-link, like this:
[[Title|<span style="color=#fff">Title</span>]]
EdokterTalk 22:26, 18 October 2007 (UTC)Reply

no mini?

edit

Just wondering why there isn't a version of this template without the Mini style. Personally I prefer the look of |plain=1|mini=0|. Is there any way we can make this an option? --MattWatt 02:14, 30 March 2007 (UTC)Reply

Please see my not so recent edits of {{Tnavbar-header2}}. The changes seem to be in working order and compatible with the goals of this template. I would like to request that the changes I have made there be included in this template. --MattWatt 21:46, 10 April 2007 (UTC)Reply

{{editprotected}}

Please put the editprotected tag just beside your request. It would be much easier for an admin to make this change if you write the code in a sandbox and test it, then let us know so we can do the edit by cutting and pasting the entire source code. CMummert · talk 23:46, 10 April 2007 (UTC)Reply
Ok, thanks for the tip. I wasn't sure where it needed to be placed. What I have done is tested the code over on {{Tnavbar-header2}}, which from my understand has the sole purpose of testing changes for this template. Perhaps I am not understanding something. I believe my edit is the most recent one on that template. I wrote my code with the idea of just doing a cut and paste in mind and I believe that is all that would be required. I am seeking opinions on whether you all feel my changes are beneficial, and if so, if they could be included in this template. --MattWatt 05:46, 11 April 2007 (UTC)Reply
 Y Done. Note that it may take a while for this to be changed on existing uses of the template. --ais523 11:14, 12 April 2007 (UTC)
Thank you very much! --MattWatt 18:47, 12 April 2007 (UTC)Reply

Aligning of tnavbar [editprotected]

edit

{{Editprotected}} When the template is aligned to the right, it clashes with the [show]/[hide] function. Can we add an extra parameter to allow it to be aligned to the left if required (e.g. |align=left, or similar)? Sebi [talk] 21:23, 14 September 2007 (UTC)Reply

Seems reasonable. Write and test the code, and then request an admin to copy it over here. If you need help with the code, you can get it at Wikipedia:Requested templates. — Carl (CBM · talk) 20:39, 15 September 2007 (UTC)Reply
<div style="text-align:center;position:relative;white-space:nowrap; {{#if:{{{fontcolor|}}}| color:{{{fontcolor}}};}}">{{{1}}}<!--

--><includeonly><!--
-->{{Tnavbar|{{{2}}}<!--
-->|{{#ifeq:{{{plain|}}}|<!--equals:-->1 |<!--then:-->plain=1 |<!--else:-->mini=1}}<!--
-->|{{#if:{{{fontcolor|}}}|fontcolor={{{fontcolor}}}}}<!--
-->|style=position: absolute; {{{align|right}}}: 0; top: 0; margin: 0 5px;}}<!--
--></includeonly>
Spebi
We already have {{tnavbar-collapsible}} and {{tnavbar-navframe}} which are specifically designed to work with the show/hide functionality. Please read through the documentation before posting silly request. —Dispenser 03:38, 16 September 2007 (UTC)Reply
What problem is there with having templates that can be easily amended to fit a template's needs? A template might not use the show/hide function, but needs the v·d·e links to appear on the left. I fail to see how this is a "silly request", in fact it's a perfectly valid request. Sebi [talk] 03:43, 16 September 2007 (UTC)Reply
Could you give an example when the v-d-e would need to be on the left? As far as I know the show/hide are the only ones and those are much better served with a template that can incorporate more code to fix the specific problems. Keep the code simple, don't add in unneed complexity. —Dispenser 04:14, 16 September 2007 (UTC)Reply
It's just one extra parameter, not doing any harm by just being in there, nor is it making the template syntax more complicated than it is. Sebi [talk] 04:20, 16 September 2007 (UTC)Reply
This is the classic example of feature creep. The feature is small if the template stays implemented the way it is now. However, if we moved back to a table-based style, we would need to use a if-else statement to continue to keep this feature working. Thus, that 1 extra feature has an enormous cost just within the template itself. It will increase the transcluding size. Require a regression test. And in two years when somebody cleans this up, they will conclude that is wasn't used on more than ten templates. —Dispenser 05:06, 16 September 2007 (UTC)Reply

Alignment question

edit

Why is this aligned to the right at all? if the default navbox format has hide-right, VDE-left, shouldn't this template maintain that uniformity by putting VDE on the left, even if the hide isn't there? TheHYPO 04:19, 4 December 2007 (UTC)Reply

Documentation

edit

{{editprotected}} {{/doc}} → {{documentation}} 16@r (talk) 00:06, 10 March 2008 (UTC)Reply

  Done. עוד מישהו Od Mishehu 06:17, 10 March 2008 (UTC)Reply

Passing HTML

edit
  Resolved

- see #Adding_spans, below.

Please see this edit, which broke because I tried to pass an HTML span to {{Tnavbar-header}}. Any suggestions on how to achieve what I was trying to do would be appreciated, please. Andy Mabbett | Talk to Andy Mabbett 15:25, 23 August 2008 (UTC)Reply

I thought I had make this clearer, just use {{tnavbar-header|1=<span style="color:blue;">title</span>|2=Pagename}}. — Dispenser 17:50, 23 August 2008 (UTC)Reply
Thank you, but I'm not sure how that relates to what I was trying to do in the cited edit, what do you mean by "HTML title"? Andy Mabbett | Talk to Andy Mabbett 18:01, 23 August 2008 (UTC)Reply
Changed example to better illustrate. You need name the parameters if you want the content to contain an = sign. — Dispenser 19:55, 23 August 2008 (UTC)Reply
Thank you, but that's still not right. Andy Mabbett | Talk to Andy Mabbett 10:11, 24 August 2008 (UTC)Reply

vde thing being screwed up on small edit boxed

edit

See for example

It occurs whenever the title is larger than the rest of the template.Headbomb {ταλκκοντριβςWP Physics} 10:15, 19 December 2008 (UTC)Reply

wooot content rules the waves
No it happens when the rest of the table is less wide than the title used by Tnavbar-header. Your best bet is to use tnavbar separately, Though the better idea might be not to use a navbar at all in cases like this (does it really need editing that much, when there is no content apparently ?). --TheDJ (talkcontribs) 10:07, 3 April 2009 (UTC)Reply
Thanks for the correction. As for the no-content its an extreme example, but it illustrates what happens in cases such as Template:Flavour quantum numbers.Headbomb {ταλκκοντριβς – WP Physics} 10:40, 3 April 2009 (UTC)Reply

Adding spans

edit
  Resolved

This edit broke the template. How can it be made to work? Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 21:25, 29 April 2010 (UTC)Reply

  • It looks like the equals sign in your span is causing everything after it to be treated as a template parameter. Change the code to this (i.e. add the "nowiki" tags before and after the equals sign:
{{Tnavbar-header|'''<span class<nowiki>=</nowiki>"country-name">Cincinnati Bengals</span> roster'''
|Cincinnati Bengals roster 1|plain=1|fontcolor=#FFFFFF}}

That should make it work. --CapitalR (talk) 08:46, 30 April 2010 (UTC)Reply

That's done the job; thank you. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 08:53, 30 April 2010 (UTC)Reply

needed?

edit

hi, this template is really needed? there is not any program for merge/tranclude it? --ebraminiotalk 23:39, 17 September 2010 (UTC)Reply