Difference between revisions of "Template talk:Navbox small"
(Should be fixed, I think) |
(Thanks! some ideas on namespace) |
||
Line 2: | Line 2: | ||
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? --[[User:Rednaxela|Rednaxela]] 05:04, 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? --[[User:Rednaxela|Rednaxela]] 05:04, 26 April 2009 (UTC) | ||
+ | |||
+ | Yeah, correct. Thank you very much! The 3= and 4= thing is not necessary. About the namespace, <nowiki>{{FULLPAGENAME}}</nowiki> 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) : | ||
+ | <pre> | ||
+ | ; {{{title|Navigation}}}<nowiki>:</nowiki> | ||
+ | :<!-- | ||
+ | -->{{if|test={{{parent|}}}|then={{ifeq|{{{parent}}}|{{PAGENAME}}|<!--nothing-->|{{ifeq|{{{parent}}}|{{FULLPAGENAME}}|<!--nothing-->|[[{{{parent}}}]] - }}}}}}<!-- | ||
+ | -->{{if|test={{{page1|}}}|then=[[{{{parent|{{FULLPAGENAME}}}}}/{{{page1}}}{{!}}{{{title1|{{{page1}}}}}}]]}}<!-- | ||
+ | -->... | ||
+ | </pre> | ||
+ | This way will match parent even user specify namespace to parent. Comments are welcome. » <span style="font-size:0.9em;color:darkgreen;">[[User:Nat|Nat]] | [[User_talk:Nat|Talk]]</span> » 08:04, 26 April 2009 (UTC) |
Revision as of 09:04, 26 April 2009
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)