Template talk:Navbox small
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)