Template talk:Navbox

From Religions Wiki

Initial setup[edit]

Missing Modules[edit]

Hmm, back to the drawing board. Seems this template requires allot of other modules Wikipedia has that Iron Chariots lacks.

I think it is important that this template is made to work so that the layout and navigation of Iron Chariots can be brought inline with the other wikis that people are used to using.

As i see it, there are two options. Try to copy all the necessary modules required from Wikipedia, or try to rebuild the template from scratch.

I'm inclined to go with the latter option as it will allow us to simplify the back end, as i'm sure that there are a multitude of additional options on the wikipedia version we will never need. However if this option is taken, i think it is important that the overall functionality of the I/O variables works the same for possible further integration later down the line. In other words, the hierarchical templates that reference this one should still work the same as their Wikimedia Group counterparts.

I'll continue to work on this, but if anyone wants to help out, drop me a message on my talk page.--Murphy 20:30, 14 December 2009 (CST)

So this is where the Navbox Template is up to at the moment.
The I/O functions work the same as those on wikipedia, so if later down the track we decide to copy and paste template functions strait from wikipedia, the sub templates that reference this one should be completely compatible.
I really hitting a brick wall here though. I can't see any way to have the navbox draw to the right size (that is to disregard the unused cell spaces at the bottem) without using the #if extensions which Iron Chariots doesn't have.
Also, if anyone has Java experience and would like to set up the show/hide button to collapse the navbox, this is little above my head. I never taught myself Java and i don't think i'd make a clean job of it. Anyway, i'll keep at it--Murphy 22:58, 16 December 2009 (CST)

Template Now Working[edit]

The template is now functional to a degree that it can (i think) be put to use. There is a slight teething issue with the small edit link on the left hand side of the title bar (which i have currently disabled). By adding the &action=edit prefix to the wiki link, mediawiki's content management system seems to get confused and thinks its a red link to Template:name_of_template&action=edit&action=edit. If any of the admins or more experienced wiki users know how to fix this that would be great.

Also as mentioned, I don't know java. So if anyone out there would like to code up the show/hide system to collapse the Navbox as the wikipedia ones do that would also be fantastic. The way the template has been constructed, the body of the navbox that contains the categories and links is its own independent html table, so it should (as far as my limited understanding of java is concerned) just be a matter of adding the dynamic java tags to that. If you are interested in doing this, sooner would be better, as once the template has gone live, trying to sort out java runtime errors and teething issues will basically require a sandbox or third party testbed. It would be much easier to sort out the issues now.

Its getting a little late here and i have work tomorrow, so i'll leave writing up the usage and help documentation until the weekend, but if you have any questions or are interested in doing the java show/hide, drop me a message on my talk page--Murphy 08:52, 17 December 2009 (CST)--Murphy 08:52, 17 December 2009 (CST)

Edit button[edit]

This template includes "v" and "d" links for viewing and discussing the navboxes themselves, but I see that the "e" link, for editing, has been commented out. Should this be uncommented? It seems like it would be handy. --Arensb 17:28, 27 June 2010 (CDT)