Template talk:Navbox small

From Robowiki
Revision as of 09:04, 26 April 2009 by Nat (talk | contribs) (Thanks! some ideas on namespace)
Jump to navigation Jump to search

Hey all. Can anyone look at the (commented) ifeq line at the template? I don't have any ideas why it don't work. Help me! » Nat | Talk » 03:12, 26 April 2009 (UTC)

If I understood your intention correctly, it now works! I'm not sure what was happening with those 3= and 4= things so I nested it. What it now does is what you wanted, right? --Rednaxela 05:04, 26 April 2009 (UTC)

Yeah, correct. Thank you very much! The 3= and 4= thing is not necessary. About the namespace, {{FULLPAGENAME}} should handler namespace correctly so I think we can make a change to make this template work in other namespace than (main) namespace. Currently, if you want to use it in other namespace, you need to specify parent with namespace. Just thinking, will this better for the template (I do not want to broke the template) :

; {{{title|Navigation}}}:
:<!--
-->{{if|test={{{parent|}}}|then={{ifeq|{{{parent}}}|{{PAGENAME}}|<!--nothing-->|{{ifeq|{{{parent}}}|{{FULLPAGENAME}}|<!--nothing-->|[[{{{parent}}}]] - }}}}}}<!--
-->{{if|test={{{page1|}}}|then=[[{{{parent|{{FULLPAGENAME}}}}}/{{{page1}}}{{!}}{{{title1|{{{page1}}}}}}]]}}<!--
-->...

This way will match parent even user specify namespace to parent. Comments are welcome. » Nat | Talk » 08:04, 26 April 2009 (UTC)

You cannot post new threads to this discussion page because it has been protected from new threads, or you do not currently have permission to edit.

There are no threads on this page yet.