User talk:Schthaxe
Add topicAppearance
Latest comment: 15 years ago by Schthaxe in topic navcontent extension
navcontent extension
[edit]Hi, I saw on the discussion page that you got the extension working with templates that had parameters in them, I tried following your instructions but I ended with nothing expanding when you clicked on it. i think the problem is either with the getparam and addparam part, or in the navcontent.js file and I was wondering if you would be able to give me a hand. I'm running MW 1.15, thanks redekopmark 05:27, 20 July 2009 (UTC)
- well, my working wiki is at www.fourfa.info now. i'm using mw1.13.5, but i think that's not important - i didn't modify any of wiki itself for navcontent. How can i help you... well, first, try to download my version - www.fourfa.info/nav.rar. in globals you can get #getparam itself, also helpful for debugging #getlist - it shows list of all params passed via GET to page. --Schthaxe 09:34, 20 July 2009 (UTC)
- okay, thanks, that helped some but I'm still having some trouble, now when I go to expand a section of the navcontent it loads and says Undefined. All I'm wanting to do is pass through a template that displays data based off the value of {{PAGENAME}}. I tried looking at the templates that you have on your site but, they're rather complex and I got a little lost (you have some pretty crazy templates). The page that I'm working on can be found here. thanks for any help that you can offer redekopmark 05:09, 22 July 2009 (UTC)
- i edited your pages as i thought it would work but it still wouldn't :( Well you must understand that your nested navcontent pages will NOT receive PAGENAME of the page they was included, their PAGENAME is the template:... itself. for example if on page named NEWYORK you place {{#navcontent:Buildings|Template:Buildings}}, then PAGENAME and BASEPAGENAME through Template:Buildings will be Template:Buildings and not NEWYORK as you seems supposed (because of that template is just ajax'ed - think of it deeply!). therefore using PAGENAME and BASEPAGENAME is TOTALLY USELESS. and therefore my #getparam is needed. --Schthaxe 17:07, 22 July 2009 (UTC)