Extension talk:NavContent

$wgNavContentRenderMath = 'renderTex'; doesn't work for me.
It loads the page but doesn't render with MathJax.

It looks like this in my LocalSettings file:

$wgDefaultUserOptions['mathJax'] = true;

MathJax_Parser::$MathJaxJS = 'http://localhost:8080/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML';

$wgUseMathJax = true;

$wgJQueryRoot = "$IP/skins/common";

$wgNavContentRoot = "$IP/extensions/NavContent";

$wgNavContentRenderMath = 'renderTex';

include_once( "$wgNavContentRoot/NavContent.php" );

Any ideas?

It's not working in Opera.
In MS IE, Firefox it is working fine.

It's not working with "recaptcha" an d other extensions like "inputbox"

Not working for me

 * MW 1.12
 * RHEL5

Installed everything. Output is just: i.e. no formatting at all, just the text.

Update: It seems to be just showing the Answer right away with clicking on "Answer."

User hide
Can we, as users making a page, set the contents box to hide as default, allowing the visitor to click the "(show)" link to see the table? I know how to eliminate the contents box, I was hoping there was a way to include it but hidden. 72.79.198.22 02:29, 29 September 2008 (UTC)

some changes to workflow of this extension
Some brief touches if you want to. this extension is increadibly great but lacks of options...

1. if you want to use different letter in bar instead of pipe | symbol - just replace | in string "&amp;nbsp;| " everywhere in NavContent.js. I use "&amp;nbsp;&amp;bull " combination for template:Language-like appearance. also set in NavContent.css and you get something very similar to Language bar.

2. if you want to open first link right after loading the page - then you must add this code right in the end of NavContent.js.

p.s. i'm not expert in jquery or in navcontent structure, maybe this code has some errors, i just create it after some hours of efforts, but i hope for further development of this extensions, and discussions. p.p.s. seems i need some more features, then more additions... Schthaxe 25 january 2009

the next part
well my previous add has error - print version shows only first block.

anyway. the next thing i try to add.

if you type - it works as described, but if you try to use something like it would not work and shows "UNEVEN number of arguments to #NAVCONTENT", because whole text "a|b|c|d" was passed as one argument (you can easily watch it by typing )

I need to create list of arguments by program (i want to create list by #Loop - #ifexist construction), so i patched NavContent.php

Find insert right after this

& #124; - is code for pipe character. you can't use  for delimiter in your template program (for example you MUST NOT use something like  ), so you can use this code instead  - it renders out just the same as a|b|c|d

User:Schthaxe 28 jan 2009

invoking of templates with parameters
it is easily to imagine some tasks when you need not only static articles in navcontent but those one that calling with parameters. of course you can countlessly clone template with only difference in substituted parameter, and if you do that you can stop reading here :)

notice 1. all invoked pages are opened via ajax thus they their and etc is pointing on themselves, not onto the page they're opened in.

notice 2. they are not "included", as template mechanism do, but fully parsed, therefore tags are fully included too, so this tag become useless.

for example, i want to create catalog of albums of rock-group, separated lyricpages for each songs in Song namespace and in "Groupname" category, and template that collected all songs in one page.

Albums|Discography:Rites of Spring|Songs|Template:LyricSheet~Rites of Spring

i use a tilde char as temporary replace for pipe char, but you can use any other. so, in this example navcontent must build "Songs" link that opens Template:LyricSheet|Rites of Spring.

i do it adding a parameter "addparam" to GET call in ajax.

1. create a simple magicword that returns addparam value. (you can look into variables extension on how to make it work)

2. patching of navcontent.php

1st part: for checking and working we must clean link from added parameter.

2nd part. after checking add it back and place on page

3rd part. in edit page we don't need an argument

4th part. then calling ajax, simply replace emporary argument separator with pipe. wiki understands you.

3 patch navcontent.js. building GET request, with addparam

this would work.

p.s. the remaining question is how i build a list of pages in category/namespace. well i do it by making magic word what put results of certain SELECT into magicworded array and when i make a template that looping through that array. but this is another story...

this is my Template:LyricSheet (pagetitle is array where values with "_", pagename - without)

--Schthaxe 10:56, 21 February 2009 (UTC)